Area: Deployment Issues
Sub-Area: SSO / Authentication Configuration
Applies to: Cloud
Issue
You turned on OIDC Single Sign-On (SSO) in DataHub Cloud, for example with Microsoft Entra ID (formerly Azure AD). Now users can't sign in. The browser goes to your identity provider (IdP), the user signs in there, and DataHub then shows an error. You clicked Disable SSO, but DataHub still sends you to the IdP.
You see one of these messages:
-
Access denied. The OIDC service responded with 'Access denied'. It seems that you don't have access to this application yet. Please apply for access.followed byError details: '<error>':'<error_description>' Failed to perform post authentication steps. Error message: User with urn urn:li:corpuser:<user> has not yet been provisioned in DataHub. Please contact your DataHub admin to provision an account.You cannot sign in with this account. Contact your DataHub administrator.
You Might Be Asking
- Why does SSO fail after the user signs in to the identity provider?
- Why does DataHub still send me to the identity provider after I disabled SSO?
- How do I get back in as an admin when SSO is broken?
Cause
Each message has a different cause.
Access denied. The OIDC service responded with 'Access denied'...: Your IdP sent access_denied back to DataHub. DataHub did not reject the user; the IdP did. The text after Error details: is what your IdP returned. In Microsoft Entra ID, a common cause is that the enterprise application requires user assignment and the user is not assigned to it.
...has not yet been provisioned in DataHub...: The SSO settings use Pre-Provisioning DataHub Users. With that strategy, DataHub only lets in users that already exist in DataHub. Users who were never created in DataHub get this error.
You cannot sign in with this account...: The IdP sign-in worked, but DataHub refused to create a session for that user account, for example because the account is suspended or deleted in DataHub.
SSO still active after you disable it: DataHub reads the new SSO settings, but the running DataHub frontend keeps the OIDC connection it already built. Sign-in through /authenticate and the Sign in with SSO button keeps going to your IdP. This happens on the server, so clearing cookies or opening a private window does not change it.
Solution
Step 1: Sign in with a username and password at /login
The login page accepts a native DataHub username and password even while SSO is on.
- Go straight to
https://<your-datahub-url>/login. Don't open the home page, because that sends you to the IdP. - Enter the username and password and click Login. Don't click Sign in with SSO.
This only works for a user who has a DataHub password. A user who has only ever signed in through SSO has no password. An admin can't create one for them with Reset user password, because password reset links only work for users who already have a native password.
Step 2: If no admin has a password, contact DataHub Support
Contact DataHub Support and ask for an invite link with the Admin role. Include your DataHub URL and the email address of the person who needs admin access. This is how an invite link works: the person opens the link, fills in the sign-up form and clicks Get Started. This creates a DataHub username and password and gives the user the role on the link. After that, they can sign in at /login as in Step 1. See Onboarding Users to DataHub for how invite links work.
Step 3: Fix the SSO settings
After you sign in, go to Settings > Platform > SSO and open OIDC. You need the Manage Platform Settings privilege. See Enable OIDC SSO.
Then fix the cause that matches your error:
-
Access denied. The OIDC service responded with 'Access denied'...: Fix it in your IdP. In Microsoft Entra ID, open the enterprise application for DataHub and add the users, or a group that contains them, under Users and groups. Check that the Client ID, Client Secret and Discovery URI in DataHub match your IdP app. See the Azure AD section of Prerequisites for OIDC Authentication. -
...has not yet been provisioned in DataHub...: Switch User Provisioning Strategy to Just-in-Time (JIT) Provisioning so DataHub creates users when they first sign in. Or keep Pre-Provisioning and create the users in DataHub first, for example with SSO ingestion. -
You cannot sign in with this account...: DataHub records the reason it refused the account in its server logs, which you can't read on DataHub Cloud. Contact DataHub Support with the affected user's email address and the time they tried to sign in.
To have users test the fix, ask them to sign out, then sign back in through SSO.
Step 4: If DataHub still redirects to the IdP after you disable SSO
Clearing cookies does not help (see Cause). Keep using https://<your-datahub-url>/login with a username and password. If you need the SSO redirect to stop, contact DataHub Support. Include your DataHub URL and say that you disabled SSO but DataHub still sends users to the IdP.
Prevent this next time
Before you enable SSO, make sure at least one admin has a native DataHub username and password and can sign in at /login. Keep that account as your emergency way in.