Permission constraints not working #4022

Closed
opened 2025-12-29 18:32:39 +01:00 by adam · 2 comments
Owner

Originally created by @hyudra on GitHub (Aug 24, 2020).

Environment

  • Python version: 3.6.8
  • NetBox version: 2.9.1
  • Build with latest netbox-docker build-latest.sh

Steps to Reproduce

Trying apply constraints in permission on GUI. It got error return as

Invalid filter for <class 'dcim.models.device_components.ConsolePort'>: Cannot resolve keyword 'tenant' into field. Choices are: _cabled_as_a, _cabled_as_b, _name, cable, cable_id, connected_endpoint, connected_endpoint_id, connection_status, description, device, device_id, id, label, name, tagged_items, tags, type

constraints using:

{"tenant__group__name": "Test_Group"}

Originally created by @hyudra on GitHub (Aug 24, 2020). ### Environment * Python version: 3.6.8 * NetBox version: 2.9.1 * Build with latest netbox-docker build-latest.sh ### Steps to Reproduce Trying apply constraints in permission on GUI. It got error return as > Invalid filter for <class 'dcim.models.device_components.ConsolePort'>: Cannot resolve keyword 'tenant' into field. Choices are: _cabled_as_a, _cabled_as_b, _name, cable, cable_id, connected_endpoint, connected_endpoint_id, connection_status, description, device, device_id, id, label, name, tagged_items, tags, type constraints using: `{"tenant__group__name": "Test_Group"}`
adam closed this issue 2025-12-29 18:32:39 +01:00
Author
Owner

@jeremystretch commented on GitHub (Aug 24, 2020):

Yes, that's an invalid filter as the error message indicates. There is no direct relation from the a console port to a tenant. Please post to the mailing list for further assistance.

@jeremystretch commented on GitHub (Aug 24, 2020): Yes, that's an invalid filter as the error message indicates. There is no direct relation from the a console port to a tenant. Please post to the mailing list for further assistance.
Author
Owner

@hyudra commented on GitHub (Aug 24, 2020):

So, how to avoid to not have permission constraints not look into console section?

How can I filter it out?

@hyudra commented on GitHub (Aug 24, 2020): So, how to avoid to not have permission constraints not look into console section? How can I filter it out?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#4022