Area: Deployment Issues
Sub-Area: SSO / OIDC Configuration
Applies to: OSS + Cloud
Issue
Users log in to DataHub through OIDC SSO (for example Azure AD / Microsoft Entra ID or Okta), but DataHub does not add them to any groups. Policies and roles assigned to those groups do not apply to them.
DataHub does not log an error or warning for this. When the groups claim is missing from the token, DataHub skips it without a message.
You Might Be Asking
- Why can users log in with SSO but have no group memberships in DataHub?
- How do I get Azure AD to send group information to DataHub?
- Which DataHub setting turns on group sync from SSO?
- Why are my DataHub groups named with GUIDs?
Cause
DataHub adds SSO users to groups only when all three of these are true:
- Just-in-Time (JIT) provisioning is on. It is on by default.
- Group extraction is on. It is off by default.
- The token from your identity provider contains the groups claim that DataHub reads. The default claim name is
groups.
If group extraction is off, DataHub ignores any groups in the token. If extraction is on but the claim is missing, DataHub finds no groups for the user.
Solution
1. Make your identity provider send a groups claim
Azure AD does not put a groups claim in tokens unless you add one. In the Microsoft Entra admin center:
- Open App registrations and select the app you use for DataHub.
- Under Manage, select Token configuration.
- Select Add groups claim.
- Choose the group types to send (Security groups, Directory roles, All groups, or Groups assigned to the application).
- Make sure the claim is added to the ID token, then select Save.
You don't need extra Microsoft Graph API permissions for this. Azure limits the groups claim to 200 groups in a JWT. If your users belong to many groups, choose Groups assigned to the application so you send only the groups DataHub needs.
For other identity providers, follow their documentation for adding a groups claim to the OIDC ID token. Some providers release the groups claim only when you request an extra scope. In that case, add that scope to the DataHub OIDC scope. The DataHub default scope is openid profile email. Azure AD does not need an extra scope; the claim comes from Token configuration.
2. Check the token
Sign in to your app and decode the ID token with a JWT decoder such as jwt.io. The payload must contain the claim, for example:
{
"sub": "<user-subject-id>",
"email": "user@example.com",
"groups": [
"<group-value-1>",
"<group-value-2>"
]
}
If the claim has a different name (for example roles), use that name in the DataHub groups claim setting in step 3.
3. Turn on group extraction in DataHub
DataHub Cloud:
- Go to Settings > Platform > SSO and open OIDC.
- Keep Just-in-Time (JIT) Provisioning selected. Extract Groups requires it.
- Turn on Extract Groups.
- If your claim is not named
groups, open Advanced and set Groups Claim. You can also change Scope there. - Save the settings.
See Enable OIDC SSO for the full Cloud setup.
Self-hosted DataHub: set these environment variables on the datahub-frontend container:
AUTH_OIDC_JIT_PROVISIONING_ENABLED=true
AUTH_OIDC_EXTRACT_GROUPS_ENABLED=true
AUTH_OIDC_GROUPS_CLAIM=groups
AUTH_OIDC_GROUPS_CLAIM accepts a comma separated list of claim names. Change AUTH_OIDC_SCOPE only if your identity provider needs an extra scope to release the claim. Then restart the frontend so it reads the new values. With Docker Compose, the service is datahub-frontend-react. On Kubernetes, update your Helm values and redeploy. See User & Group Provisioning (JIT Provisioning) and Configure DataHub Frontend Server.
Before you turn this on, know how it behaves. On every login, DataHub replaces the user's SSO group membership with the groups in the current token. If the token has no groups claim, or an empty one, the user ends up with no SSO groups.
4. Match the group names DataHub creates
DataHub creates one group per value in the claim, and uses the value as the group name. Azure AD sends group object IDs (GUIDs) by default, so DataHub creates groups named with those GUIDs. Assign your policies and roles to those groups. If you want readable names, Azure can send other group attributes instead of object IDs (for example on premises sAMAccountName for synced groups). See Microsoft's documentation on configuring groups optional claims.
5. Test
Log out and log back in through SSO. Open your user profile in DataHub and check the groups listed there. Then confirm the policies for those groups apply.