I am working on a specific group organization because of a client request.
I read: https://auth0.com/docs/extensions/authorization-extension/v2/implementation/setup
We are currently using Auth0 Authorization extension with one group and one role per user.
My new use case is the following:
- Companies can sign up on the application.
- Each company can create subsidiaries.
- Each user can be assigned to multiple companies and/or subsidiaries with at each time a specific role.
Companies : COMP1, COMP2
COMP1 has three subsidiaries : SUB11, SUB12, SUB13
A user USER1 is an administrator of COMP2, and a viewer of the subsidiary SUB12
The only solution I found reading docs is to create for each company or subsidiary role named groups (ADMINS GROUP, EDITORS GROUP) and assign a role to it.
>> VIEWERS (USER1 belong to this group)
> ADMINS (USER1 belong to this group)
Is there another solution?