Set up single sign-on across Microsoft Entra tenants
Let users from several Microsoft Entra ID tenants sign in through one multitenant SAML identity provider.
Use a multitenant identity provider when users from more than one Entra ID tenant sign in to the same instance, such as several companies you serve. One identity provider then covers every tenant you list, instead of one identity provider per tenant. This task is for administrators, and it needs administrative access to each other tenant you add.
Before you begin
- You need
administratorin Servicely. - You need an Entra ID account that can create enterprise applications and app registrations.
- The identifier you give Entra must start with a domain verified in your Entra tenant, for example
https://<verified-domain>/idp_callback?client_name=<client_identifier>. - For a single tenant, use Set up single sign-on with Microsoft Entra ID instead.
Steps
-
In Servicely, go to Administration → Authentication → Identity provider, select New and choose the template Microsoft Azure - Multitenant.

The template choice when you create an identity provider. -
Enter a Name, keep or change the generated Client identifier, and select Create. Note the client identifier for Entra.
-
In the Entra admin centre, go to Enterprise applications, select New application, then Create your own application. Choose the non-gallery option, name the application and select Create.

Creating a non-gallery application in Entra ID. -
Open Single sign-on, select SAML, then Edit on Basic SAML Configuration. Enter the identifier on your verified domain, check the values and select Save.

Basic SAML Configuration with an identifier on a verified domain. -
Copy the application’s App Identifier URI from Entra into App Entity Id on the Servicely identity provider.

The App Entity Id field on the Servicely identity provider. -
In Entra, open the app registration that matches the enterprise application: select Properties, then the application registration link.
-
Open Authentication. Under Supported account types, select Accounts in any organizational directory (Any Microsoft Entra ID tenant - Multitenant) and save.

Supported account types set to multitenant. -
Open API permissions and select Add a permission. Choose Microsoft Graph, then Delegated permissions, select User.Read and select Add permissions.

The User.Read delegated permission selected for Microsoft Graph. -
Open Overview in the app registration. Copy Application (client) ID into Client ID on the Servicely identity provider.

The Client ID field on the Servicely identity provider. -
On the identity provider in Servicely, add a record to the Tenants list. Enter a Name and paste your Directory (tenant) ID from the Entra overview into Tenant Id. Save the identity provider.

A tenant added to the identity provider’s Tenants list. -
For each other Entra tenant, add a record to Tenants with that tenant’s directory ID.

Several tenants listed on one identity provider.
Result
Users from every tenant in the Tenants list sign in through the one identity provider. The tenant records are also listed under Administration → Authentication → Identity provider tenants. These Entra tenants have nothing to do with multi-tenancy of records in Servicely.