Replies: 2 comments 9 replies
-
I guess you could do this with tags. You would create a separate permission corresponding to each tag, and then assign that permission to a group, and assign users to that group. To grant access to an object, you'd add the appropriate tag to that object. You'd clearly not want to grant modify access to the tags themselves, nor to which tags are set on an object. |
Beta Was this translation helpful? Give feedback.
-
I have also tried creating a custom field on the objects I want to manage: I've called it "User Access" and I want to fill it with a list of users. Is it possible to write a generic permission saying "gain access to all (IP Prefix) objects, where the "User Access" field contains the current user? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,
I would like to setup permissions and constraints in a way, so that multiple users can have acces to a possibly overlapping number of objects, M:N if you will. At the same time, I don't want to manually set constraints for each user. I would like to click on an object visually and assign users / usergroups which have access to it.
I've tried using tenants, but I don't see how to use them properly. You can assign only one tenant to a typical object, so those cannot represent users or user groups to implement m:n relations.
I also tried using contact assignments, because you can assign multiple contact assignments to the same object - site for example. But I don't know how to set up a generic permission for that. I try formulating it in plain speech, maybe someone can help me translating it into constraints:
"Permission: Gain access to all ressources (or more specifically all IP Prefix objects), whose assigned site has a contact assignment which represents the user (maybe user_slug==contact_slug)"
EDIT: Sounds like the permission system is not powerful enough for this to work. Also: $user does not seem to work in general. I've tried using the example from the documentation
{ "created_by": "$user" }
Beta Was this translation helpful? Give feedback.
All reactions