NetBox superuser cannot access System or Plugins pages without Staff status #11191

Closed
opened 2025-12-29 21:41:44 +01:00 by adam · 3 comments
Owner

Originally created by @markkuleinio on GitHub (May 16, 2025).

Deployment Type

Self-hosted

NetBox Version

v4.3.1

Python Version

3.11

Steps to Reproduce

  1. Login with a user with superuser status
  2. Remove Staff status (if present) from the user
  3. Go to System - Plugins or System - System

Expected Behavior

Since the user is a superuser, access to the System and Plugins pages should be available.

Observed Behavior

"You do not have permission to access this page." so the superuser is not able to access System or Plugins pages.

Related issues/discussions:
#15754 Removal of staff_only=True from Admin menu items (completed)
#16137 Remove the is_staff field from the user model (open)
#17010 Hide Admin menu section for non-admins (open)

Originally created by @markkuleinio on GitHub (May 16, 2025). ### Deployment Type Self-hosted ### NetBox Version v4.3.1 ### Python Version 3.11 ### Steps to Reproduce 1. Login with a user with superuser status 2. Remove Staff status (if present) from the user 3. Go to System - Plugins or System - System ### Expected Behavior Since the user is a superuser, access to the System and Plugins pages should be available. ### Observed Behavior "You do not have permission to access this page." so the superuser is not able to access System or Plugins pages. Related issues/discussions: #15754 Removal of staff_only=True from Admin menu items (completed) #16137 Remove the is_staff field from the user model (open) #17010 Hide Admin menu section for non-admins (open)
adam added the type: bugseverity: low labels 2025-12-29 21:41:44 +01:00
adam closed this issue 2025-12-29 21:41:45 +01:00
Author
Owner

@jnovinger commented on GitHub (May 16, 2025):

This is due to this check: b6c8502408/netbox/core/views.py (L343-L346)

Given related proposed changes in #16137 and #17010, we should discuss what check is appropriate here instead of is_staff.

@jnovinger commented on GitHub (May 16, 2025): This is due to this check: https://github.com/netbox-community/netbox/blob/b6c8502408c5f393a50db2426ceb31d276b8e696/netbox/core/views.py#L343-L346 Given related proposed changes in #16137 and #17010, we should discuss what check is appropriate here instead of `is_staff`.
Author
Owner

@github-actions[bot] commented on GitHub (Aug 15, 2025):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. Do not attempt to circumvent this process by "bumping" the issue; doing so will result in its immediate closure and you may be barred from participating in any future discussions. Please see our contributing guide.

@github-actions[bot] commented on GitHub (Aug 15, 2025): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. **Do not** attempt to circumvent this process by "bumping" the issue; doing so will result in its immediate closure and you may be barred from participating in any future discussions. Please see our [contributing guide](https://github.com/netbox-community/netbox/blob/main/CONTRIBUTING.md).
Author
Owner

@jeremystretch commented on GitHub (Sep 11, 2025):

This will be addressed in NetBox v4.5 under FR #16137. In the interim, administrators are advised to enable is_staff for all users who require access to these views, regardless of superuser status.

@jeremystretch commented on GitHub (Sep 11, 2025): This will be addressed in NetBox v4.5 under FR #16137. In the interim, administrators are advised to enable `is_staff` for all users who require access to these views, regardless of superuser status.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#11191