Area: UI Issues
Sub-Area: SSO/OIDC Configuration, Performance Impact
Applies to: Cloud
Issue
An admin changes the OIDC SSO settings in DataHub Cloud, for example the User Name Claim or the User Name Claim Regex. After users sign in again, pages load slowly or fail. Entity pages such as Data Product, Domain and Dataset pages can fail to load or show an error state.
Clearing cookies and signing in again does not fix it. Reverting the SSO settings does.
You Might Be Asking
- Why did DataHub get slow or start failing after I changed the OIDC User Name Claim?
- Why does clearing cookies and signing in again not help?
- Is there a problem when a user is a member of many groups, such as groups synced from LDAP?
- Which DataHub Cloud version fixes the problem with users in many groups?
- Why does reverting my SSO settings fix it?
Cause
DataHub builds the user account from the User Name Claim and the User Name Claim Regex. If you change either one, the same person signs in to a different account, with a different urn:li:corpuser:<username>. That account has its own groups and roles. If the new account is a member of many groups (for example, groups that LDAP ingestion assigned to it), the user now carries all of those memberships.
Many entity pages load the pending proposals for the entity. These include Datasets, Containers, Domains, Data Products, Glossary Terms, Dashboards, Charts, Data Jobs and ML entities. To find proposals assigned to you, DataHub searches with each of your groups and roles. Before DataHub Cloud v2.1.0, the search added one clause per group and per role. A user with many groups and roles made the search exceed the search engine's clause limit, and the proposals search failed on those pages.
DataHub Cloud v2.1.0 changed this to one terms query for all groups and one for all roles. The same fix shipped in v2.0.5 for the v2.0 line.
Solution
-
Check your DataHub Cloud version. If you run v2.1.0 or later, or v2.0.5 or later on the v2.0 line, you already have the fix. Go to step 5.
-
To fix it, upgrade to DataHub Cloud v2.1.0 or later. Contact DataHub Support to plan the upgrade. After the upgrade, you can keep the SSO settings you want, even when users belong to many groups.
-
If you can't upgrade yet, revert the SSO settings. In Settings, under Platform, open Single Sign-On (SSO), then the OIDC integration, then Advanced. Enter the User Name Claim, User Name Claim Regex and Scope values you had before, and save. Users then sign in to their old accounts again. The form defaults are User Name Claim
preferred_username, User Name Claim Regex(.*), Groups Claimgroupsand Scopeopenid email profile. Use them only if they produce the usernames your users had before. The fields are described in Advanced OIDC configurations. -
To check which account you signed in to, run this query in the GraphQL explorer, or open your profile:
query { me { corpUser { urn username } } }If the
urnis not the account you used before the SSO change, the claim or regex change moved you to a new account. -
If pages are still slow or fail on a version that has the fix, capture a HAR file and send it to DataHub Support. In Chrome or Edge, open DevTools, select the Network tab, reload the slow page, then use the export (download) icon to save the HAR file.
Related Documentation
Tags: SSO, OIDC, performance, slow UI, group membership, LDAP, proposals, CorpUser identity