With this resource, you can manage user identities, including resetting passwords, and creating, provisioning, blocking, and deleting users.
resource "auth0_user" "user" {
connection_name = "Username-Password-Authentication"
user_id = "12345"
username = "unique_username"
name = "Firstname Lastname"
nickname = "some.nickname"
email = "test@test.com"
email_verified = true
password = "passpass$12$12"
picture = "https://www.example.com/a-valid-picture-url.jpg"
}
connection_name
(String) Name of the connection from which the user information was sourced.app_metadata
(String) Custom fields that store info about the user that impact the user's core functionality, such as how an application functions or what the user can access. Examples include support plans and IDs for external accounts.blocked
(Boolean) Indicates whether the user is blocked or not.email
(String) Email address of the user.email_verified
(Boolean) Indicates whether the email address has been verified.family_name
(String) Family name of the user. This value can only be updated if the connection is a database connection (using the Auth0 store), a passwordless connection (email or sms) or has disabled 'Sync user profile attributes at each login'. For more information, see: Configure Identity Provider Connection for User Profile Updates.given_name
(String) Given name of the user. This value can only be updated if the connection is a database connection (using the Auth0 store), a passwordless connection (email or sms) or has disabled 'Sync user profile attributes at each login'. For more information, see: Configure Identity Provider Connection for User Profile Updates.name
(String) Name of the user. This value can only be updated if the connection is a database connection (using the Auth0 store), a passwordless connection (email or sms) or has disabled 'Sync user profile attributes at each login'. For more information, see: Configure Identity Provider Connection for User Profile Updates.nickname
(String) Preferred nickname or alias of the user. This value can only be updated if the connection is a database connection (using the Auth0 store), a passwordless connection (email or sms) or has disabled 'Sync user profile attributes at each login'. For more information, see: Configure Identity Provider Connection for User Profile Updates.password
(String, Sensitive) Initial password for this user. Required for non-passwordless connections (SMS and email).phone_number
(String) Phone number for the user; follows the E.164 recommendation. Used for SMS connections.phone_verified
(Boolean) Indicates whether the phone number has been verified.picture
(String) Picture of the user. This value can only be updated if the connection is a database connection (using the Auth0 store), a passwordless connection (email or sms) or has disabled 'Sync user profile attributes at each login'. For more information, see: Configure Identity Provider Connection for User Profile Updates.user_id
(String) ID of the user.user_metadata
(String) Custom fields that store info about the user that does not impact a user's core functionality. Examples include work address, home address, and user preferences.username
(String) Username of the user. Only valid if the connection requires a username.verify_email
(Boolean) Indicates whether the user will receive a verification email after creation. Overrides behavior of email_verified
parameter.id
(String) The ID of this resource.Import is supported using the following syntax:
# This resource can be imported using the user ID.
#
# Example:
terraform import auth0_user.user "auth0|111111111111111111111111"