# Is there any good practice when we consider to manage like this data structure on Auth0?

**URL:** <https://community.auth0.com/t/is-there-any-good-practice-when-we-consider-to-manage-like-this-data-structure-on-auth0/33774>\
**Category:** Get Help\
**Tags:** saas, architecture\
**Created:** [November 14, 2019, 3:42pm UTC](https://community.auth0.com/t/is-there-any-good-practice-when-we-consider-to-manage-like-this-data-structure-on-auth0/33774 "2019-11-14T15:42:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![roshihy](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/roshihy/32/17378_2.png) [@roshihy](https://community.auth0.com/u/roshihy)\
**Post date:** [November 14, 2019, 3:42pm UTC](https://community.auth0.com/t/is-there-any-good-practice-when-we-consider-to-manage-like-this-data-structure-on-auth0/33774/1 "2019-11-14T15:42:35Z")

</div>

Hello hello!

We provides SaaS base CRM services which integrated with communication mobile app like LINE(Famous one in Japan.). Because current architecture doesn’t support to manage user identity and associated authorization targets horizontally such as

- SaaS … A user can log-in
- Roles … What kind of role they can have on that SaaS
- Apps … Which apps on target SaaS this user can have operation

So, thinking to migrate current ID and these authorization management architecture with Auth0. (or else, it’s just draft idea raised early stage of planning discussion.)

By going through API docs, architecture scenarios I still couldn’t have draft idea which data better to store on Auth0 as one of User attribute or on our platform separately.

It seems there are these options to use for these user attributes on Auth0,

- Roles
- permissions
- app\_metadata
- user\_metadata

But not sure yet, what’s good practice how we use these objects and attributes in our case.

It’s great help for me if you give some suggestions for this case.

Thank you for your sexy kindness in advance po!

---

<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:** [February 5, 2020, 1:26am UTC](https://community.auth0.com/t/is-there-any-good-practice-when-we-consider-to-manage-like-this-data-structure-on-auth0/33774/2 "2020-02-05T01:26:27Z")

</div>

> [@roshihy](#):
>
> - Roles
> - permissions
> - app\_metadata
> - user\_metadata

Hello @roshihy,

Auth0 provides a lot of flexibility here. You can use the core RBAC feature, which is really focussed on managing permissions to APIs.

You can also create your own RBAC capability by storing data in the user’s `app_metadata`. You’ll want to use `app_metadata` for this rather than `user_metadata`. The difference between the two is:

- `user_metadata`: the user’s own credentials are sufficient for editing `user_metadata`
- `app_metadata`: only a privileged user can edit `app_metadata`. The user’s own credentials are NOT sufficient to edit `app_metadata`

(there’s also the Authorization extension, which shares some features with core RBAC. I believe core RBAC will eventually replace the authorization extension but don’t quote me on that.)

> [@roshihy](#):
>
> Thank you for your sexy kindness in advance po!

I’ll file that one under lost in translation! 😆

Cheers,  
Mark
