Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
Back to tool/Back to issues
#23242·netbox

Add a user management best practices page

Author: jnovingerCreated Sep 25, 2026Updated Sep 25, 2026
Labelstype: documentationstatus: acceptednetbox

Change Type

Addition

Area

Best practices

Proposed Changes

NetBox's docs explain how permissions work but not how to use them well. Trust guidance is limited to per-feature warnings on export templates, custom links, and webhooks, and nothing says which permissions let a user change their own access. A user management best practices page would give administrators one place to find this.

A minimal first version would cover:

Account lifecycle

  • Where accounts come from (local, LDAP, SSO) and what access new accounts receive by default.
  • Deactivating rather than deleting departing users, which preserves their change history.

Permission design

  • Role-based groups. Build a small set of groups (for example read-only, operator, administrator) and assign permissions to groups rather than to individual users.
  • Least privilege. Start from view access and add actions as a role needs them. Where a role only needs part of a model, narrow the grant with constraints rather than granting all objects.
  • Administrative permissions. Permission to add or change users, groups, or object permissions lets the holder change their own access. Changing users includes granting superuser status. Treat these as administrator grants. A constraint of {"is_superuser": false} on user permissions prevents granting superuser status, but does not limit group or permission assignment.
  • Features that run user-authored code. Custom scripts, export templates, config templates, custom links, and webhooks are administrator grants too. Link each feature's existing warning.
  • Superusers. Superusers bypass every permission check. Keep them few and reserve them for administration.

Review

  • Periodically review group membership, permission assignments, and DEFAULT_PERMISSIONS, which applies to every authenticated user.

API token practices are a good follow-up but not needed for a first version.

Source: netbox-community/netbox

View original on GitHubView discussion on GitHub