-
Suppose:
This way each VM is assigned an owner just by adding it to a tenant (or upon creating one). The long and short of it is that the tenant names are variable and not really an item to query on. But now I want to filter the inventory so the owner can only target his own machines in Ansible. Yes, I can do it with tags, but that just adds more items to manage. I would really like to come up with a query filter that allows me to select objects in Netbox based on contact name. Is there such a way? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Someone will be looking for this, so here's an answer. The secret lies in the permissions in Netbox, not in the query filters in the dynamic inventory: Add a permission for the user to view virtual machines and add a constraint to it like so:
For more information Netbox constrains, see: |
Beta Was this translation helpful? Give feedback.
Someone will be looking for this, so here's an answer. The secret lies in the permissions in Netbox, not in the query filters in the dynamic inventory: Add a permission for the user to view virtual machines and add a constraint to it like so:
For more information Netbox constrains, see:
https://netboxlabs.com/docs/netbox/administration/permissions/#constraints
and: https://www.packetcoders.io/mastering-nextbox-user-access-with-permission-constraints/