netbird icon indicating copy to clipboard operation
netbird copied to clipboard

Auto assign user role (user|admin|owner) based on idp groups at login stage.

Open marcportabellaclotet-mt opened this issue 1 year ago • 3 comments

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.

marcportabellaclotet-mt avatar May 31 '24 11:05 marcportabellaclotet-mt

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.

pappz avatar Jun 04 '24 10:06 pappz

Is there any plan to support this feature? Thanks!

marcportabellaclotet-mt avatar Dec 02 '24 11:12 marcportabellaclotet-mt

there is now this:

Image

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.

MichalNemec avatar Jun 09 '25 18:06 MichalNemec