Search User by Email Is Not Working From Auth0 Dashboard

Overview

Dashboard user searches are failing with the following error, with the steps outlined below:

 

Error! The query exceeded the timeout. Please try refining your search criteria. See https://auth0.com/docs/best-practices/search-best-practices

 

These are the steps to reproduce the issue:

  1. Click on User Management.
  2. Click on Users.
  3. Change Search by to Email.
  4. Write any email in the search field and press Enter.

Search

Applies To

  • Auth0 Dashboard
  • User Search

Cause

 

When using the Search by Email filter option in the Auth0 dashboard, a broad query with OR logic and a wildcard is run on the queried email, generating the following query for the sample user. 

email:test%40test.com*+OR+email.domain:test%40test.com*

Though this query is valid and works for most cases, if a tenant has an excessive number of users, the built-in 2-second search query timeout causes the query to return with an error.

Solution

If the tenant has an excessive number of users, try a more optimized search with Lucene Syntax using email:EMAIL_ADDRESS.

This usage returns the same user with the simplest possible search query, and may avoid the 2-second timeout.

email:test%40test.com

Search

Alternatively, users can be retrieved with Get Users by Email Management API. This API doesn't rely on a search database, so the 2-second timeout doesn't apply.

Recommended content

No recommended content found...