I have some questions related to RBAC (hirearchy model). Following are the scenarios
Assume i have three roles, one parent role and three different types of permission
Parent Role: branch manager. Child roles: savings manager, loan manager and accountant. Permissions: persist, delete, view
Q1: Can a child role be inherited by two or more roles I.e. Assume the role accountant reports to both savings manager and loan manager with different duties - E.g. saving manager gets report from accountant role on high valued savings account customer and loan manager get report from accountant role on high valued loans taken by customers
Is this model is allowed or do we need to have something like savings accountant and loan accountant based on their duties
Q2: if Q1 is valid, then how do i deny loan related permissions (persisting loan, deleting loan, viewing loan details) to savings manager but allow to loan manager and vice-versa for savings related permission.
Q3: assume,
Accountant has no permission to delete savings record Savings manager has permission to delete savings record Loan manager has no permission to delete savings record
now what happens to bank manager role (delete savings record is not defined). will bank manager gets permission to delete savings record. does allow get precedence over deny or vice-versa or do i need to write rules (which to be precedeing) for the same.
There are some more questions which i will ask later
Thanks Albert Arul Prakash