netbox-plugin-auth-saml2 icon indicating copy to clipboard operation
netbox-plugin-auth-saml2 copied to clipboard

FLAGS_BY_GROUP multiple options for flags

Open nikdelig opened this issue 2 years ago • 1 comments

Hello,

would like to have additional Groups to each FLAGS_BY_GROUP entries inside the configuration, such as:

'FLAGS_BY_GROUP': {
    'is_active': ['GROUP_1', 'GROUP_2', ...'GROUP_N'],
    'is_staff': ['GROUP_1', 'GROUP_3', ...'GROUP_N'],
    'is_superuser': ['GROUP_3, 'GROUP_2', ...'GROUP_N']
},

is there currently a possibility to apply such configuration inside those flags or in a similar way?

nikdelig avatar Feb 16 '24 14:02 nikdelig

Hey, I also had a similar question and found your issue. It looked like a pretty simple fix, so I put in a PR. I'm by no means a Django or Netbox expert, so I can't say if there are other ways to do this, or if this is something that makes sense in the architecture of Netbox. Pending a sanity check, I hope it can be accepted! :)

jlemire3 avatar Nov 19 '24 21:11 jlemire3