Skip to content

User and Group object types missing from permissions in 4.0 #16138

@ibuclaw

Description

@ibuclaw

Deployment Type

Self-hosted

NetBox Version

v4.0.2

Python Version

3.11

Steps to Reproduce

In the UI:

  1. Admin > Permissions
  2. Add or Edit a permission
  3. Inspect list of selectable Object types.
  4. Authentication and Authorization > Group still exists, but it does nothing (Admin > Groups is visible on the navigation bar, but accessing it returns 403 permission denied).
  5. Authentication and Authorization > User is gone, and users who used to have that permission can no longer view/edit the Users page.

In Postgresql:

  1. Upgrade from 3.7.8 to 4.0.2 and run migrations
  2. psql -d netbox
  3. \d
  4. Observe that auth_user and all other related tables are gone (suspect one of the migrations did it but it's unclear which).
  5. Observe that auth_group and auth_group_permissions remains but are empty (it's more clear that this is the migration, no apparent deletion of the table is present).

Expected Behavior

I see that there's a couple migration scripts. I suspect that the DB migration from auth_user to users_user is incomplete but don't understand enough to definitively say so.

The ability to manipulate Users and Groups should be possible by users without superuser powers. This is more obviously broken since 4.0.x.

Observed Behavior

Users with permission to view/change users and groups get 403 permission denied when accessing those pages.

Metadata

Metadata

Assignees

Labels

severity: mediumResults in substantial degraded or broken functionality for specfic workflowsstatus: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions