Closed FlochonR closed 3 years ago
@FlochonR please check https://github.com/marcus-crane/netbox-plugin-azuread/issues/3
Hello @qxmips !!
Thanks, it's working now !
I have a question that ensues, I have a lot of groups automatically created ... Is it possible to limit that at the 2 groups I want ? (NETBOX-Users and NETBOX-Administrators)
@FlochonR Glad you managed to get the plugin working. I could add a key to the config called something like AD_GROUP_FILTER
which would work a little like this:
PLUGINS_CONFIG = {
'netbox_plugin_azuread': {
'AD_GROUP_FILTER': [
'NETBOX-Users',
'NETBOX-Administrators'
]
}
}
where any groups listed in the filter are created in Netbox if they're specified. If the filter is empty (it would be by default), then it just creates all groups automatically.
There'd have to be some functionality that if the filter is defined then presumably it does a cleanup job and deletes everything that isn't in the filter.
If that sounds good, I can rename this issue to match the current state (feature request) and have a look at adding it sometime
Hello @marcus-crane !!
Yes, it's a good idea ! It would be perfect ! :D
Thanks again for the help @qxmips
Hey @FlochonR, this issue got closed automatically a bit early but 1.2.0 has just been released which includes the filter functionality you were after.
Hello @marcus-crane @tatsuyaueda
Thanks for the work, it's great !!
Hello @marcus-crane !
I'm running the version 3.0.5 of Netbox and version 1.1.0 of your plugin with this configuration
The users are well created and they are on the group Azure AD NETBOX-Users or NETBOX-Administrators, the problem is the flag isn't added to the user Perhaps I will do something special in Azure AD config ?
Thanks for your help, FlochonR