# How can a user access their user\_metadata (read/write)

**URL:** <https://community.auth0.com/t/how-can-a-user-access-their-user-metadata-read-write/114544>\
**Category:** Get Help\
**Tags:** users, management-api\
**Created:** [August 25, 2023, 8:03pm UTC](https://community.auth0.com/t/how-can-a-user-access-their-user-metadata-read-write/114544 "2023-08-25T20:03:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mike.benza](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mike.benza/32/50202_2.png) [@mike.benza](https://community.auth0.com/u/mike.benza)\
**Post date:** [August 25, 2023, 8:03pm UTC](https://community.auth0.com/t/how-can-a-user-access-their-user-metadata-read-write/114544/1 "2023-08-25T20:03:03Z")

</div>

Hello,

I’m trying to better understand how much access an authenticated user has to their metadata. There’s conflicting documentation on it. On the User Details page in the Management console it calls `user_metadata` "  
Data that the user has read/write access to (e.g. color\_preference, blog\_url, etc.)".

On [Understand How Metadata Works in User Profiles](https://auth0.com/docs/manage-users/user-accounts/metadata#metadata-types), it says “This data **can** be edited by logged in users if you build a form using the Management API and should **not** be used as a secure data store.” but then later it says “A user can request an access token with the appropriate scopes and use the following [Management API](https://auth0.com/docs/api/management/v2) endpoints to view, create, update, and delete `user_metadata` .”

Do I need to worry about the user editing their `user_metadata` if I don’t “build a form using the Management API?” How would the user even get a management API token? They can obviously see their access token once you give it to them, but AFAICT there’s no way for them to get a management API token (rightly).

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [August 25, 2023, 11:52pm UTC](https://community.auth0.com/t/how-can-a-user-access-their-user-metadata-read-write/114544/3 "2023-08-25T23:52:43Z")

</div>

Hello @mike.benza welcome to the community!

> [@mike.benza](#):
>
> Do I need to worry about the user editing their `user_metadata` if I don’t “build a form using the Management API?” How would the user even get a management API token? They can obviously see their access token once you give it to them, but AFAICT there’s no way for them to get a management API token (rightly).

It is possible to obtain a [limited Management API token](https://auth0.com/docs/secure/tokens/access-tokens/get-management-api-tokens-for-single-page-applications#available-scopes-and-endpoints) client side. If the access token is scoped properly (read only) then you shouldn’t need to worry about a user editing metadata, but it is still generally recommended to handle this server side.

The following FAQ outlines this exact scenario:

[https://community.auth0.com/t/how-can-i-enable-users-to-change-their-email-address-from-a-spa-or-native-app/44064](https://community.auth0.com/t/how-can-i-enable-users-to-change-their-email-address-from-a-spa-or-native-app/44064)

Hope this helps!

---

<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:** [September 8, 2023, 11:53pm UTC](https://community.auth0.com/t/how-can-a-user-access-their-user-metadata-read-write/114544/4 "2023-09-08T23:53:11Z")

</div>

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