Manage User Metadata
With the Authentication API
When you use the Authentication API's Signup endpoint, you can create a new Database Connection user and set the
With the Management API
Using Auth0's Management APIv2, you can create a user and set both their
user_metadata fields. You can also update these two fields.
With the Lock Library
You can define, add, read, and update the
user_metadata using Auth0's Lock library.
For information on adding
user_metadata on signup, please see Additional Signup Fields
When using Lock, you can read the user's
user_metadata properties the same way you would for any other user profile property. For example, the following code snippet retrieves the value associated with
user_metadata.hobby and assigns it to an element on the page:
Metadata and custom databases
If you are using a custom database, the app_metadata field should be referred to as metadata in the scripts you run to manage your metadata.
For example, you would not use this:
Instead, you would use this: