Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Tenant hierarchy #11342


User avatar
0
RenuSolutions created

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)
  • User Avatar
    0
    ismcagdas created
    Support Team

    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 ?

  • User Avatar
    0
    RenuSolutions created

    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?

  • User Avatar
    0
    ismcagdas created
    Support Team

    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 ?

  • User Avatar
    0
    RenuSolutions created

    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

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @RenuSolutions

    This is not supported out of the box. You can try such an approach to implement it.

    1. You can add ParentId to Role entity.
    2. In RoleStore.cs in your project, you can override GetPermissionsAsync, GetPermissions and HasPermissionAsync methods and include permissions of Parent role.