Configuring Netbox for Automatic User Account Creation and Group Assignment with SSO #12045
Unanswered
F3d0s
asked this question in
Help Wanted!
Replies: 1 comment
|
Hi, |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I would like to find a way to configure Netbox (with or without plug-in) so that when a new user, who does not have a Netbox account logs in via SSO, his account is automatically created and assigned to the related groups, based on which Azure AD groups his account belongs to. If his account already exists in Netbox, then a check should be made in case the user has been assigned to a new group, e.g. if he has been assigned to the Azure AD group
netbox-admins, then he should be assigned toDCIM-Adminsin Netbox, andStaffandSuperusershould be flagged.At the moment, I'm using
django3_saml2_nbplugin, which for some reason, is not working as it should; I configured everything following the manual. Still, suppose a user is part of thenetbox-adminsgroup. In that case, he is not added to the related Netbox group nor assigned theSuperuserflag.To make a test, I removed my Test account from the Azure AD group
netbox-admins, completely removed it from NetBox users, and then re-added it to the Azure AD groupnetbox-admins.After logging back into Netbox via SSO, the Test account was not in
DCIM-Admins, and the 'Superuser' flag wasn't checked; the account appears to be active, but nothing else. If I manually add the account to theDCIM-Adminsgroup and check the 'Superuser' flag, the group and flag are automatically removed after logging back in.Does someone know if there is a way to configure it properly, possibly using Auth0 instead of SAML?
This is how I configured
django3_saml2_nbplugininconfiguration.py(I hid some details)All reactions