Activate Attributes
- New connection
- Existing connection
- Navigate to Auth0 Dashboard > Authentication > Database.
- Select +Create DB Connection.
- Enter a name for the connection and choose the attributes.
- Choose the authentication method for the connection.
| Setting | Value |
|---|---|
Use {attribute} as Identifier | True |
Allow Signup with {attribute} | Required |
Require {attribute} on user profile | True |
| Username Length | Min: 1 Max: 15 |
| Allow usernames in email format | False |
| Allow usernames in phone number format | False |
Configure Attributes
Select the Attributes tab on the connection. Choose from the available Attributes and select Configure. Once you’ve updated Attribute configurations, select Save.Email Attribute Configuration Options
Email Attribute Configuration Options
| Option | |
|---|---|
| Use Email as Identifier | Turning this on will make email an identifier for this connection. Users will be able to use email for login and password reset. |
| Verification Method | Choose Email Verification link or One-Time Password (OTP). |
| Allow Signup with Email | Choose how email will be collected at signup
Signup flows include:
|
| Verify email on sign up | Users will be asked to verify their email address via magic link when signing up. |
| Require email on user profile | Requires email to be present across all operations that create or update a user profile on this connection. Will require email is present on the following:
|
Username Attributes and Configuration Options
Username Attributes and Configuration Options
| Option | |
|---|---|
| Use Username as Identifier | Turning this on will make username an identifier for this connection. Users will be able to use username for login and password reset. |
| Allow Signup with Username | Choose how the username will be collected at signup
Signup flows include:
|
| Require username on user profile | Requires username to be present across all operations that create or update a user profile on this connection. Will require username is present on the following:
|
| Username Length | Set the minimum and maximum values allowed for a user to have as username. |
Phone Number Attributes and Configuration Options
Phone Number Attributes and Configuration Options
| Option | |
|---|---|
| Use Phone Number as Identifier | Turning this on will make phone_number an identifier for this connection. Users will be able to use phone_number for login and password reset. |
| Allow Signup with Phone Number | Choose how the phone number will be collected at signup
Signup flows include:
|
| Verify phone on signup | Users will be required to verify their phone number via OTP when signing up. Please ensure you have configured a phone provider or your users will not be able to proceed with signing up. |
| Require phone on user profile | Requires phone to be present across all operations that create or update a user profile on this connection. Will require phone is present on the following:
|
Configure or remove existing Attributes on a connection
All Attributes can be changed or deleted from your . Users cannot log in, sign up or reset passwords using the removed Attribute, and a minimum of one Attribute must remain active on every connection. To change or remove an Attribute, navigate to the Attributes tab, then choose Remove.Revert a connection
To revert a connection back to its original state, use the Update a connection endpoint with anoptions object that does not include the attributes parameter, as shown below.
- If you use the
optionsparameter, the entireoptionsobject is overridden. To avoid partial data or other issues, ensure all current parameters are present by copying the contents within the connectionsoptionsobject and including it in the PATCH call. The only parameter you should remove isattributes. - If your tenant has
usernameenabled as an Attribute, performing the following action requires you to modify yourusernamesettings. You’ll need to reconfigure your username settings if you choose this path.