Question: Why aren’t my newly created users showing up in a user search?
Answer:
If you have recently created a user and cannot find them with the GET api/v2/users
endpoint, it is likely because the data has not been indexed yet.
The search endpoints are defined as one of the following:
-
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.
This table describes the endpoints:
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 |