# User Profile App Metadata and User Metadata

**URL:** <https://community.auth0.com/t/user-profile-app-metadata-and-user-metadata/7158>\
**Category:** Get Help\
**Tags:** security, app\_metadata, user-profile, metadata\
**Created:** [June 20, 2017, 9:15pm UTC](https://community.auth0.com/t/user-profile-app-metadata-and-user-metadata/7158 "2017-06-20T21:15:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sandy](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@sandy](https://community.auth0.com/u/sandy)\
**Post date:** [June 20, 2017, 9:15pm UTC](https://community.auth0.com/t/user-profile-app-metadata-and-user-metadata/7158/1 "2017-06-20T21:15:54Z")

</div>

Hi,

Do you need to be logged in as the user to access the user\_profile app metadata and user metadata? I’m needing to store a field that needs to be **protected**. I know that the app\_metadata field is “read\_only” so that is definitely a plus. I’m more concerned with is there any security risk for storing data in the app\_metadata section? Is there any way someone else can access the data without permissions to? OR is the only way to see this information is by logging it as that specific user?

Thank you

---

<div class="post-metadata">

**Author:** ![prashantT](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/prashantt/32/6002_2.png) [@prashantT](https://community.auth0.com/u/prashantT)\
**Post date:** [June 21, 2017, 6:05am UTC](https://community.auth0.com/t/user-profile-app-metadata-and-user-metadata/7158/2 "2017-06-21T06:05:35Z")

</div>

App\_metadata can only be read by the user it belongs to, or through calls made to the [Management API GET User endpoint](https://auth0.com/docs/api/management/v2#!/Users/get_users_by_id). You can also [encrypt data in app\_metadata](https://github.com/auth0/rules/blob/master/rules/encrypt-sensitive-data.md) through a Rule as an extra layer of protection.

Note, app\_metadata can be passed back to your applications as a claim in the `id_token` - this makes it possible that the id\_token could be stored in localStorage, hence the possibility of the token (and the app\_metadata) being read. I suggest reading the following document on our [User Data Storage Guidelines](https://auth0.com/docs/user-profile/user-data-storage).

---

<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:** [March 2, 2018, 5:54am UTC](https://community.auth0.com/t/user-profile-app-metadata-and-user-metadata/7158/3 "2018-03-02T05:54:48Z")

</div>


