netbox-plugin-auth-saml2
netbox-plugin-auth-saml2 copied to clipboard
FLAGS_BY_GROUP multiple options for flags
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?
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! :)