Formula: nCr = n! / [(n-r)! r!]
n : Possible Permissions
r : Possible Roles
So for 3 Permissions, possible roles are
3C1+3C2+3C3 = 7
So for 3 permissions, we have 7 possible roles in 1 application. If we have 2 applications then the no of roles will be 14.
Challenge
How to minimize / manage roles?
Solution:
By Grouping
- Role Hierarchy
- Role Linking
By Enforcing Business Rules
No comments:
Post a Comment