oandre
October 1, 2021, 4:07pm
1
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?
Hi @oandre ,
Welcome to the Auth0 Community!
You you have a few options:
You can use role-based access control , 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 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.
oandre
October 4, 2021, 1:16pm
4
Hi @dan.woda ! How are you doing?
Thanks for your reply. I got your point but my use case is something like this:
One user can have many authentication methods;
This user can be connected to more than one project;
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?
oandre
October 4, 2021, 3:03pm
5
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
1 Like
Glad you found a solution. Let us know if you have any questions!
system
Closed
December 23, 2021, 5:00pm
7
This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.