Set up single sign-on across Microsoft Entra tenants
Let users from several Microsoft Entra ID tenants sign in to Servicely through one multitenant SAML identity provider.
Use a multitenant identity provider when users from more than one Microsoft Entra ID tenant sign in to the same instance, such as several companies you serve. One identity provider covers every tenant you list on it. For one tenant, follow Set up single sign-on with Microsoft Entra ID.
Before you begin
- You need the
administratorrole in Servicely. - Switch to the Administration workspace with the Workspace selector at the foot of the menu.
- You need a Microsoft Entra ID account that can create enterprise applications and change app registrations.
- Your Microsoft Entra ID tenant has a verified domain. Microsoft accepts a multitenant application’s identifier only on a verified domain.
- Have the directory (tenant) ID of every tenant whose users sign in.
- Choose a client identifier for the identity provider: lower-case letters, digits and underscores, for example
entra_multitenant.
Steps
-
In the Microsoft Entra admin centre, create an enterprise application of your own, not one from the gallery. Microsoft describes the screen in Quickstart: Add an enterprise application.
-
In the Microsoft Entra admin centre, open the application’s Single sign-on page, select SAML and edit Basic SAML Configuration. Enter both values and save. See Enable SAML single sign-on for an enterprise application.
Field What to enter Example Identifier (Entity ID) An address on your verified domain. Servicely sends it to Microsoft as its own name. https://<verified domain>/idp_callback?client_name=entra_multitenantReply URL (Assertion Consumer Service URL) Your instance address, then /idp_callback?client_name=and the client identifier you chose.https://<instance>.servicely.ai/idp_callback?client_name=entra_multitenant -
In the Microsoft Entra admin centre, open the app registration that belongs to the enterprise application. On Authentication, set the supported account types to accounts in any organisational directory, and save. See Convert single-tenant app to multitenant on Microsoft Entra ID.
-
In the Microsoft Entra admin centre, open the app registration’s API permissions and add the delegated Microsoft Graph permission
User.Read. See Web API app registration and API permissions. -
In the Microsoft Entra admin centre, copy the application (client) ID from the app registration’s Overview.
-
In Servicely, go to Access & security → Authentication → Identity provider.

The Identity provider item in the Access & security menu. -
Select New, open the Templates menu at the top right and select Microsoft Azure - Multitenant. The template sets Multitenant to Yes, fills in Login URL and turns on Show on login screen.

The Templates menu on a new identity provider, with Microsoft Azure - Multitenant. -
Fill in the identity provider, then select Create.
Field What to enter Example Name A name for the identity provider. Microsoft Entra ID Client identifier The client identifier you used in the reply URL. entra_multitenantActive Yes. Client ID The application (client) ID you copied. App Entity Id The identifier you entered in Basic SAML Configuration. https://<verified domain>/idp_callback?client_name=entra_multitenant
The Provider configuration tab from the multitenant template, with the required Client ID and App Entity Id fields and the Tenants list. -
Open the identity provider again and select New under Tenants on the Provider configuration tab.
-
Enter a Name for your own tenant, paste its directory (tenant) ID into Tenant Id and select Create.
-
Add a tenant in the same way for every other Microsoft Entra ID tenant whose users sign in.
-
Open your instance in a private browser window, select the Microsoft Azure button on the sign-in page and sign in as a user from each tenant.
Result
Users from every active tenant in the Tenants list sign in through the one identity provider. Servicely finds each user record by its Email. The tenants are also listed under Access & security → Authentication → Identity provider tenants. They are Microsoft directories, and have no effect on which records a user sees in Servicely.