View Source Auth0.Management.Users (Auth0Api v2.2.0)
Summary
Functions
Assign permissions to a user.
Assign one or more existing user roles to a user.
Create a new user for a given database or passwordless connection.
Create an authentication method. Authentication methods created via this endpoint will be auto confirmed and should already have verification completed.
Delete a user by user ID. This action cannot be undone.
Remove the authentication method with the given ID from the specified user.
Remove all authentication methods (i.e., enrolled MFA factors) from the specified user account. This action cannot be undone.
Remove all authenticators registered to a given user ID, such as OTP, email, phone, and push-notification. This action cannot be undone.
Remove a multifactor authentication configuration from a user's account. This forces the user to manually reconfigure the multi-factor provider.
Delete all refresh tokens for a user.
Delete all sessions for a user.
Retrieve user details. A list of fields to include or exclude may also be specified.
Get an authentication method by ID
Retrieve the first multi-factor authentication enrollment that a specific user has confirmed.
Retrieve log events for a specific user.
Retrieve list of the specified user's current Organization memberships. User must be specified by user ID.
Retrieve all permissions associated with the user.
Retrieve details for a user's refresh tokens.
Retrieve detailed list of all user roles currently assigned to a user.
Retrieve details for a user's sessions.
Invalidate all remembered browsers across all authentication factors for a user.
Link two user accounts together forming a primary and secondary relationship. On successful linking, the endpoint returns the new array of the primary account identities.
Retrieve details of users.
Retrieve detailed list of authentication methods associated with a specified user.
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.
Remove permissions from a user.
Remove one or more specified user roles assigned to a user.
Revokes selected resources related to a user (sessions, refresh tokens, ...).
Unlink a specific secondary account from a target user. This action requires the ID of both the target user and the secondary account.
Update a user.
Modify the authentication method with the given ID from the specified user.
Replace the specified user authentication methods with supplied values.
Types
@type authentication_method_id() :: String.t()
@type config() :: Auth0.Config.t()
@type id() :: String.t()
@type provider() :: String.t()
@type user_id() :: String.t()
Functions
Assign permissions to a user.
see
https://auth0.com/docs/api/management/v2/users/post-permissions
Assign one or more existing user roles to a user.
see
https://auth0.com/docs/api/management/v2/users/post-user-roles
Create a new user for a given database or passwordless connection.
see
Create an authentication method. Authentication methods created via this endpoint will be auto confirmed and should already have verification completed.
see
https://auth0.com/docs/api/management/v2/users/post-authentication-methods
Delete a user by user ID. This action cannot be undone.
see
https://auth0.com/docs/api/management/v2/users/delete-users-by-id
delete_authentication_method(id, authentication_method_id, config)
View Source@spec delete_authentication_method(id(), authentication_method_id(), config()) :: {:ok, String.t()} | error()
Remove the authentication method with the given ID from the specified user.
see
Remove all authentication methods (i.e., enrolled MFA factors) from the specified user account. This action cannot be undone.
see
https://auth0.com/docs/api/management/v2/users/delete-authentication-methods
Remove all authenticators registered to a given user ID, such as OTP, email, phone, and push-notification. This action cannot be undone.
see
https://auth0.com/docs/api/management/v2/users/delete-authenticators
Remove a multifactor authentication configuration from a user's account. This forces the user to manually reconfigure the multi-factor provider.
see
https://auth0.com/docs/api/management/v2/users/delete-multifactor-by-provider
Delete all refresh tokens for a user.
see
https://auth0.com/docs/api/management/v2/users/delete-refresh-tokens-for-user
Delete all sessions for a user.
see
https://auth0.com/docs/api/management/v2/users/delete-sessions-for-user
Retrieve user details. A list of fields to include or exclude may also be specified.
see
https://auth0.com/docs/api/management/v2/users/get-users-by-id
@spec get_authentication_method(id(), authentication_method_id(), config()) :: {:ok, map()} | error()
Get an authentication method by ID
see
Retrieve the first multi-factor authentication enrollment that a specific user has confirmed.
see
https://auth0.com/docs/api/management/v2/users/get-enrollments
Retrieve log events for a specific user.
see
https://auth0.com/docs/api/management/v2/users/get-logs-by-user
Retrieve list of the specified user's current Organization memberships. User must be specified by user ID.
see
https://auth0.com/docs/api/management/v2/users/get-user-organizations
Retrieve all permissions associated with the user.
see
https://auth0.com/docs/api/management/v2/users/get-permissions
Retrieve details for a user's refresh tokens.
see
https://auth0.com/docs/api/management/v2/users/get-refresh-tokens-for-user
Retrieve detailed list of all user roles currently assigned to a user.
see
https://auth0.com/docs/api/management/v2/users/get-user-roles
Retrieve details for a user's sessions.
see
https://auth0.com/docs/api/management/v2/users/get-sessions-for-user
Invalidate all remembered browsers across all authentication factors for a user.
see
https://auth0.com/docs/api/management/v2/users/post-invalidate-remember-browser
Link two user accounts together forming a primary and secondary relationship. On successful linking, the endpoint returns the new array of the primary account identities.
see
https://auth0.com/docs/api/management/v2/users/post-identities
Retrieve details of users.
see
Retrieve detailed list of authentication methods associated with a specified user.
see
https://auth0.com/docs/api/management/v2/users/get-authentication-methods
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.
see
https://auth0.com/docs/api/management/v2/users/post-recovery-code-regeneration
Remove permissions from a user.
see
https://auth0.com/docs/api/management/v2/users/delete-permissions
Remove one or more specified user roles assigned to a user.
see
https://auth0.com/docs/api/management/v2/users/delete-user-roles
Revokes selected resources related to a user (sessions, refresh tokens, ...).
see
https://auth0.com/docs/api/management/v2/users/user-revoke-access
Unlink a specific secondary account from a target user. This action requires the ID of both the target user and the secondary account.
see
https://auth0.com/docs/api/management/v2/users/delete-user-identity-by-user-id
Update a user.
see
https://auth0.com/docs/api/management/v2/users/patch-users-by-id
update_authentication_method(id, authentication_method_id, params, config)
View Source@spec update_authentication_method(id(), authentication_method_id(), map(), config()) :: {:ok, map()} | error()
Modify the authentication method with the given ID from the specified user.
see
Replace the specified user authentication methods with supplied values.
see
https://auth0.com/docs/api/management/v2/users/put-authentication-methods