question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

feature request: search user by IDs/usernames/phones/emails

See original GitHub issue

What problem did you meet?

/api/users?search= only supports fuzzy search on multiple fields. Sometimes life needs to be more accurate, e.g., search a user by a specific ID, or a batch of usernames, etc.

Describe what you’d like Logto to have

Support something like /api/users?search=id:1,2,3&mode=exact to return the exact search result on a specific field.

This issue includes:

  • Search by multiple values with or logic
  • The result should exactly match the input
  • Support id, username, phone and email match
  • Integration test cases to cover all new features

To discuss (we can figure them it together):

  • The search pattern (search=id:1,2,3 or search=1|2|3&field=id or something else? we are not sure yet)

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:19 (17 by maintainers)

github_iconTop GitHub Comments

1reaction
wangsijiecommented, Nov 6, 2022

Let’s start with the API part.

As for the UI, @fleuraly will take a look and post updates here.

1reaction
5war00pcommented, Nov 6, 2022

Cool, then we can make in that way. How the UX will be for this? means how users will give mutliple ids or usernames, will it be space separated?

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Feature Request] Search by ID - How to Use GitLab
Hi, Currently there is not option to find user/project by ID, only via gitlab console: User.find(<user_id>) Project.find(<project_id>) I ...
Read more >
Search request by username , add approved user back to ...
1-How do i search the list of requests by username. Say someone registers and then they ask me to approve their account ?...
Read more >
Add User ID # to Profile Page - iNaturalist Forum
Please add the User ID of each user on a prominent place on their Profile ... feature request, use username instead of user...
Read more >
How to lookup User ID in Outlook
How to lookup User ID in Outlook. When looking up user ID's the best way it to go into Outlook. Once Outlook is...
Read more >
blackbaud status update
At the top, in the search bar, type Google Workspace Marketplace SDK and press enter ... If a user has Blackbaud ID username...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found