---
title: "Set up single sign-on across Microsoft Entra tenants"
site: admin
version: 2027.1
versions: "all"
url: https://docs-new.servicely.ai/admin/2027.1/access/sign-in/sso-microsoft-entra-multitenant/
type: task
application: sso
last_updated: 2026-12-03
commit: 8d233372fa05
---


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](page:access/sign-in/sso-microsoft-entra-id).

## Before you begin

- You need the `administrator` role 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

<Steps>
  <Step>
    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](https://learn.microsoft.com/en-us/entra/identity/enterprise-apps/add-application-portal).
  </Step>
  <Step>
    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](https://learn.microsoft.com/en-us/entra/identity/enterprise-apps/add-application-portal-setup-sso).

    <!-- code: servicely-core/src/main/kotlin/com/servicely/core/security/context/pac4j/ServicelyPac4jClients.kt:295 -->
    | 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_multitenant` |
    | **Reply 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` |
  </Step>
  <Step>
    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](https://learn.microsoft.com/en-us/entra/identity-platform/howto-convert-app-to-be-multi-tenant).
  </Step>
  <Step>
    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](https://learn.microsoft.com/en-us/entra/identity-platform/quickstart-configure-app-access-web-apis).
  </Step>
  <Step>
    In the Microsoft Entra admin centre, copy the application (client) ID from the app registration's **Overview**.
  </Step>
  <Step>
    In Servicely, go to **Access & security → Authentication → Identity provider**.

    <Image src="asset:screenshots/admin/access-sign-in-sso-microsoft-entra-multitenant/identity-provider-menu.png">The Identity provider item in the Access & security menu.</Image>
  </Step>
  <Step>
    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**.

    <Image src="asset:screenshots/admin/access-sign-in-sso-microsoft-entra-multitenant/templates-menu.png">The Templates menu on a new identity provider, with Microsoft Azure - Multitenant.</Image>
  </Step>
  <Step>
    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_multitenant` |
    | **Active** | 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` |

    <Image src="asset:screenshots/admin/access-sign-in-sso-microsoft-entra-multitenant/multitenant-provider-configuration.png">The Provider configuration tab from the multitenant template, with the required Client ID and App Entity Id fields and the Tenants list.</Image>
  </Step>
  <Step>
    Open the identity provider again and select **New** under **Tenants** on the **Provider configuration** tab.
  </Step>
  <Step>
    Enter a **Name** for your own tenant, paste its directory (tenant) ID into **Tenant Id** and select **Create**.
  </Step>
  <Step>
    Add a tenant in the same way for every other Microsoft Entra ID tenant whose users sign in.
  </Step>
  <Step>
    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.
  </Step>
</Steps>

## 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.

## Related

- [Set up single sign-on with Microsoft Entra ID](page:access/sign-in/sso-microsoft-entra-id)
- [Set up SCIM provisioning from Entra ID](page:access/sign-in/set-up-scim-provisioning)
- [Multi-tenancy](page:access/roles-and-permissions/multi-tenancy)
