Set up SSO with Microsoft Entra ID (SAML)
For the IT admin who received a SaaSLayer SSO setup link. You create a SAML enterprise application in Microsoft Entra whose NameID is the person's object id, paste its metadata URL 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 (NameID = object id, groups from Entra's default group claim). 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.
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 |
|---|---|---|
| Entity ID (audience URI) | urn:amazon:cognito:sp:<userPoolId> | Identifier (Entity ID) |
| ACS URL (reply URL) | https://auth.yourapp.saaslayer-cloud.com/saml2/idpresponse | Reply URL (Assertion Consumer Service URL) |
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:
_saaslayer-sso.acme.com TXT "saaslayer-sso-verification=<token>"1. Create the enterprise application
In the Microsoft Entra admin center:
- Entra ID → Enterprise applications → New application → Create your own application.
- Name it, pick Integrate any other application you don't find in the gallery (Non-gallery), Create.
- Single sign-on → SAML.
- Basic SAML Configuration → Edit:
- Identifier (Entity ID): the Entity ID. Remove any other identifier.
- Reply URL (Assertion Consumer Service URL): the ACS URL.
- Sign on URL: leave empty (or the dashboard tile URL; see SSO dashboard tiles).
- Relay State: leave empty.
- Save.
- Attributes & Claims → Edit:
- Unique User Identifier (Name ID): Name identifier format Persistent, Source attribute
user.objectid. Neveruser.userprincipalnameoruser.mail: they can change, and an email-shaped NameID is refused withemail-shaped-subject. - Keep the default emailaddress claim (
user.mail). - Add a group claim: Security groups, Source attribute Group ID. Keep the default claim name. Groups arrive as object ids.
- Unique User Identifier (Name ID): Name identifier format Persistent, Source attribute
- SAML Certificates: copy the App Federation Metadata Url.
- Set up <your app>: copy the Microsoft Entra Identifier,
https://sts.windows.net/<tenant id>/. - Users and groups → Add user/group: assign the people or groups who should sign in.
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 |
|---|---|
| Entity ID (issuer) | The Microsoft Entra Identifier, https://sts.windows.net/<tenant id>/ (with the trailing slash) |
| Metadata URL | The App Federation Metadata Url |
| Directory tenant ID (Microsoft Entra) | Your tenant id, in lower case as Entra sends it. Assertions from any other tenant are refused. |
Click Save identity provider. The issuer 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 and the metadata 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 too many groups, Entra sends http://schemas.microsoft.com/claims/groups.link instead of the list.
SaaSLayer counts that as incomplete (groups-overage) and grants nothing from groups, never a partial list. Filter
the group claim to Groups assigned to the application, or use SCIM.
Signing certificate
Entra's SAML signing certificate expires (3 years by default). SaaSLayer alerts the app's owner at 90, 30, 7 and 1 days. To rotate, add and activate a new certificate in SAML Certificates; the owner then reloads the metadata (two certificates may overlap during the switch).
Show the app's name and logo
Entra shows the enterprise application's name and logo on its sign-in page and in My Apps. Enterprise applications → <your app> → Properties: set Name to the app's name and Logo to the app's logo (a square PNG or JPG, 215 × 215 pixels, up to 100 KB). Visible to users? Yes gives people a My Apps tile (see SSO dashboard tiles). Save.
If it fails
See SSO troubleshooting. The usual Entra SAML causes:
email-shaped-subject: the NameID is the UPN or email (step 1.5).domain-mismatch: the person's email is anonmicrosoft.comaddress or another unverified domain.tenant-mismatch: the tenant id on the setup page differs from the assertion's (check its case).email-missing: the emailaddress claim was removed, or the person has no Email set.