# Roles across multiple applications

**URL:** <https://community.auth0.com/t/roles-across-multiple-applications/53575>\
**Category:** Get Help\
**Tags:** roles\
**Created:** [November 20, 2020, 7:46am UTC](https://community.auth0.com/t/roles-across-multiple-applications/53575 "2020-11-20T07:46:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![law76](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/law76/32/14673_2.png) [@law76](https://community.auth0.com/u/law76)\
**Post date:** [November 20, 2020, 7:46am UTC](https://community.auth0.com/t/roles-across-multiple-applications/53575/1 "2020-11-20T07:46:03Z")

</div>

Hi All,

I have a tenancy with several applications and was considering using Roles in our solution. The core role functionality does not have the ability to assign a role to an application (authorization extension does). I have prefixed the roles with an application prefix in an effort to perform this assignment (for example I have several admin roles which map to application roles in applications). My problem is now when I login to a specific application all the roles are included in the token not just those intended for the application I am logging into. Is this how roles are intended to be used or am I going down the wrong path?

Regards

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [November 20, 2020, 6:52pm UTC](https://community.auth0.com/t/roles-across-multiple-applications/53575/3 "2020-11-20T18:52:47Z")

</div>

Hi @law76,

This is the current state of roles in the context of multiple applications. If you want to narrow things down, you could assign roles more strictly, based on a client\_id in rules.

If it isn’t causing specific issues, then you should be okay.

---

<div class="post-metadata">

**Author:** ![law76](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/law76/32/14673_2.png) [@law76](https://community.auth0.com/u/law76)\
**Post date:** [November 23, 2020, 5:16am UTC](https://community.auth0.com/t/roles-across-multiple-applications/53575/4 "2020-11-23T05:16:29Z")

</div>

> [@dan.woda](#):
>
> could assign roles more strictly, based

Thanks. Our use case is specifically to service external clients rather than internal employees so we were thinking of mapping auth0 roles to application roles. The applications themselves currently have the ability to create custom roles so I think this would get tricky moving forward. Would it be better to use auth0 for authentication and then leave the RBAC to the applications?

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [November 23, 2020, 5:06pm UTC](https://community.auth0.com/t/roles-across-multiple-applications/53575/5 "2020-11-23T17:06:21Z")

</div>

> [@law76](#):
>
> Would it be better to use auth0 for authentication and then leave the RBAC to the applications?

You could do this too. It’s hard to say what is _better_ for your specific case without knowing it in a more granular sense. I think you could make the Auth0 RBAC features work, but what is better is ultimately up to you.

We are working on some features that may help this use-case, but there is not public timeline for these things yet.

---

<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:** [December 14, 2020, 4:48pm UTC](https://community.auth0.com/t/roles-across-multiple-applications/53575/6 "2020-12-14T16:48:07Z")

</div>

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