OpenMetadata icon indicating copy to clipboard operation
OpenMetadata copied to clipboard

Question: Azure SSO with User Assignment Enabled Fails Authentication

Open ahmed-soria opened this issue 1 year ago • 2 comments

Affected module Authentication (SSO via Azure AD) – impacts UI and backend login

Describe the bug When using Azure Active Directory as the SSO provider, OpenMetadata fails to authenticate users if user assignment is enabled on the Enterprise Application. Only when user assignment is disabled (allowing all users in the organization) does login succeed — which introduces a security concern by exposing access to all employees.

Even users who are explicitly assigned to the app are unable to authenticate, and receive the following error from Azure:

Need admin approval
This app needs permission to access resources in your organization that only an admin can grant. Please ask an admin to grant permission to this app before you can use it.

To Reproduce

  • Configure OpenMetadata to use Azure AD as an OIDC provider.
  • Register OpenMetadata in Azure as an Enterprise Application.
  • Enable User assignment required in Azure.
  • Assign individual users to the application.
  • Attempt to log in to OpenMetadata using one of the assigned users.
  • Observe login failure and "Need admin approval" message.

✅ If user assignment is disabled, login works. ❌ If user assignment is enabled, login fails for all users — even assigned ones.

Expected behavior OpenMetadata should allow logins for users explicitly assigned to the Azure Enterprise Application when user assignment is enabled. SSO should not require exposing the application to all organization users just to function properly.

Version: OpenMetadata version: 1.8.7 (Helm chart)

configuration reference Auth Configuration : Authcode

ahmed-soria avatar Aug 05 '25 10:08 ahmed-soria

@ahmed-soria can you change the below property value as "login" in your helm chart? openmetadata.config.authentication.oidcConfiguration.promptType - "login"

nikhilchennam avatar Aug 11 '25 06:08 nikhilchennam

hi @nikhilchennam thank you for your time, now it's working fine. can you please update the documentation

ahmed-soria avatar Aug 11 '25 08:08 ahmed-soria