Step-by-step guide for configuring Microsoft Entra ID as the SSO provider for Glean using OIDC authentication.
company.com
, company.co.jp
, subsidiary.co
, etc.tenant_name-be.glean.com
If you are unsure of this, contact your Glean engineer or Glean support.Field Name | Value |
---|---|
Name | Glean SSO |
Supported account type | ✓ Accounts in this organizational directory only |
Redirect URI (platform) | Web |
Redirect URI (URI) | https://[tenant_name]-be.glean.com/authorization-code/callback?isExtension=1 |
[tenant_name]
with your actual tenant ID.
tenant_name
with your actual tenant ID.
About these permissions
About these permissions
openid
, email
, offline_access
, and profile
).More specifically (from the Microsoft Graph Permissions Reference document):Permission | Type |
---|---|
Delegated | |
offline_access | Delegated |
openid | Delegated |
profile | Delegated |
User.Read.All | Application |
Field | Value |
---|---|
Logo | Download this Glean icon to set as the app logo. |
Home page URL (optional) | https://glean.com |
Terms of service URL (optional) | https://www.glean.com/terms |
Privacy statement URL (optional) | https://www.glean.com/privacy-policy |
How to: Create a new group in Entra ID
Field | Value |
---|---|
Group type | Security |
Group name | Glean Users |
Group description | Users that are permitted to access the Glean Enterprise Search app. |
Entra ID roles | No |
Membership type | Assigned |
Owners | - |
Members | Select the users to be part of the group. (DO NOT select other groups here, as nested groups are not supported for app user assignment). |
Directory.Read.All
and User.Read.All
Application (not Delegated) permissions.Issue | Description | Fix |
---|---|---|
SSO code exchange failed [Error Code 13] | The Directory ID, Application ID, or Client Secret token is/are incorrect. | Double check that you have copied the Directory ID, Application ID, and Client Secret values correctly into the Glean UI. |
Cannot authenticate user from access token [Error Code 14] | A key field that Glean needs to authenticate the user is missing from the access token provided by them on sign-in. | Check the profile of the user in Entra ID. Ensure that the Email attribute is populated, along with First Name, Last Name, Display Name, Department, and Title. |
Cannot authenticate user from access token [Error Code 14] | In addition to the above, this error code may indicate that Glean cannot validate the email domain being used for sign-in. | Glean checks the email domain of every user that authenticates via SSO against a list of known company domains that are assigned to your tenant. If Glean is not aware of the email domain that your user is attempting to SSO with, it denies access to your Glean environment for security reasons. Notify your Glean engineer or Glean support of all email domains that your users will be authenticating from. |
Microsoft error: “You can’t get there from here” | User authentication to Glean is being blocked by a Conditional Access policy. | Amend your Conditional Access policy to include and permit the Glean SSO Enterprise App. |
Microsoft error: “Need admin approval” | Admin consent has not been granted to the permissions requested by the Glean SSO App Registration. | Ensure that you have granted admin consent for the Application and Delegated permissions requested under “API permissions” of the Glean SSO App Registration. |
Users are being asked to approve permissions when signing in to Glean | The type of permissions granted to the Glean SSO App Registration are incorrect (or missing). | Ensure that the Directory.Read.All and User.Read.All permissions are assigned to the Glean SSO app registration and are of Application type.Ensure that the email , openid , offline_access , and profile permissions are assigned to the Glean SSO app registration and are of Delegated type. |
SSO is successful, but the Glean is stuck at the login page | Glean cannot validate the email domain being used for sign-in. | Glean checks the email domain of every user that authenticates via SSO against a list of known company domains that are assigned to your tenant. If Glean is not aware of the email domain that your user is attempting to SSO with, it denies access to your Glean environment for security reasons. Notify your Glean engineer or Glean support of all email domains that your users will be authenticating from. |
SSO is successful, but Glean returns an internal server error or some other error. | You likely have IP restrictions assigned to your Azure/Entra ID tenant which are preventing the access token from being validated. | Contact your Glean engineer or Glean support who can advise you on the static IP addresses assigned to your Glean tenant that you will need to allowlist. |