Optional
requestOptions: Users.RequestOptionsRequest-specific configuration.
Create a new user for a given database or passwordless connection.
Note: connection
is required but other parameters such as email
and password
are dependent upon the type of connection.
Optional
requestOptions: Users.RequestOptionsRequest-specific configuration.
Find users by email. If Auth0 is the identity provider (idP), the email address associated with a user is saved in lower case, regardless of how you initially provided it.
For example, if you register a user as JohnSmith@example.com, Auth0 saves the user's email as johnsmith@example.com.
Therefore, when using this endpoint, make sure that you are searching for users via email addresses using the correct case.
Optional
requestOptions: Users.RequestOptionsRequest-specific configuration.
Retrieve user details. A list of fields to include or exclude may also be specified. For more information, see Retrieve Users with the Get Users Endpoint.
ID of the user to retrieve.
Optional
requestOptions: Users.RequestOptionsRequest-specific configuration.
Delete a user by user ID. This action cannot be undone. For Auth0 Dashboard instructions, see Delete Users.
ID of the user to delete.
Optional
requestOptions: Users.RequestOptionsRequest-specific configuration.
Update a user.
These are the attributes that can be updated at the root level:
Some considerations:
user_metadata
and app_metadata
). These properties are merged instead of being replaced but be careful, the merge only occurs on the first level.email
, email_verified
, phone_number
, phone_verified
, username
or password
of a secondary identity, you need to specify the connection
property too.email
or phone_number
you can specify, optionally, the client_id
property.email_verified
is not supported for enterprise and passwordless sms connections.blocked
to false
does not affect the user's blocked state from an excessive amount of incorrectly provided credentials. Use the "Unblock a user" endpoint from the "User Blocks" API to change the user's state.null
as the value.{ "email_verified": true }
user_metadata
:
{ "user_metadata" : { "profileCode": 1479 } }
To add the field addresses
the body to send should be:
{ "user_metadata" : { "addresses": {"work_address": "100 Industrial Way"} }}
The modified object ends up with the following user_metadata
property:
{
"user_metadata": {
"profileCode": 1479,
"addresses": { "work_address": "100 Industrial Way" }
}
}
"home_address": "742 Evergreen Terrace"
(using the addresses
property) we should send the whole addresses
object. Since this is a first-level object, the object will be merged in, but its own properties will not be. The body to send should be:
{
"user_metadata": {
"addresses": {
"work_address": "100 Industrial Way",
"home_address": "742 Evergreen Terrace"
}
}
}
The modified object ends up with the following user_metadata
property:
{
"user_metadata": {
"profileCode": 1479,
"addresses": {
"work_address": "100 Industrial Way",
"home_address": "742 Evergreen Terrace"
}
}
}
ID of the user to update.
Optional
requestOptions: Users.RequestOptionsRequest-specific configuration.
Remove an existing multi-factor authentication (MFA) recovery code and generate a new one. If a user cannot access the original device or account used for MFA enrollment, they can use a recovery code to authenticate.
ID of the user to regenerate a multi-factor authentication recovery code for.
Optional
requestOptions: Users.RequestOptionsRequest-specific configuration.
Revokes selected resources related to a user (sessions, refresh tokens, ...).
ID of the user.
Optional
requestOptions: Users.RequestOptionsRequest-specific configuration.
Protected
_Protected
Readonly
_Protected
_Protected
_Protected
_Protected
_Protected
_Protected
_Protected
_Protected
_Protected
_Protected
_Protected
_Protected
_Protected
_Protected
_
Retrieve details of users. It is possible to:
The
q
query parameter can be used to get users that match the specified criteria using query string syntax.Learn more about searching for users.
Read about best practices when working with the API endpoints for retrieving users.
Auth0 limits the number of users you can return. If you exceed this threshold, please redefine your search, use the export job, or the User Import / Export extension.