userset rewrite! how to! #1428
Unanswered
mactavis15
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am implementing a RBAC like system, where i have a group of employees at various heirarchy. Each group can have multiple managers and members. And each member can be manager of multiple other groups. But no where a groupmember can be member or manager of any of the groups his manager(s) are in.
here is a sample list of tuples i have:
Here are some acyclic things i must ensure:
I need to ensure no loops occur before promoting an employee to manager. So before, inserting a tuple lets say (Groups:sales#manager@jack) i need to make a /check after removing tuple (1) to ensure jack does not exist among:
1. The members of the Groups:sales &&
2. He is not a member of any of the groups the (Groups:sales#members) are manager of.
I am kind of confused how to write the userset permits "member" here. Could you tell if its possible to do a userset rewrite for this scenario? if yes, how? :D
Thanks for reading!
Beta Was this translation helpful? Give feedback.
All reactions