List or Search Users
This endpoint retrieves details of users. It’s best suited to interactive, best-effort search and lookups where slightly stale results are acceptable. With it, you can:
- Specify search criteria for users
- Sort the users to be returned
- Select the fields to be returned
- Specify the number of users to retrieve per page and the page index
This endpoint is not suited for use in critical paths. It is eventually consistent and runs under a short (~2 second) query time limit, so results can be stale and heavy queries can return a 503.
- Do not use this endpoint for authentication, account linking, or logic inside login-flow Actions. Instead, look users up directly by ID or email to get their current state.
- Do not use this endpoint to keep an external system in sync with user data. Instead, subscribe to Event Streams to receive every change as it happens.
- Do not use this endpoint to enumerate or export your entire user base. Instead, run a bulk user export to retrieve the full set.
Use the q query parameter to match users with query string syntax. For full instructions and guidance, see How to List and Search Users.
For efficient queries, prefer indexed top-level fields and exact matches. Certain kinds of queries can be slow and may time out, such as filtering on freeform or multi-value fields (like user-defined attributes in app_metadata or user_metadata) or using leading wildcards.
Authorizations
Query Parameters
Query in Lucene query string syntax. Some query types cannot be used on metadata fields, for details see Searchable Fields.
If true (default), results are returned in a deterministic order. If false, results may be returned in a non-deterministic order, which can enhance performance for complex queries targeting a small number of users. Set to false only when consistent ordering and pagination is not required.
Response
Users successfully retrieved.
- object[]
- object