---
title: Set up SSO with Microsoft Entra ID (OIDC)
description: 'For the IT admin with a setup link: connect Microsoft Entra ID over OIDC.'
canonical_url: 'https://saaslayer.com/docs/users/sso-it-admin-entra-oidc/'
last_updated: '2026-11-15T00:13:40-08:00'
---
# Set up SSO with Microsoft Entra ID (OIDC)

For the IT admin who received a SaaSLayer SSO setup link. You register an app in Microsoft Entra, paste its values into
the setup page, prove your email domain and activate. Plan on about 15 minutes.

**Status: Supported.** Tested end to end with Microsoft Entra ID (single-tenant app registration, subject `oid`, groups as object ids). Names are
provisional until the SSO naming review.

## Before you start: a verified custom domain

Your people's email must be on a domain you control, verified in Entra (**Entra ID → Domain names → Add custom
domain**) and set as their **Email** (`mail`). A `*.onmicrosoft.com` address can't be proven to SaaSLayer, because
only Microsoft controls its DNS. Sign-ins with one are refused with `domain-mismatch`, which testing hit until
the test users got a custom-domain address.

## What the setup page gives you

Open the setup link. Under **Identity provider → Register these in your identity provider** it shows:

| Value | Example | Where it goes in Entra |
| --- | --- | --- |
| **Redirect URI** | `https://auth.yourapp.saaslayer-cloud.com/oauth2/idpresponse` | The app's **Web** redirect URI |

The host is the app's branded sign-in host: `auth.<app>.saaslayer-cloud.com`, or the app's own domain such as
`auth.yourapp.com`. Copy the value from the setup page exactly. If the app moves to another sign-in host later, its
owner sends you the new value: add it beside this one, and remove the old one only when they confirm the move.

Under **Domains** it shows one DNS TXT record per email domain, for example:

```text
_saaslayer-sso.acme.com  TXT  "saaslayer-sso-verification=<token>"
```

## 1. Register the app

In the Microsoft Entra admin center:

1. **Entra ID → App registrations → New registration.**
   * **Name:** your app's name.
   * **Supported account types:** **Accounts in this organizational directory only (Single tenant)**.
   * **Redirect URI:** platform **Web**, the **Redirect URI** from the setup page.
   * **Register.**
2. On **Overview**, copy the **Application (client) ID** and the **Directory (tenant) ID**.
3. **Certificates & secrets → Client secrets → New client secret.** Copy its **Value** (not the Secret ID) now; Entra
   shows it once. Note its expiry: the app's owner rotates it before then.
4. **Token configuration → Add groups claim.** Pick **Security groups**, and under **ID** keep **Group ID**. Save.
   Groups arrive as object ids.
5. **API permissions.** Keep Microsoft Graph `openid`, `email`, `profile` (and `User.Read`). Click **Grant admin
   consent for \<your tenant>**, so people aren't asked to consent and refused with `consent_required` (`AADSTS65004`
   when they decline).

To limit who may sign in: **Enterprise applications → \<your app> → Properties → Assignment required? Yes**, then
**Users and groups → Add user/group**.

## 2. Fill in the setup page

Under **Identity provider settings**, enter your values. The fields may be empty: the connection can start
blank, with only the protocol chosen. Replace any values already there with yours:

| Field | Value |
| --- | --- |
| **Issuer URL** | `https://login.microsoftonline.com/<Directory (tenant) ID>/v2.0` |
| **Client ID** | The Application (client) ID. |
| **Client secret** | The secret's Value. It is stored write-only and never shown again. |
| **User id source** | `oid (Microsoft Entra)`. Entra's `sub` differs per app; `oid` is the person's immutable object id. |
| **Directory tenant ID (Microsoft Entra)** | The Directory (tenant) ID. Sign-ins from any other tenant are refused. |

Click **Save identity provider**. The issuer, user id source and tenant lock when the connection activates.

## 3. Prove your domain

Under **Domains**, add each email domain your people use. Publish the TXT record it shows at your DNS provider, then
click **Check DNS for \<domain>**. With a TTL of 300 seconds, it verified in under a minute in testing.

A domain belongs to one connection at a time. Only people whose Entra email is in a verified domain can sign in through
this connection. Contractors on other domains are invited by email and use the app's normal sign-in.

## 4. Activate and test

Click **Finish setup and activate**. The button stays disabled, and the page lists what is missing, until the issuer,
the client ID and the client secret are saved. Then sign in as an assigned person: use **Test sign-in** when the page
offers it, else open the app's sign-in page and enter your work email. Microsoft's sign-in page opens straight away,
with no SaaSLayer or Cognito screen in between.

## Groups overage

When a person is in more groups than fit in the token, Entra leaves the list out and sends a pointer instead. SaaSLayer
counts that as **incomplete** (`groups-overage`) and grants nothing from groups, never a partial list. Filter the groups
claim to **Groups assigned to the application**, or use SCIM.

## Show the app's name and logo

Entra shows the app's name and logo on its sign-in and consent pages and in My Apps:

1. **App registrations → \<your app> → Branding & properties:** set **Name** to the app's name, **Upload new logo**
   (a square PNG or JPG, 215 × 215 pixels, up to 100 KB), the **Home page URL** (the app's address) and, as
   **Publisher domain**, one of your verified custom domains.
2. **Enterprise applications → \<your app> → Properties:** the same name and logo show in My Apps. **Visible to users?**
   **Yes** gives people a My Apps tile (see [SSO dashboard tiles](https://saaslayer.com/docs/users/sso-dashboard-tiles)).

## If it fails

See [SSO troubleshooting](https://saaslayer.com/docs/users/sso-troubleshooting). The usual Entra causes:

* `domain-mismatch`: the person's email is an `onmicrosoft.com` address or another unverified domain.
* `consent_required` / `AADSTS65004`: admin consent wasn't granted (step 1.5).
* `tenant-mismatch`: the person signed in from another tenant, or the tenant id on the setup page is wrong.
* `issuer-mismatch`: the issuer isn't the tenant-specific `…/<tenant id>/v2.0` URL.
