In my app, we have a number of different roles set up for different customers. For example, for customer ABC we have roles named ‘ABC Admin’ and ‘ABC ReadOnly’ and for customer DEF we have roles named ‘DEF Admin’ and ‘DEF ReadOnly’. This is working really well for us.
We’re now looking to add different tiers to this application. If a customer is a tier 1 customer then they have access to only a limited scope of functionality. Tier 2 customers can do a little bit more - tier 3 customers can do nearly everything.
So what I want to be able to do now is to assign roles named after these different tiers to the roles named after the customers. So I would want to assign a role (e.g. Tier 2) to another role (e.g. ABC Admin). This is way easier than assigning a second role (Tier 2) to all of the users who are in role ABC Admin. It would also be far easier than adding the list of permissions assigned to the role ‘Tier 2’ to the role ‘ABC Admin’. Is there any way I can do this?
I don’t see any way to do so in the auth0 portal. Is this something that could be done in a rule? i.e. the rule code may say if the user has role ABC Admin then add all of the permissions assigned to the role Tier 2.