# Accessing user\_metadata by sdk without populating id token

**URL:** <https://community.auth0.com/t/accessing-user-metadata-by-sdk-without-populating-id-token/76656>\
**Category:** Get Help\
**Created:** [January 19, 2022, 12:43pm UTC](https://community.auth0.com/t/accessing-user-metadata-by-sdk-without-populating-id-token/76656 "2022-01-19T12:43:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tomaz.jejcic](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/tomaz.jejcic/32/24943_2.png) [@tomaz.jejcic](https://community.auth0.com/u/tomaz.jejcic)\
**Post date:** [January 19, 2022, 12:43pm UTC](https://community.auth0.com/t/accessing-user-metadata-by-sdk-without-populating-id-token/76656/1 "2022-01-19T12:43:46Z")

</div>

Hi!  
I am wondering if there is a way to access/read and possibly even write (add field) to user\_metadata by just using a frontend sdk (auth0-spa-js, or other), without populating id token. So I would like to get user\_metadata in spa without calling backend api and without increasing the size of the id token.

Thank you!

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [January 19, 2022, 10:38pm UTC](https://community.auth0.com/t/accessing-user-metadata-by-sdk-without-populating-id-token/76656/3 "2022-01-19T22:38:46Z")

</div>

Hi @tomaz.jejcic,

Welcome to the Auth0 Community!

I’m afraid what you seek is not possible. You will need to choose between calling the Management API to get the user’s user\_metadata or read the user\_metadata in the ID Token.

Since the ID Token does not contain any information regarding the user’s user\_metadata by default, you will need to append these values as a custom claim. When doing so, you will _increase_ the size of the ID token. And unfortunately, this is unavoidable.

Given that, I strongly encourage you to decide on one of the two methods. There isn’t an alternative way to retrieve the user’s user\_metadata.

I hope that helps!

Please let me know if you have any further questions.

Thank you.

---

<div class="post-metadata">

**Author:** ![tomaz.jejcic](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/tomaz.jejcic/32/24943_2.png) [@tomaz.jejcic](https://community.auth0.com/u/tomaz.jejcic)\
**Post date:** [January 20, 2022, 8:20am UTC](https://community.auth0.com/t/accessing-user-metadata-by-sdk-without-populating-id-token/76656/4 "2022-01-20T08:20:08Z")

</div>

Thank you for the swift reply and confirming my suspicion.

---

<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:** [February 4, 2022, 8:20am UTC](https://community.auth0.com/t/accessing-user-metadata-by-sdk-without-populating-id-token/76656/5 "2022-02-04T08:20:09Z")

</div>

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