Metadata Type | Field Name | Description |
---|---|---|
User Information | user_metadata | Stores user attributes such as preferences that do not impact a user’s core functionality. This data can be edited by logged in users if you build a form using the Management API and should not be used as a secure data store. |
Access Information | app_metadata | Stores information such as permissions, Auth0 plan, and external IDs that can impact user access to features. This data cannot be edited by users and there are restrictions for what can be stored in this field. |
Application Information | client_metadata in the Client object, context.clientMetadata in Rules, and event.client.metadata in post-login Actions. | Stores information about an application (or client in OIDC OAuth2 terminology). For example, the URL for the application home page (any value that Auth0 doesn’t set in the application settings). |
.
(dot) or $
(dollar sign) characters.
For example, this is not allowed:
app_metadata
fields and root profile fields. The app_metadata
field is merged onto the root profile in both Rules and Actions, which may override root profile fields.
For example, if a user has a groups
field present on their root profile (returned from a ) and a groups
field within app_metadata
, their profile might look like this:
groups
field on the User object from a Rule, it will return: ["internal-group-1", "internal-group-2"]
.
user.user_metadata.age = "23"
) and as a number for another user (user.user_metadata.age = 23
), you may encounter issues when retrieving the data.
app_metadata
and user_metadata
will not be searchable or returned in a search result. If the user profile is still over 1 MB after omitting these large values, then none of the app_metadata
and user_metadata
attributes will be searchable or returnable for that user. Auth0 captures and logs instances where a user profile is still over 1MB after omittances under the wum
event code. The get user endpoint must be used to retrieve all metadata attributes for oversized user profiles.user_metadata
field using the Auth0 Authentication API Signup endpoint, you can include a maximum of 10 string fields whose values do not exceed 500 characters each. For an example of working with metadata during a custom signup process, read Custom Signup.client_metadata
field can have a maximum of 10 keys. Its keys and values have a maximum length of 255 characters each and cannot contain UTF-8 special characters.app_metadata
field must not contain any of these properties:
__tenant
_id
blocked
clientID
created_at
email_verified
email
globalClientID
global_client_id
identities
lastIP
lastLogin
loginsCount
metadata
multifactor_last_modified
multifactor
updated_at
user_id