Auto assign user role (user|admin|owner) based on idp groups at login stage.
Is your feature request related to a problem? Please describe.
When a user logs in via an identity provider (IdP), they are assigned the "user" role by default. Is it possible to use the JWT token information (such as groups) to perform role mapping?
Describe the solution you'd like I would like that users which are part of an idp group, for example "netbird admins" are automatically assigned the "admin" role in Netbird
Describe alternatives you've considered I can achieve this using api calls to netbird, but a native integration would be appreciated.
Hello @marcportabellaclotet-mt Thank you for your feature request! Right now we don’t sync the user role. The only way to control user role is through the NetBird dashboard. We will consider what we can do.
Is there any plan to support this feature? Thanks!
there is now this:
but it seems like its not working? in our usecase client_roles has ["string", "string"] but no group was created.
EDIT: oops, user didnt have a client role, now it works.