How to know which permission constraints to use? #11701
Replies: 3 comments 6 replies
-
Hi @CaptainBalou , So the constraints docs are over here: https://docs.netbox.dev/en/stable/administration/permissions/#constraints I dont know if you've seen those. Constraints are expressed as a JSON object or list representing a Django query filter. Those are built from the objects fields and their relationships with other objects. As with query filters, double underscores can be used to traverse related objects or invoke lookup expressions. |
Beta Was this translation helpful? Give feedback.
-
@CaptainBalou i created the script, but when i run, i get an eternal 'Pending' status, can you help me? |
Beta Was this translation helpful? Give feedback.
-
The typical use case, I would have thought, would be to say that "yours is this site and everything that's in it". Is there no easy way to do that? Is that not the intended use? |
Beta Was this translation helpful? Give feedback.
-
Hello all,
I really like Netbox after testing it since a few weeks. Awesome tool with a lot of features and the possibility to have plugins to enhance functionality. So first of all a big 'Thank You' to all the developers that I can test and use this software for free.
I'm just struggling with one thing since days and this is to create the permission constraints for the users and groups.
It may seem obvious for the developers and very experienced users how to build the constraints but for me it feels impossible to get everything set up. Even after reading documentation, discussions and issues…
So my question here today is:"Is there a way how I can get constraints built without having developer skills or without being an experienced 'using Netbox since years'-user?"
My company structure looks similar to this:
My goal is to have permission groups for all departments to let them view or edit the things they're supposed to work on. I already found ways to get much things working.
But those haven't been created by myself's smartness - they're just copied out of discussions, issues and so on. :-) I would have never found things like "[{"terminations___device__tenant__group": 6}]" and so on.
I have some things I'm not able to find out myself. So this I why I'm seeking for help. Is there a way to find out which constraints are possible at all and then how they've to be built? A kind of generic path through which one always finds the destination?
Kind regards
Marco
Beta Was this translation helpful? Give feedback.
All reactions