Skip to content

Support Constraints for Group-Based Ownership in Owner Model #21085

@islepnev

Description

@islepnev

NetBox version

v4.5.0

Feature type

New functionality

Proposed functionality

Enhance the permissions constraint system to support dynamic lookups for indirect ownership via groups in the new Owner model introduced in #20634

Currently, constraints work for direct user assignments (e.g., {"owner__users": "$user"}), but attempting to traverse group memberships (e.g., {"owner__groups__users": "$user"}) fails validation due to unsupported lookups.

Use case

Allow teams (user groups) to manage owned objects (objects have Owner property set)
In environments with team-based ownership, assigning Groups to Owners is preferred to listing individual users.
Current workaround: assign individual Users to Owner.

Database changes

No response

External dependencies

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    complexity: highExpected to require a large amont of time and effort to implement relative to other tasksnetboxstatus: backlogAwaiting selection for worktype: featureIntroduction of new functionality to the application

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions