Im trying to retrieve all the users whose user_id starts with a predefined prefix. I am always receiving HTTP 503, query exceeded timeout exception. I made sure we are requesting for a single page of results, which is way less than the prescribed limit of 1000.
I also looked into creating an export users job but it doesn’t allow filtering based on user_id prefix.
Can anyone suggest me how to fix this issue?
Following is the Request/Response for reference:
Request: https://auth0_endpoint/api/v2/users?per_page=10&page=0&q=user_id:samlp|saml-* AND updated_at:[2019-05-21T18:29:04.286Z TO 2019-06-21T20:29:04.286Z]&search_engine=v3
“error”: “Service Unavailable”,
“message”: “The query exceeded the timeout. Please try refining your search criteria. See https://auth0.com/docs/best-practices/search-best-practices”