Manage User Metadata
You can create and update metadata using Rules, the Authentication API, the Management API, and the Lock library.
For more information and examples, see User Metadata in Rules.
If you have a custom database connection, you can use the Authentication API Signup endpoint to set the
user_metadata for a user. For an example of working with metadata during a custom signup process, see Custom Signup > Using the API.
You can also use the GET /userinfo endpoint to get a user's
user_metadata, however you must first write a Rule to copy
user_metadata properties to the ID Token.
Use the following Management API endpoints to view, create, update, and delete the
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: