Configure Microsoft Entra ID for Deepdesk SSO
Note
Dialogue AI Assist add-in features in WebAgent require an additional Dialogue AI Assist license from AnywhereNow.
Overview
Use Microsoft Entra ID Formerly known as Azure Active Directory (or Azure AD, or AAD) to let users sign in to Deepdesk with single sign-on (SSO). This setup creates an app registration, configures the Deepdesk redirect URIs, adds the required token claims and permissions, and optionally creates app roles for Deepdesk access levels.
Deepdesk uses the Microsoft Entra ID Formerly known as Azure Active Directory (or Azure AD, or AAD) configuration to authenticate users for Dialogue AI Assist. Your AnywhereNow representative or Deepdesk contact provides the tenant-specific Deepdesk URL and provider value that you need for the redirect URI.
Prerequisites
-
Access to the Microsoft Entra admin center.
-
Permissions to create and configure app registrations, API permissions, Enterprise Application assignments, and app roles.
-
The Deepdesk redirect URI values for your tenant.
-
The Deepdesk provider value to use in the SSO callback CallBack, an IVR menu feature for voice, enables the customer to confirm or leave an alternative phone number to be called back by an available agent during business hours. URI.
Create the app registration
-
In the Microsoft Entra admin center, go to Identity > Applications > App registrations.
-
Select New registration.
-
Enter a name, for example
Your Company Deepdesk SSO. -
For Supported account types, select Accounts in any organizational directory (Any Microsoft Entra ID tenant - Multitenant).
-
Select Register.
-
Copy the Application (client) ID. You need this value for the Application ID URI and for the values you provide to Deepdesk.
Expose the Deepdesk API scope
-
Open the Deepdesk app registration.
-
Select Expose an API.
-
Next to Application ID URI, select Add.
-
Use the following format, replacing the placeholder with the Application (client) ID:
api://{your-application-client-id} -
Select Save.
-
In Scopes defined by this API, select Add a scope.
-
Create a Deepdesk API scope with these values:
-
Scope name:
User.Read -
Who can consent: Admins and users
-
Admin consent display name:
Read user information -
Admin consent description:
Allows the app to read user information -
User consent display name:
Read your user information -
User consent description:
Allows the app to read your user information -
State: Enabled
-
-
Select Add scope.
Note
This Deepdesk API scope uses the name User.Read. You also add the Microsoft Graph delegated permission named User.Read later in this setup.
Configure authentication and redirect URIs
-
In the app registration, select Authentication.
-
Under Implicit grant and hybrid flows, enable both options:
-
Access tokens (used for implicit flows)
-
ID tokens (used for implicit and hybrid flows)
-
-
Select Save.
-
Under Platform configurations, select Add a platform.
-
Select Web.
-
Add the Deepdesk redirect URIs:
-
https://<tenant>.deepdesk.com/platform/sso/<provider>/callback/ -
https://onboarding.deepdesk.com/oauth/callback/
-
-
Select Configure or Save.
Important
Redirect URIs must use HTTPS, are case-sensitive, and must match the values provided for your Deepdesk tenant exactly. Include the trailing slash when shown.
Add token claims
-
In the app registration, select Token configuration.
-
Select Add optional claim.
-
Select ID as the token type.
-
Add these optional claims:
-
upn -
preferred_username -
login_hint
-
-
Select Add.
-
Repeat the same steps for the Access token type.
-
If Microsoft Entra ID prompts you to add Microsoft Graph permissions for the claims, accept the prompt.
Add API permissions and grant admin consent
-
In the app registration, select API permissions.
-
Select Add a permission.
-
Select Microsoft Graph.
-
Select Delegated permissions.
-
Add these permissions:
-
User.Read -
openid -
profile
-
-
Select Add permissions.
-
Select Grant admin consent for [your organization].
-
Confirm the consent prompt.
Optional: create a client secret
Create a client secret only when Deepdesk asks for one.
-
In the app registration, select Certificates & secrets.
-
Select New client secret.
-
Enter a description and select an expiration period.
-
Select Add.
-
Copy the secret value immediately. The value is shown only once.
Optional: create Deepdesk app roles
Create app roles when Deepdesk access should be assigned through Microsoft Entra ID. Add the roles on the application object so they can be assigned on the Enterprise Application.
-
In App registrations, open the Deepdesk app registration.
-
Select App roles.
-
Select Create app role.
-
Create the required roles. Use a human-readable display name and one of these role values:
-
deepdesk.agent -
deepdesk.editor -
deepdesk.manager -
deepdesk.assistant_editor
-
-
For Allowed member types, select Users/Groups.
-
Add a description, enable the role, and save it.
Assign app roles to users or groups
-
In the Microsoft Entra admin center, go to Identity > Applications > Enterprise applications.
-
Open the Deepdesk Enterprise Application.
-
Select Users and groups.
-
Select Add user/group, or edit an existing assignment.
-
Select the user or group.
-
Select the Deepdesk role to assign, for example
deepdesk.assistant_editor. -
Select Assign.
Provide configuration values to Deepdesk
Provide these values to your Deepdesk contact:
-
Tenant ID: available on the Microsoft Entra ID overview page.
-
Application (client) ID: available on the app registration overview page.
-
Client secret: only if Deepdesk requires one.
-
Application ID URI:
api://{your-application-client-id}
Verify the configuration
-
The Application ID URI uses
api://{your-application-client-id}. -
The Deepdesk API scope
User.Readis created under Expose an API. -
Both implicit grant and hybrid flow token options are enabled.
-
The Deepdesk redirect URIs are configured under Authentication and match the supplied tenant and provider values.
-
The optional claims
upn,preferred_username, andlogin_hintare added for both ID and Access tokens. -
The Microsoft Graph delegated permissions
User.Read,openid, andprofileare added. -
Admin consent is granted for the required permissions.
-
Deepdesk app roles are created and assigned when role-based access is managed through Microsoft Entra ID.
Troubleshooting
Redirect URIs are not saved
-
Confirm that every redirect URI starts with
https://. -
Check the tenant name, provider value, capitalization, and trailing slash.
-
Confirm that the redirect URI matches the value supplied by Deepdesk.
Admin consent fails
-
Confirm that you have permissions to grant admin consent for the organization.
-
Confirm that all required Microsoft Graph delegated permissions are added before granting consent.
SSO authentication fails
-
Confirm that both access tokens and ID tokens are enabled under Implicit grant and hybrid flows.
-
Confirm that the optional claims are configured for both ID and Access tokens.
-
Confirm that the redirect URI in the sign-in request exactly matches one of the redirect URIs configured in Microsoft Entra ID.