# How to save unique key/data against user?

**URL:** <https://community.auth0.com/t/how-to-save-unique-key-data-against-user/13404>\
**Category:** Get Help\
**Tags:** custom-database, user-metadata, auth0\
**Created:** [July 19, 2018, 9:47am UTC](https://community.auth0.com/t/how-to-save-unique-key-data-against-user/13404 "2018-07-19T09:47:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![karthick](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@karthick](https://community.auth0.com/u/karthick)\
**Post date:** [July 19, 2018, 9:47am UTC](https://community.auth0.com/t/how-to-save-unique-key-data-against-user/13404/1 "2018-07-19T09:47:59Z")

</div>

Hi,

I’m very to this community and Auth0. I have a basic question, can we save any custom data against my users? Say example, I would like to save **encryption\_key(String)** against my user. Is this possible?

Kindly help me to resolve my query. Thanks.

---

<div class="post-metadata">

**Author:** ![markd](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/markd/32/38919_2.png) [@markd](https://community.auth0.com/u/markd)\
**Post date:** [July 19, 2018, 3:05pm UTC](https://community.auth0.com/t/how-to-save-unique-key-data-against-user/13404/2 "2018-07-19T15:05:06Z")

</div>

You can store whatever information you like in the user’s `user_metadata` and `app_metadata`.

> **[Understand How Metadata Works in User Profiles](https://auth0.com/docs/manage-users/user-accounts/metadata)**
>
> Describes Auth0 user, application, and client metadata. Learn how you can use metadata to store information that does not originate from an identity provider.

You’ll need to determine whether it is safe for you to store an encryption key.

---

<div class="post-metadata">

**Author:** ![karthick](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@karthick](https://community.auth0.com/u/karthick)\
**Post date:** [July 21, 2018, 1:02pm UTC](https://community.auth0.com/t/how-to-save-unique-key-data-against-user/13404/3 "2018-07-21T13:02:01Z")

</div>

Thanks for your information. I have one more question regarding this metadata. Developer of my application won’t have any access to this user specific metadata right?

---

<div class="post-metadata">

**Author:** ![markd](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/markd/32/38919_2.png) [@markd](https://community.auth0.com/u/markd)\
**Post date:** [July 23, 2018, 1:36pm UTC](https://community.auth0.com/t/how-to-save-unique-key-data-against-user/13404/4 "2018-07-23T13:36:29Z")

</div>

Your application/developers have access to all user profile data and metadata. Some profile attributes are read only (`user_id`). If you want to limit access to profile data, I’m sure there is a way to do it (maybe with an API?) but that is a bit beyond my expertise.

In general, `user_metadata` is intended for attributes that the user (application end-user) should be able to change (e.g., mailing address), while `app_metadata` is for attributes the user should not be able to change (e.g., assigned groups / roles, an application specific identifier ).

---

<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:** [July 26, 2019, 8:35am UTC](https://community.auth0.com/t/how-to-save-unique-key-data-against-user/13404/5 "2019-07-26T08:35:58Z")

</div>


