API: v11.1.0 | Client: v11.1.0 Angular .net core
Now in azp.net zero there are two levels only one is admin and another one is user.. is there any way to add a another heirarchy level like admin->manager->users with permissions?
5 Answer(s)
-
0
Hi @RenuSolutions
Do you mean the default roles ? If so, you can add new roles according to your needs by using the Roles page. If not, could you explain your scenario a bit more ?
-
0
Hi @RenuSolutions
Do you mean the default roles ? If so, you can add new roles according to your needs by using the Roles page. If not, could you explain your scenario a bit more ?
Hi, In our application we need 4 levels of roles like Admin--> Manager --> Team lead/Supervisor --> User. how to achieve this? can u explain?
-
0
Hi @RenuSolutions
The current role system doesn't have a level. They are assumed at the same level. Could you explain what do you mean by level ? For example, do you want Manager role to have all permisisons of "Team lead/Supervisor" and "User" roles ?
-
0
Yes we want manager role have all permissions of "Team lead/Supervisor" and "User" roles and TeamLeader/Supervisor have all permissions of users like that
-
0
Hi @RenuSolutions
This is not supported out of the box. You can try such an approach to implement it.
- You can add ParentId to Role entity.
- In RoleStore.cs in your project, you can override
GetPermissionsAsync
,GetPermissions
andHasPermissionAsync
methods and include permissions of Parent role.