[GH-ISSUE #2083] Auto assign user role (user|admin|owner) based on idp groups at login stage. #4000

Open
opened 2026-08-05 00:55:24 -04:00 by saavagebueno · 0 comments
Owner

Originally created by @marcportabellaclotet-mt on GitHub (May 31, 2024).
Original GitHub issue: https://github.com/netbirdio/netbird/issues/2083

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.

Originally created by @marcportabellaclotet-mt on GitHub (May 31, 2024). Original GitHub issue: https://github.com/netbirdio/netbird/issues/2083 **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.
saavagebueno added the feature-request label 2026-08-05 00:55:24 -04:00
Sign in to join this conversation.
No Label feature-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#4000