Search for Users by Email with Auth0 Management API Endpoint
If Auth0 is the Identify Provider (IdP), the email address associated with a user is saved in lowercase, regardless of how it was initially provided. In cases where Auth0 is not the IdP, the email could contain uppercase letters. The Get User by email endpoint (GET /API/v2/users-by-email) can search emails based on letter case, so the search needs to be made using the correct capitalization.
This article explains how to search for emails without knowing whether the email contains upper-case or lower-case.
- User Search
- Management API
Call the GET /api/v2/users endpoint to search for users. This endpoint is case-insensitive. Below can be found a screenshot of the call.