# Is it possible to set roles on a particular group for a user

**URL:** <https://community.auth0.com/t/is-it-possible-to-set-roles-on-a-particular-group-for-a-user/42289>\
**Category:** Get Help\
**Tags:** groups, users, roles\
**Created:** [May 4, 2020, 9:36am UTC](https://community.auth0.com/t/is-it-possible-to-set-roles-on-a-particular-group-for-a-user/42289 "2020-05-04T09:36:08Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jroques](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jroques/32/20988_2.png) [@jroques](https://community.auth0.com/u/jroques)\
**Post date:** [May 4, 2020, 9:36am UTC](https://community.auth0.com/t/is-it-possible-to-set-roles-on-a-particular-group-for-a-user/42289/1 "2020-05-04T09:36:10Z")

</div>

Hi,  
I’m starting to look a auth0 and Authorization extension.  
My question is the same as in [this ticket](http://community.auth0.com/t/what-is-the-best-way-to-handle-auth0-groups-and-roles-in-a-rails-app/8101)

But the answer is not what I expected.  
As far as I understood, Authorization extension provides:  
\<Group - Roles\> association

What I need is Roles to be associated to a user on a particular group. Not on the group itself.  
e.g.  
Group : Business1  
Group: Business2  
Role: Admin  
Role: Owner  
User: User1  
User: User2

User1 could be Admin on Business1, and Owner on Business2  
User2 could be Owner on Business1

Is that possible ?

Thanks before

---

<div class="post-metadata">

**Author:** ![lucas.sonich](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lucas.sonich/32/17240_2.png) [@lucas.sonich](https://community.auth0.com/u/lucas.sonich)\
**Post date:** [May 4, 2020, 7:07pm UTC](https://community.auth0.com/t/is-it-possible-to-set-roles-on-a-particular-group-for-a-user/42289/2 "2020-05-04T19:07:20Z")

</div>

Hello jroques! Welcome to our community.

We recommend using the [Authorization Extension](https://auth0.com/docs/extensions/authorization-extension/v2) to only utilise “roles” and simply don’t assign “groups”.

We hope that solution works for you!

Best regards.

---

<div class="post-metadata">

**Author:** ![jroques](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jroques/32/20988_2.png) [@jroques](https://community.auth0.com/u/jroques)\
**Post date:** [May 5, 2020, 7:41am UTC](https://community.auth0.com/t/is-it-possible-to-set-roles-on-a-particular-group-for-a-user/42289/3 "2020-05-05T07:41:43Z")

</div>

Hi,  
thanks for your reply.  
Unfortunately this won’t work for me.  
Indeed, in need a \<User, Group\> - Roles binding, instead of a User-Roles or Group-Roles binding.

Regards

---

<div class="post-metadata">

**Author:** ![lucas.sonich](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lucas.sonich/32/17240_2.png) [@lucas.sonich](https://community.auth0.com/u/lucas.sonich)\
**Post date:** [May 7, 2020, 9:20pm UTC](https://community.auth0.com/t/is-it-possible-to-set-roles-on-a-particular-group-for-a-user/42289/4 "2020-05-07T21:20:48Z")

</div>

Hello again,

We want understand more about your use-case:

Why do you want to use Groups? and why would you use them because the roles are assigned to the groups and not the users inside the groups?

Thanks.

---

<div class="post-metadata">

**Author:** ![jroques](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jroques/32/20988_2.png) [@jroques](https://community.auth0.com/u/jroques)\
**Post date:** [May 10, 2020, 9:30am UTC](https://community.auth0.com/t/is-it-possible-to-set-roles-on-a-particular-group-for-a-user/42289/5 "2020-05-10T09:30:00Z")

</div>

Hi again,  
Actually the _group_ I’m talking about is not the same as auth0 Group.  
What I called Group is more an organization.

For instance let’s say I have 2 roles, User and Admin (each are just a set of perms).

Now User1 can be User on Company1, and Admin on Campany2.  
And User2 can be Admin on Company1.

With that use case you can see that auth0 Groups don’t fit. But I can’t see how auth0 can answer this use case…

Thanks before

---

<div class="post-metadata">

**Author:** ![jroques](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jroques/32/20988_2.png) [@jroques](https://community.auth0.com/u/jroques)\
**Post date:** [June 9, 2020, 1:18pm UTC](https://community.auth0.com/t/is-it-possible-to-set-roles-on-a-particular-group-for-a-user/42289/6 "2020-06-09T13:18:58Z")

</div>

Hi, any hint about my last message ?

Thanks
