# Multiple projects and roles

**URL:** <https://community.auth0.com/t/multiple-projects-and-roles/70633>\
**Category:** Get Help\
**Created:** [October 1, 2021, 4:07pm UTC](https://community.auth0.com/t/multiple-projects-and-roles/70633 "2021-10-01T16:07:13Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![oandre](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/oandre/32/26691_2.png) [@oandre](https://community.auth0.com/u/oandre)\
**Post date:** [October 1, 2021, 4:07pm UTC](https://community.auth0.com/t/multiple-projects-and-roles/70633/1 "2021-10-01T16:07:13Z")

</div>

Hi! I’m new using auth0 and I’m linking it, but I’m having troubles with my current implementation.

My challenge is: I have users that can access multiple projects but in each project they have specific roles/permissions.

How can I deal with this case from the sign up to the sign in?

---

<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:** [October 1, 2021, 9:41pm UTC](https://community.auth0.com/t/multiple-projects-and-roles/70633/3 "2021-10-01T21:41:55Z")

</div>

Hi @oandre,

Welcome to the Auth0 Community!

You you have a few options:

- You can use [role-based access control](https://auth0.com/docs/authorization/rbac/), which will allow you to assign roles to your users and grant them permissions based on those roles.
- You can assign permissions directly to your users. This can be done under the _user_ tab in the dashboard.
- You can use the [app\_metadata property](https://auth0.com/docs/users/metadata) to control the user’s access.

Each solution will have pros and cons depending on the details of your use case. Generally, you will want some information in the token that indicates what projects the user has access to.

---

<div class="post-metadata">

**Author:** ![oandre](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/oandre/32/26691_2.png) [@oandre](https://community.auth0.com/u/oandre)\
**Post date:** [October 4, 2021, 1:16pm UTC](https://community.auth0.com/t/multiple-projects-and-roles/70633/4 "2021-10-04T13:16:54Z")

</div>

Hi @dan.woda ! How are you doing?

Thanks for your reply. I got your point but my use case is something like this:

1. One user can have many authentication methods;
2. This user can be connected to more than one project;
3. In each project this user will have one specific role.

In the scenario you mentioned the role associated to the user won’t be related to the project, right?

---

<div class="post-metadata">

**Author:** ![oandre](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/oandre/32/26691_2.png) [@oandre](https://community.auth0.com/u/oandre)\
**Post date:** [October 4, 2021, 3:03pm UTC](https://community.auth0.com/t/multiple-projects-and-roles/70633/5 "2021-10-04T15:03:49Z")

</div>

I found a way to organize it. I can create organizations, add users to this companies and set specific roles to that user inside that organization.

Now I just have a problem to retrieve the connect user companies 😬

---

<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:** [October 4, 2021, 3:54pm UTC](https://community.auth0.com/t/multiple-projects-and-roles/70633/6 "2021-10-04T15:54:52Z")

</div>

Glad you found a solution. Let us know if you have any questions!

---

<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 23, 2021, 5:00pm UTC](https://community.auth0.com/t/multiple-projects-and-roles/70633/7 "2021-12-23T17:00:03Z")

</div>

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