Users removed from all groups if REMOTE_AUTH_DEFAULT_GROUPS isn't valid #7366

Closed
opened 2025-12-29 20:22:24 +01:00 by adam · 0 comments
Owner

Originally created by @arthanson on GitHub (Dec 15, 2022).

Originally assigned to: @arthanson on GitHub.

NetBox version

3.4.0

Python version

3.8

Steps to Reproduce

Turn on social auth
Setup a user using a remote social login and belonging to some groups
set REMOTE_AUTH_DEFAULT_GROUPS to a group name that doesn't exist:
REMOTE_AUTH_DEFAULT_GROUPS=["notexist", ]
logout the user then log in as the user
see that the group assignments are cleared.

Expected Behavior

The REMOTE_AUTH_DEFAULT_GROUPS should just add them as a group, it shouldn't remove existing group assignments.

Observed Behavior

The user is removed from all groups.

Originally created by @arthanson on GitHub (Dec 15, 2022). Originally assigned to: @arthanson on GitHub. ### NetBox version 3.4.0 ### Python version 3.8 ### Steps to Reproduce Turn on social auth Setup a user using a remote social login and belonging to some groups set REMOTE_AUTH_DEFAULT_GROUPS to a group name that doesn't exist: REMOTE_AUTH_DEFAULT_GROUPS=["notexist", ] logout the user then log in as the user see that the group assignments are cleared. ### Expected Behavior The REMOTE_AUTH_DEFAULT_GROUPS should just add them as a group, it shouldn't remove existing group assignments. ### Observed Behavior The user is removed from all groups.
adam added the type: bugstatus: accepted labels 2025-12-29 20:22:24 +01:00
adam closed this issue 2025-12-29 20:22:24 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#7366