Issue with Group Sync from Okta in Netbird #863

Closed
opened 2025-11-20 05:18:51 -05:00 by saavagebueno · 4 comments
Owner

Originally created by @alex-Qk on GitHub (May 9, 2024).

Describe the problem

We are currently setting up group synchronization with Okta in Netbird and have followed the provided manual for Okta integration. However, the documentation lacks specifics on how to properly configure group synchronization (using JWT?). Additionally, there is uncertainty around the use of the Okta API token set up during the integration—specifically, whether it should automatically pull group information.

Any help on how to set up group syncing will be much appreciated.

To Reproduce

Steps to reproduce the behavior:
https://docs.netbird.io/selfhosted/identity-providers#okta

Expected behavior

Groups sync from Okta

Are you using NetBird Cloud?

self-hosted

Originally created by @alex-Qk on GitHub (May 9, 2024). **Describe the problem** We are currently setting up group synchronization with Okta in Netbird and have followed the provided manual for Okta integration. However, the documentation lacks specifics on how to properly configure group synchronization (using JWT?). Additionally, there is uncertainty around the use of the Okta API token set up during the integration—specifically, whether it should automatically pull group information. Any help on how to set up group syncing will be much appreciated. **To Reproduce** Steps to reproduce the behavior: https://docs.netbird.io/selfhosted/identity-providers#okta **Expected behavior** Groups sync from Okta **Are you using NetBird Cloud?** self-hosted
saavagebueno added the self-hostingoktajwt labels 2025-11-20 05:18:51 -05:00
Author
Owner

@mlsmaycon commented on GitHub (May 9, 2024):

Hello @calibratedcat you can ask the folks in NetBird's Slack self-hosted channel, maybe someone from the community already configured Okta with JWT group sync.

@mlsmaycon commented on GitHub (May 9, 2024): Hello @calibratedcat you can ask the folks in NetBird's [Slack self-hosted](https://join.slack.com/t/netbirdio/shared_invite/zt-vrahf41g-ik1v7fV8du6t0RwxSrJ96A) channel, maybe someone from the community already configured Okta with JWT group sync.
Author
Owner

@alex-Qk commented on GitHub (May 9, 2024):

Key to solve this problem was adding groups to these vars:
NETBIRD_AUTH_SUPPORTED_SCOPES="openid profile email groups"
NETBIRD_AUTH_DEVICE_AUTH_SCOPE="openid email groups"

@alex-Qk commented on GitHub (May 9, 2024): Key to solve this problem was adding `groups` to these vars: `NETBIRD_AUTH_SUPPORTED_SCOPES="openid profile email groups"` `NETBIRD_AUTH_DEVICE_AUTH_SCOPE="openid email groups"`
Author
Owner

@mlsmaycon commented on GitHub (May 9, 2024):

Awesome @calibratedcat , did you have to configure anything on the Okta side too?

@mlsmaycon commented on GitHub (May 9, 2024): Awesome @calibratedcat , did you have to configure anything on the Okta side too?
Author
Owner

@alex-Qk commented on GitHub (May 10, 2024):

In Okta, you need to configure the OpenID Connect ID Token section. You need to define Group Claim Filter. In my case, I chose any group by using .* expression. groups is a claim name that will be used in your token. Should match in env listed above.
image

@alex-Qk commented on GitHub (May 10, 2024): In Okta, you need to configure the OpenID Connect ID Token section. You need to define `Group Claim Filter`. In my case, I chose any group by using `.*` expression. `groups` is a claim name that will be used in your token. Should match in env listed above. <img width="755" alt="image" src="https://github.com/netbirdio/netbird/assets/50356247/05b603b4-3765-49d9-acf2-db521ae91669">
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#863