# Questions about User Profile

**URL:** <https://community.auth0.com/t/questions-about-user-profile/167900>\
**Category:** Get Help\
**Tags:** user-profile, user-management\
**Created:** [January 8, 2025, 1:25pm UTC](https://community.auth0.com/t/questions-about-user-profile/167900 "2025-01-08T13:25:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jdrew1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jdrew1/32/61813_2.png) [@jdrew1](https://community.auth0.com/u/jdrew1)\
**Post date:** [January 8, 2025, 1:25pm UTC](https://community.auth0.com/t/questions-about-user-profile/167900/1 "2025-01-08T13:25:21Z")

</div>

Hi-

We are currently using a custom DB to authenticate users. After the user logs in, we pull some extra data by api, like user\_institution, user\_jobTitle. My understanding is that these properties can be saved on the user profile in app\_metadata, user\_metadata, or as part of the root profile. Also, it’s my understanding, that properties in the user\_metadata structure are meant to be editable, while the properties in the app\_metadata structure are meant to be readonly. Here are my questions:

-When should one use root profile properties vs app\_metadata properties? (None of the fields should be editable by the user, so ruling out the user\_metadata)

-Should we make the api calls, get the extra user data, and save that data in the login script? Or in a post-login action?

-There are about 20 fields that I need to add to the profile because they need to be returned with the SAML response. Is this an okay number of fields to keep, or will this present problems?

Thanks

---

<div class="post-metadata">

**Author:** ![vigneshSivasamy](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/vigneshsivasamy/32/60008_2.png) [@vigneshSivasamy](https://community.auth0.com/u/vigneshSivasamy)\
**Post date:** [January 9, 2025, 2:04pm UTC](https://community.auth0.com/t/questions-about-user-profile/167900/3 "2025-01-09T14:04:37Z")

</div>

Hi,

I’m not sure about the recommended approach from Auth0, but root properties are not editable using Auth0 endpoints. Therefore, we are storing the user’s email and security identifier & Object ID in our custom database. AppMetadata is editable, and we use both user metadata and app metadata to store editable details like user roles agency codes. Ultimately, it is up to each organization to make this decision based on their compliance requirements.

---

<div class="post-metadata">

**Author:** ![Fario\_Consulting](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/fario_consulting/32/60590_2.png) [@Fario\_Consulting](https://community.auth0.com/u/Fario_Consulting)\
**Post date:** [January 14, 2025, 1:16pm UTC](https://community.auth0.com/t/questions-about-user-profile/167900/4 "2025-01-14T13:16:26Z")

</div>

Hi,  
For non editable fields, you would want to use the app\_metadata instead of the root profile or user\_metadata. You should make the API calls and save extra user data in a post-login action using Auth0 Actions to prevent overwriting existing metadata properties.  
FYI having 20 fields is not inherently problematic but you will want to be cautious as heavy search or update frequency might cause scalability issues

---

<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:** [January 28, 2025, 1:16pm UTC](https://community.auth0.com/t/questions-about-user-profile/167900/5 "2025-01-28T13:16:36Z")

</div>

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