When searching for users in Auth0, you can use multiple endpoints to search for ID, email, or other criteria:
|Requirement||Endpoint to Use|
|Searches involving user attributes||Get Users|
|Searches returning multiple users||Get Users or Get Users by Email|
|Operations requiring immediate consistency||Get Users by ID or Get Users by Email|
|Actions requiring user search as part of authentication processes||Get Users by ID or Get Users by Email|
|Searching for users for account linking by email||Get Users by Email|
Search Result Terminology
We use the following terms to describe the user search results:
Eventually consistent: Search results may not reflect a recently-completed write operation. However, if you repeat your request after a short period of time, the response will return up-to-date data.
Immediately consistent: Search results will reflect the results of all successful write operations, including those that occurred shortly prior to your request.
Search Best Practices
For info on best practices, see User Search Best Practices.