Area: Deployment Issues
Sub-Area: OIDC Authentication and Group Provisioning
Applies to: OSS + Cloud
Issue
When you use OIDC SSO with an identity provider such as Okta or Microsoft Entra ID (Azure AD), DataHub groups may not be created or updated when users log in, even though Extract Groups is turned on.
You Might Be Asking
- Why aren't my OIDC groups being created when users log in?
- Does DataHub Cloud support SAML or only OIDC?
- What redirect URI and discovery URI do I register for DataHub OIDC?
- Where do I check group extraction errors?
Cause
Group extraction runs only when all of these are true:
- Just-in-Time (JIT) provisioning is on. It is the default. Pre-provisioning turns group extraction off. In the Cloud form, choosing Pre-Provisioning sets Extract Groups to off.
- Extract Groups is on. It is off by default.
- The ID token or profile from your IdP contains the groups claim named in the Groups Claim setting (default
groups).
Setting the groups claim name alone does not extract groups. If the IdP sends no groups claim, the DataHub frontend logs the warning Failed to extract groups: No OIDC claim with name <claim> found.
The groups claim can be a list of strings, a JSON array string, or a comma-separated string.
Solution
DataHub Cloud
DataHub Cloud supports OIDC only. It does not support SAML or LDAP. See DataHub Cloud OIDC SSO Integration.
- Go to Settings > Platform > SSO and open your OIDC setup. You need the Manage Platform Settings privilege.
- In User Provisioning Strategy, select the JIT option, then turn on Extract Groups. The Extract Groups switch is disabled unless JIT is selected.
- Check the Groups Claim field. The form pre-fills
groups. It must match the claim name your IdP sends. - If your IdP needs a different scope to return groups, change the Scope field in the Advanced section. The form pre-fills
openid email profile. - Click Connect, log out, and log back in with SSO to test.
- Make sure the redirect URI registered at your IdP is
https://<your-domain>.acryl.io/callback/oidc. See Getting Started with DataHub Cloud. In current DataHub Cloud, the SSO page also shows this redirect URI read-only. Save the form while you are on your DataHub Cloud hostname. Saving from a different hostname changes the redirect URI and breaks login. - If groups still don't appear, contact DataHub Support. Cloud customers can't read the frontend logs.
Self-hosted DataHub
Set these environment variables on the datahub-frontend container, then restart it:
AUTH_OIDC_JIT_PROVISIONING_ENABLED=true
AUTH_OIDC_EXTRACT_GROUPS_ENABLED=true
AUTH_OIDC_GROUPS_CLAIM=groups
Only add a scope such as groups to AUTH_OIDC_SCOPE if your IdP requires it to return groups. The server default scope is openid profile email.
Check the datahub-frontend container logs for the Failed to extract groups warning.
See Configure OIDC React Authentication for all settings.
Identity provider checks
-
Okta: Make sure Okta adds a groups claim to the ID token. If you use a custom authorization server and request a
groupsscope, that scope must exist on that server. The discovery URI format ishttps://<your-okta-domain>/.well-known/openid-configuration. -
Microsoft Entra ID: Register the app and note the Client ID and Tenant ID. Create a client secret and use it as the Client Secret. The discovery URI is
https://login.microsoftonline.com/<tenant-id>/v2.0/.well-known/openid-configuration. - Register the redirect URI as
https://<your-datahub-host>/callback/oidc. For DataHub Cloud, this ishttps://<your-domain>.acryl.io/callback/oidc. For a local install, it ishttp://localhost:9002/callback/oidc. DataHub has no bare/callbackendpoint. See Initialize OIDC Authentication.
Things to know
- Each login replaces the user's SSO group membership with the groups in the claim. This clears group membership you assigned in the DataHub UI.
- You don't need group extraction for basic SSO login.
Related Documentation
- Configure OIDC React Authentication
- JIT, pre-provisioning and group extraction settings
- DataHub Cloud OIDC SSO Integration
- Initialize OIDC Authentication
- Getting Started with DataHub Cloud
Tags: oidc, authentication, sso, groups, jit-provisioning, okta, azure-ad, deployment, configuration, group-extraction