# \#user\_metadata

**URL:** https://community.auth0.com/tag/548-tag/548.md

[Latest](https://community.auth0.com/latest.md) · [Categories](https://community.auth0.com/categories.md) · [Tags](https://community.auth0.com/tags.md)

---

## [Is is possible to set user metadata while signup with google?](https://community.auth0.com/t/is-is-possible-to-set-user-metadata-while-signup-with-google/97241)

<div class="topic-metadata">

**Author:** [@dev.mubasshirwriter](https://community.auth0.com/u/dev.mubasshirwriter)\
**Replies:** 3\
**Last updated:** [May 3, 2023, 4:32pm UTC](https://community.auth0.com/t/is-is-possible-to-set-user-metadata-while-signup-with-google/97241 "2023-05-03T16:32:41Z")

</div>

I am using Auth.js v9 method to signup with google but I am unable to pass user metadata in options auth.authorize({ connection: 'google-oauth2', redirectUri: process.env.REACT\_APP\_AUTH0\_COACH\_RE…

---

## [User.user\_metadata not populating in "Change Password" email template](https://community.auth0.com/t/user-user-metadata-not-populating-in-change-password-email-template/93134)

<div class="topic-metadata">

**Author:** [@nick.howard.lykke](https://community.auth0.com/u/nick.howard.lykke)\
**Replies:** 8\
**Last updated:** [October 31, 2022, 8:08am UTC](https://community.auth0.com/t/user-user-metadata-not-populating-in-change-password-email-template/93134 "2022-10-31T08:08:33Z")

</div>

Hello, I’ve been having some trouble with an email template. It doesn’t seem to be an issue on all of the templates, however. I’ve got a template set up for “Change Password” emails, that attempts to lift a property fr…

---

## [Push data to user metadata from API](https://community.auth0.com/t/push-data-to-user-metadata-from-api/90035)

<div class="topic-metadata">

**Author:** [@tettemerd](https://community.auth0.com/u/tettemerd)\
**Replies:** 1\
**Last updated:** [September 6, 2022, 6:02pm UTC](https://community.auth0.com/t/push-data-to-user-metadata-from-api/90035 "2022-09-06T18:02:28Z")

</div>

Hey everyone! I am trying to push data into a new array under all of my users so when they order an item my api gets the users metadata then pushes that order to the array under their profile. However, when i tried using…

---

## [Update token after updating user info](https://community.auth0.com/t/update-token-after-updating-user-info/87140)

<div class="topic-metadata">

**Author:** [@christina](https://community.auth0.com/u/christina)\
**Replies:** 3\
**Last updated:** [July 21, 2022, 2:25am UTC](https://community.auth0.com/t/update-token-after-updating-user-info/87140 "2022-07-21T02:25:20Z")

</div>

When updating the currently logged in user information in our application, we are successfully sending the new information to Auth0, and we can see the user information in the dashboard get updated. However, the JWT tha…

---

## [How to attach values to user metadata on automatic migration?](https://community.auth0.com/t/how-to-attach-values-to-user-metadata-on-automatic-migration/81287)

<div class="topic-metadata">

**Author:** [@dudumonteiro](https://community.auth0.com/u/dudumonteiro)\
**Replies:** 3\
**Last updated:** [April 11, 2022, 6:46pm UTC](https://community.auth0.com/t/how-to-attach-values-to-user-metadata-on-automatic-migration/81287 "2022-04-11T18:46:32Z")

</div>

I am currently running an auth0 automatic migration proccess. When user logs in, the following script is ran by auth0: function login(username, password, callback) { const request = require('request'); const namesp…

---

## [Update user\_metadata example from API docs not working](https://community.auth0.com/t/update-user-metadata-example-from-api-docs-not-working/77656)

<div class="topic-metadata">

**Author:** [@conner.linzy](https://community.auth0.com/u/conner.linzy)\
**Replies:** 9\
**Last updated:** [February 24, 2022, 5:58pm UTC](https://community.auth0.com/t/update-user-metadata-example-from-api-docs-not-working/77656 "2022-02-24T17:58:34Z")

</div>

function(user, context, callback){ user.user\_metadata = user.user\_metadata || {}; // update the user\_metadata that will be part of the response user.user\_metadata.preferences = user.user\_metadata.preferences || {};…

---

## [Update user metadata with ManagementApi Client](https://community.auth0.com/t/update-user-metadata-with-managementapi-client/76752)

<div class="topic-metadata">

**Author:** [@RunLong](https://community.auth0.com/u/RunLong)\
**Replies:** 1\
**Last updated:** [January 21, 2022, 10:53pm UTC](https://community.auth0.com/t/update-user-metadata-with-managementapi-client/76752 "2022-01-21T22:53:26Z")

</div>

I’m trying to update the user\_metadata using the .NET ManagementApi client. I see the UserMetadata property, and can get the values. However, I’m not seeing how to set the values. When I try to update it directly, like b…

---

## [User Metadata in useUser - Next.js](https://community.auth0.com/t/user-metadata-in-useuser-next-js/74698)

<div class="topic-metadata">

**Author:** [@sandro](https://community.auth0.com/u/sandro)\
**Replies:** 3\
**Last updated:** [December 14, 2021, 4:58pm UTC](https://community.auth0.com/t/user-metadata-in-useuser-next-js/74698 "2021-12-14T16:58:40Z")

</div>

Please include the following information in your post: Which SDK this is regarding: @auth0/nextjs-auth0 SDK Version: 1.6.1 Platform Version: node v14.18.1 Code Snippets/Error Messages/Supporting Details/Screenshots…

---

## [How to add 'user\_metadata' field to user object on clien-side using React](https://community.auth0.com/t/how-to-add-user-metadata-field-to-user-object-on-clien-side-using-react/74605)

<div class="topic-metadata">

**Author:** [@webmaster10](https://community.auth0.com/u/webmaster10)\
**Replies:** 3\
**Last updated:** [December 13, 2021, 8:32am UTC](https://community.auth0.com/t/how-to-add-user-metadata-field-to-user-object-on-clien-side-using-react/74605 "2021-12-13T08:32:51Z")

</div>

Hello, Auth0 Community! Pls, help me with one thing, which I want to implement inside our project. We use React on the client-side (@auth0/auth0-react package), so I need to get the ‘user\_metadata’ field in the user obje…

---

## [Perform a mass update on users](https://community.auth0.com/t/perform-a-mass-update-on-users/71262)

<div class="topic-metadata">

**Author:** [@cfernandez](https://community.auth0.com/u/cfernandez)\
**Replies:** 4\
**Last updated:** [October 14, 2021, 9:11am UTC](https://community.auth0.com/t/perform-a-mass-update-on-users/71262 "2021-10-14T09:11:19Z")

</div>

Within the metadata of each user, I store some information that is the same for certain groups of users. When I update this in my API, I want to be able to send the emails or user ids of the related users and the informa…

---

## [Post login action not setting user metadata](https://community.auth0.com/t/post-login-action-not-setting-user-metadata/70037)

<div class="topic-metadata">

**Author:** [@paultipper](https://community.auth0.com/u/paultipper)\
**Replies:** 1\
**Last updated:** [September 21, 2021, 11:05pm UTC](https://community.auth0.com/t/post-login-action-not-setting-user-metadata/70037 "2021-09-21T23:05:31Z")

</div>

Hello, I’m trying to use a post-login action to set a picture property within the user metadata. I’ve created and deployed the following action: exports.onExecutePostLogin = async (event, api) =\> { api.user.setUserMe…

---

## [Is registering Users and getting user meta through Management API a bad practice?](https://community.auth0.com/t/is-registering-users-and-getting-user-meta-through-management-api-a-bad-practice/68672)

<div class="topic-metadata">

**Author:** [@assadullahch](https://community.auth0.com/u/assadullahch)\
**Replies:** 3\
**Last updated:** [August 30, 2021, 8:41pm UTC](https://community.auth0.com/t/is-registering-users-and-getting-user-meta-through-management-api-a-bad-practice/68672 "2021-08-30T20:41:59Z")

</div>

Hi, We are building a MERN stack single page app. We got the following use cases Registering users on our website without redirecting them to Auth0 hosted registration page and we are using Management API on our bac…

---

## [Django Auth0 Read user\_metadata](https://community.auth0.com/t/django-auth0-read-user-metadata/67976)

<div class="topic-metadata">

**Author:** [@uripre](https://community.auth0.com/u/uripre)\
**Replies:** 5\
**Last updated:** [August 17, 2021, 9:42am UTC](https://community.auth0.com/t/django-auth0-read-user-metadata/67976 "2021-08-17T09:42:39Z")

</div>

After following auth0’s quick start, I can’t seem to find a way to access the logged-in user’s “user\_metadata” in django. Anyone else tried to achieve this with django and can share how? I followed the following quick s…

---

## [How to fetch new token after updating user\_metadata in React](https://community.auth0.com/t/how-to-fetch-new-token-after-updating-user-metadata-in-react/65784)

<div class="topic-metadata">

**Author:** [@m.kuo5](https://community.auth0.com/u/m.kuo5)\
**Replies:** 9\
**Last updated:** [July 29, 2021, 8:35am UTC](https://community.auth0.com/t/how-to-fetch-new-token-after-updating-user-metadata-in-react/65784 "2021-07-29T08:35:21Z")

</div>

Hi there, I am running React on the frontend and Node on the backend. I am updating my user\_metadata by a POST request to the backend and then updating user\_metadata with a patch method to the users endpoint with a Man…

---

## [Calling management API to update user meta data from SPA](https://community.auth0.com/t/calling-management-api-to-update-user-meta-data-from-spa/64600)

<div class="topic-metadata">

**Author:** [@swardi](https://community.auth0.com/u/swardi)\
**Replies:** 3\
**Last updated:** [June 17, 2021, 11:20am UTC](https://community.auth0.com/t/calling-management-api-to-update-user-meta-data-from-spa/64600 "2021-06-17T11:20:20Z")

</div>

I have a specific use case in which our application wants to update user’s meta data from browser based SPA. I know management API can be used to update user meta data, but we cannot involve server in our case and want t…

---

## [How to get Management API accessToken silently while SPA was already configured for a custom API?](https://community.auth0.com/t/how-to-get-management-api-accesstoken-silently-while-spa-was-already-configured-for-a-custom-api/62081)

<div class="topic-metadata">

**Author:** [@AlperenOzturk](https://community.auth0.com/u/AlperenOzturk)\
**Replies:** 4\
**Last updated:** [May 4, 2021, 4:24pm UTC](https://community.auth0.com/t/how-to-get-management-api-accesstoken-silently-while-spa-was-already-configured-for-a-custom-api/62081 "2021-05-04T16:24:40Z")

</div>

Hey there, I am using React.js and the @auth0/auth0-react SDK. I have a custom backend API. So my Auth0Provider component is configured with the audience of that custom API. However i also want the user to able to upda…

---

## [Why data unrelated to user authentication should always be stored in an external database?](https://community.auth0.com/t/why-data-unrelated-to-user-authentication-should-always-be-stored-in-an-external-database/61638)

<div class="topic-metadata">

**Author:** [@hatai](https://community.auth0.com/u/hatai)\
**Replies:** 2\
**Last updated:** [April 26, 2021, 1:32am UTC](https://community.auth0.com/t/why-data-unrelated-to-user-authentication-should-always-be-stored-in-an-external-database/61638 "2021-04-26T01:32:38Z")

</div>

I read this doc: Understand How Metadata Works in User Profiles Why data unrelated to user authentication should always be stored in an external database and not in the user profile metadata? What if I enter personal i…

---

## [Nextjs-auth0 /api/auth/me route doesn't return as many details as expected](https://community.auth0.com/t/nextjs-auth0-api-auth-me-route-doesnt-return-as-many-details-as-expected/56299)

<div class="topic-metadata">

**Author:** [@mvxt](https://community.auth0.com/u/mvxt)\
**Replies:** 4\
**Last updated:** [February 10, 2021, 12:45pm UTC](https://community.auth0.com/t/nextjs-auth0-api-auth-me-route-doesnt-return-as-many-details-as-expected/56299 "2021-02-10T12:45:09Z")

</div>

Which SDK this is regarding: nextjs-auth0 SDK Version: 1.0.0-beta.0, 0.16.0 Platform Version: e.g. Node v15.0.1 Code Snippets/Error Messages/Supporting Details/Screenshots: I’m new to Auth0 so this might be a newb q…

---

## [Adding user metadata in the pre-user registration hook](https://community.auth0.com/t/adding-user-metadata-in-the-pre-user-registration-hook/53665)

<div class="topic-metadata">

**Author:** [@jaredgalanis1](https://community.auth0.com/u/jaredgalanis1)\
**Replies:** 3\
**Last updated:** [December 1, 2020, 5:24pm UTC](https://community.auth0.com/t/adding-user-metadata-in-the-pre-user-registration-hook/53665 "2020-12-01T17:24:10Z")

</div>

Hi, I’d like to access user\_metadata in the pre-user registration hook. My use case is to use some of the metadata passed to webAuth.redirect.signupAndLogin to make an external request in the hook and then add to the use…

---

## [Accessing user\_metadata with social sign up](https://community.auth0.com/t/accessing-user-metadata-with-social-sign-up/50677)

<div class="topic-metadata">

**Author:** [@peter.koev](https://community.auth0.com/u/peter.koev)\
**Replies:** 3\
**Last updated:** [October 1, 2020, 3:09pm UTC](https://community.auth0.com/t/accessing-user-metadata-with-social-sign-up/50677 "2020-10-01T15:09:12Z")

</div>

Hello! I enabled social sign up with Google and Microsoft, but I am not able to access first and last name in user\_metadata. Here’s what I’m trying: lock.getUserInfo(authResult.accessToken, function(error, profile) { …

---

## [What's the best practice to handle metadata?](https://community.auth0.com/t/whats-the-best-practice-to-handle-metadata/9866)

<div class="topic-metadata">

**Author:** [@pierre.h](https://community.auth0.com/u/pierre.h)\
**Replies:** 2\
**Last updated:** [May 17, 2018, 2:19am UTC](https://community.auth0.com/t/whats-the-best-practice-to-handle-metadata/9866 "2018-05-17T02:19:20Z")

</div>

Hi, I am creating a multi-tenant app based on a SPA (Angular) + Node.js back-end + Auth0. I would like my app to exchange user info with Auth0. Based on conversation here, I have creating a rule to add metadata to toke…

---

## [How to save user\_metadata in Auth0 Users section](https://community.auth0.com/t/how-to-save-user-metadata-in-auth0-users-section/9261)

<div class="topic-metadata">

**Author:** [@villemiekkoja](https://community.auth0.com/u/villemiekkoja)\
**Replies:** 1\
**Last updated:** [January 23, 2018, 3:25am UTC](https://community.auth0.com/t/how-to-save-user-metadata-in-auth0-users-section/9261 "2018-01-23T03:25:29Z")

</div>

How can I save changes in the user\_metada in Auth0 Users section? I can write new data there, but there’s no SAVE button anywhere. If I leave the page, and come back, the changes are not there anymore? !\[alt text\]\[1\]

---

## [Is it possible to add user\_metadata during a login event?](https://community.auth0.com/t/is-it-possible-to-add-user-metadata-during-a-login-event/9158)

<div class="topic-metadata">

**Author:** [@lehman](https://community.auth0.com/u/lehman)\
**Replies:** 1\
**Last updated:** [January 9, 2018, 7:14am UTC](https://community.auth0.com/t/is-it-possible-to-add-user-metadata-during-a-login-event/9158 "2018-01-09T07:14:46Z")

</div>

I see that you can create user\_metadata with a POST to /dbconnections/signup. Is it possible to add user\_metadata when using the /authorize endpoint? We have data that we send to a backend prior to users authenticating f…

---

## [How to save user\_metadata in Custom Database?](https://community.auth0.com/t/how-to-save-user-metadata-in-custom-database/9084)

<div class="topic-metadata">

**Author:** [@vladimir.plotean](https://community.auth0.com/u/vladimir.plotean)\
**Replies:** 1\
**Last updated:** [December 29, 2017, 6:36pm UTC](https://community.auth0.com/t/how-to-save-user-metadata-in-custom-database/9084 "2017-12-29T18:36:12Z")

</div>

How can i save additional fields to a custom mysql database and update them using the management api?

---

## [How to create user\_metadata for a New user sign up in Postman](https://community.auth0.com/t/how-to-create-user-metadata-for-a-new-user-sign-up-in-postman/8824)

<div class="topic-metadata">

**Author:** [@safadig](https://community.auth0.com/u/safadig)\
**Replies:** 3\
**Last updated:** [November 27, 2017, 10:39pm UTC](https://community.auth0.com/t/how-to-create-user-metadata-for-a-new-user-sign-up-in-postman/8824 "2017-11-27T22:39:43Z")

</div>

Trying to test a create New user sign up with user\_metadata fields in POSTMAN using the Auth0 Collection but keep getting the error: { “error”: “invalid user\_metadata type (expected object)” } When I look at the HTTP…

---

## [User\_metadata not being populated on signup using Auth0.js](https://community.auth0.com/t/user-metadata-not-being-populated-on-signup-using-auth0-js/8539)

<div class="topic-metadata">

**Author:** [@david11](https://community.auth0.com/u/david11)\
**Replies:** 0\
**Last updated:** [October 20, 2017, 10:55pm UTC](https://community.auth0.com/t/user-metadata-not-being-populated-on-signup-using-auth0-js/8539 "2017-10-20T22:55:46Z")

</div>

Hi, I’ve followed the API documentation here at Authentication API - Auth0 Docs in order to specify custom user\_metadata at the point of signing up a new user. My code looks like this: auth0.signup({ co…

---

## [Can I add a fixed value to user\_metadata when a user does self sign-up?](https://community.auth0.com/t/can-i-add-a-fixed-value-to-user-metadata-when-a-user-does-self-sign-up/7901)

<div class="topic-metadata">

**Author:** [@eddie](https://community.auth0.com/u/eddie)\
**Replies:** 1\
**Last updated:** [August 29, 2017, 6:38pm UTC](https://community.auth0.com/t/can-i-add-a-fixed-value-to-user-metadata-when-a-user-does-self-sign-up/7901 "2017-08-29T18:38:39Z")

</div>

I am using Lock library for login and sign-up. I’d like to have a some information added to the user\_metadata at sign-up where the user isn’t prompted for nor even sees the information. I have some additionalSignUpFiel…

---

## [Cannot read property 'picture' of undefined](https://community.auth0.com/t/cannot-read-property-picture-of-undefined/7827)

<div class="topic-metadata">

**Author:** [@toddler4372](https://community.auth0.com/u/toddler4372)\
**Replies:** 1\
**Last updated:** [August 15, 2017, 12:48am UTC](https://community.auth0.com/t/cannot-read-property-picture-of-undefined/7827 "2017-08-15T00:48:05Z")

</div>

I’m trying to access the profile picture of a user and display it. I’m using the Angular2-CLI Login-01 example, and I get the error in the subject heading. Here is my HTML: \<img \[src\]="profile.picture" class="profile-a…

---

## [Obtain user\_metadata from access\_token: Not using rules](https://community.auth0.com/t/obtain-user-metadata-from-access-token-not-using-rules/7692)

<div class="topic-metadata">

**Author:** [@nurlan.nurmanov](https://community.auth0.com/u/nurlan.nurmanov)\
**Replies:** 5\
**Last updated:** [August 2, 2017, 6:20pm UTC](https://community.auth0.com/t/obtain-user-metadata-from-access-token-not-using-rules/7692 "2017-08-02T18:20:26Z")

</div>

I am calling /oauth/token API endpoint and getting access\_token and other information, but unfortunately, the access\_token does not contain user\_metadata object. Having user\_metadata object is critical for us, as it stor…

---

## [Does Lock 10 additionalSignUpFields overwrite user\_metadata added in pre-registration hook](https://community.auth0.com/t/does-lock-10-additionalsignupfields-overwrite-user-metadata-added-in-pre-registration-hook/7123)

<div class="topic-metadata">

**Author:** [@zenanbach](https://community.auth0.com/u/zenanbach)\
**Replies:** 8\
**Last updated:** [June 20, 2017, 10:39pm UTC](https://community.auth0.com/t/does-lock-10-additionalsignupfields-overwrite-user-metadata-added-in-pre-registration-hook/7123 "2017-06-20T22:39:55Z")

</div>

I have an app where I would like to: Require a couple of additional fields at signup. Call a pre-registration hook that searches a legacy user database (non-Auth0) and adds to user\_metadata based on results of the old …

[Next page](https://community.auth0.com/tag/548-tag/548.md?match_all_tags=true&page=1&tags%5B%5D=user_metadata)
