jane
or smith
."green apple"
), which will match all words in the phrase in the same order.email
, name
, given_name
, family_name
, and nickname
) are case insensitive. All other fields (including all app_metadata
/user_metadata
fields) are case sensitive.AND
, OR
, NOT
) work on all normalized user fields and root metadata fields.Search Field | Data Type | Description |
---|---|---|
phone_number | text | The user’s phone number. Only valid for users with SMS connections. |
phone_verified | boolean | The true/false value indicates whether the user’s phone number has been verified. Only valid for users with SMS connections. |
logins_count | integer | The number of times the user has logged in. If a user is blocked and logs in, the blocked session is counted in logins_count and updates the last_login value. |
created_at | date time | The timestamp of when the user profile was first created. |
updated_at | date time | The timestamp of when the user’s profile was last updated/modified. |
last_login | date time | The timestamp of when the user last logged in. In case this property executes from inside a Rule with the user object, the value will be associated with the login that triggered the rule (since rules execute after the actual login). |
last_ip | text (valid IP address) | The IP address associated with the user’s last login. |
blocked | boolean | The true or false value indicates if the user has been blocked. Note: true only brings back users blocked via the Admin Dashboard and Management API; it does not bring back users blocked by brute force anomaly detection. |
email.domain | text | The domain part of the user’s email. |
organization_id | text (valid organization ID) | The organization that the user is a member of |
app_metadata.subscription.plan:"gold"
user_metadata.addresses.city:"Paris"
null
value are not indexed and cannot be searched for.
Range and wildcard searches are not available on user_metadata
fields.
name:"jane smith"
.
For example, to find users with the name jane smith
, use q=name:"jane smith"
:
*
) to replace zero or more characters. Wildcard searches are not available on user_metadata
fields.
name:john*
returns all users with john
at the beginning of their names.name:j*
returns all users with j
at the beginning of their names.q=name:john*
returns all users whose names start with john
.name:*usa
is allowed, but name:*sa
is not.[min TO max]
.{min TO max}
.logins_count:[100 TO 200}
.q=logins_count:{100 TO *]
.user_metadata
or app_metadata
. To do so, you can use Lucene Search Syntax with the q
parameter.
Because the Auth0 Management API list or the search users endpoint is limited to 1000 results (10 pages of 100 records), filtering is a useful way of ensuring that the most relevant results are returned.
Below is a sample of a user profile user_metadata
:
user_metadata
value, update the q
query with a filter for the attribute.
For user_metadata
values, you can query the profile directly:
q: _exists_:user_metadata.fav_color
This query returns all user profiles with the fav_color
attribute in the user_metadata
.
user_metadata
:
q: _exists_:user_metadata.preferences.fontSize
This queries all user profiles with preferences.fontSize
configured in the user_metadata
.
To search for the values of a nested object from another object, review the query below:
q: user_metadata.preferences.fontSize:13
This query returns all user profiles that match the fontSize
attribute with the value of 13
.
q: user_metadata.addresses.city:"Seattle"
This returns all user profiles that return the value of Seattle
from the address.city
attributes in the user_metadata
.