# Access user\_metadata from signup with additionalSignupFields?

**URL:** <https://community.auth0.com/t/access-user-metadata-from-signup-with-additionalsignupfields/62312>\
**Category:** Get Help\
**Created:** [May 6, 2021, 7:05am UTC](https://community.auth0.com/t/access-user-metadata-from-signup-with-additionalsignupfields/62312 "2021-05-06T07:05:54Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![rluka996](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rluka996/32/29245_2.png) [@rluka996](https://community.auth0.com/u/rluka996)\
**Post date:** [May 6, 2021, 7:05am UTC](https://community.auth0.com/t/access-user-metadata-from-signup-with-additionalsignupfields/62312/1 "2021-05-06T07:05:54Z")

</div>

I was going through [Lock Configuration](https://auth0.com/docs/libraries/lock/lock-configuration#additionalsignupfields-array-) and successfully added additionalSignUpFields which rendered on my signup page. In the documentation it says that they are added to user\_metadata but when I subscribe to user profile on my Angular app it doesn’t have any metadata, just the standard fields like this:

{  
“nickname”:  
“name”:  
“picture”:  
“email”:  
“email\_verified”:  
“sub”:  
}

Any help?

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [May 6, 2021, 8:17am UTC](https://community.auth0.com/t/access-user-metadata-from-signup-with-additionalsignupfields/62312/2 "2021-05-06T08:17:16Z")

</div>

Hey there!

I guess it might be coming from the fact that those values are saved in user\_metadata not app\_metadata

---

<div class="post-metadata">

**Author:** ![rluka996](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rluka996/32/29245_2.png) [@rluka996](https://community.auth0.com/u/rluka996)\
**Post date:** [May 11, 2021, 11:44am UTC](https://community.auth0.com/t/access-user-metadata-from-signup-with-additionalsignupfields/62312/3 "2021-05-11T11:44:54Z")

</div>

Hey, thanks for the answer but it was the fact that I didn’t create a rule to enrich User’s id token with metadata like this:

function (user, context, callback) {  
var namespace = “[https://example/](https://example/)”;  
user.user\_metadata = user.user\_metadata || {};  
context.idToken[namespace + “user\_metadata”] = user.user\_metadata;  
callback(null, user, context);  
}

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [May 11, 2021, 11:45am UTC](https://community.auth0.com/t/access-user-metadata-from-signup-with-additionalsignupfields/62312/4 "2021-05-11T11:45:56Z")

</div>

Perfect! Glad you have figured it out and thanks for sharing with the rest of community!

---

<div class="post-metadata">

**Author:** ![rluka996](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rluka996/32/29245_2.png) [@rluka996](https://community.auth0.com/u/rluka996)\
**Post date:** [May 11, 2021, 3:44pm UTC](https://community.auth0.com/t/access-user-metadata-from-signup-with-additionalsignupfields/62312/5 "2021-05-11T15:44:51Z")

</div>

Just posted a new topic but it would be even better if you could help 🙂  
So I managed to do that, but now I should add that User object to my local SQL Server database(just without password). How do I accomplish that?

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [May 26, 2021, 3:45pm UTC](https://community.auth0.com/t/access-user-metadata-from-signup-with-additionalsignupfields/62312/6 "2021-05-26T15:45:08Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
