Ownership model is missing at permission object types #11930

Closed
opened 2025-12-29 21:51:38 +01:00 by adam · 1 comment
Owner

Originally created by @julianstolp on GitHub (Dec 17, 2025).

Originally assigned to: @jeremystretch on GitHub.

NetBox Edition

NetBox Community

NetBox Version

v4.5.0-beta1

Python Version

3.12

Steps to Reproduce

  1. got to /users/permissions/add/
  2. search for owner
  3. not found

Expected Behavior

The ownership model can be accessed for permissions

Observed Behavior

The ownership model cannot be selected. However, users with edit permissions on an object must also have view permissions to the owner; otherwise, the owner will be lost when saving the modified object (see https://github.com/netbox-community/netbox/issues/18987).

Originally created by @julianstolp on GitHub (Dec 17, 2025). Originally assigned to: @jeremystretch on GitHub. ### NetBox Edition NetBox Community ### NetBox Version v4.5.0-beta1 ### Python Version 3.12 ### Steps to Reproduce 1. got to /users/permissions/add/ 2. search for owner 3. not found ### Expected Behavior The ownership model can be accessed for permissions ### Observed Behavior The ownership model cannot be selected. However, users with edit permissions on an object must also have view permissions to the owner; otherwise, the owner will be lost when saving the modified object (see https://github.com/netbox-community/netbox/issues/18987).
adam added the type: bugstatus: acceptednetboxbetaseverity: low labels 2025-12-29 21:51:38 +01:00
adam closed this issue 2025-12-29 21:51:38 +01:00
Author
Owner

@zmaster7 commented on GitHub (Dec 18, 2025):

It appears to me that this can be resolved by modifying OBJECTPERMISSION_OBJECT_TYPES under netbox/netbox/users/constants.py and adding owner/ownergroup to the following query:

Q(app_label='users', model__in=['objectpermission', 'token', 'group', 'user'])

@zmaster7 commented on GitHub (Dec 18, 2025): It appears to me that this can be resolved by modifying OBJECTPERMISSION_OBJECT_TYPES under netbox/netbox/users/constants.py and adding owner/ownergroup to the following query: `Q(app_label='users', model__in=['objectpermission', 'token', 'group', 'user'])`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#11930