MetorialDocs

Set up SSO for the MCP gateway with Microsoft Entra ID

Create an Entra enterprise application, paste Metorial’s Entity ID and Reply URL, add a group claim, upload the Federation Metadata XML, then add SCIM.

To set up SSO with Microsoft Entra ID, create an enterprise application in Entra, choose SAML, and set the fields Identifier (Entity ID) and Reply URL (Assertion Consumer Service URL) to the two values Metorial shows under Enterprise Admin, Security, Authentication, Add SAML Connection. Map four claims, add a group claim, download Federation Metadata XML, and upload it to Metorial. Then add a SCIM directory so Entra provisions and deprovisions users and groups.

What you'll learn

  • How to create the SAML connection between Entra ID and Metorial
  • How to send group membership so groups can decide tool access
  • How to turn on SCIM provisioning

Before you start

1. Verify your domain and start the connection

Add your domain

In Enterprise Admin, open Security, Authentication. Under SSO Domains, select Add Domain, enter your domain, and add the DNS TXT record Metorial shows. The domain cannot be used for SSO until DNS verification passes.

Start the SAML connection

Under SSO Connections, select Add SAML Connection and choose Microsoft Entra ID. Keep the panel open. It shows Entity ID and Reply URL (ACS URL).

2. Configure Entra ID

Create the enterprise application

In the Microsoft Entra admin center, open Enterprise applications, select New application, then Create your own application. Enter a name and select Create.

Enter the SAML values

Under Manage, select Single sign-on, then SAML. Select Edit on Basic SAML Configuration and enter:

Entra fieldValue
Identifier (Entity ID)The Entity ID from Metorial
Reply URL (Assertion Consumer Service URL)The Reply URL (ACS URL) from Metorial

Select Save. Use the exact values with no trailing slash.

Map attributes

Select Edit on Attributes & Claims and set:

Claim nameValue
http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddressuser.mail
http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givennameuser.givenname
http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameuser.userprincipalname
http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surnameuser.surname

Add a group claim

In Attributes & Claims, select Add a group claim. Choose Groups assigned to the application, which Microsoft recommends for large organizations because a SAML assertion carries at most 150 groups. By default Entra sends each group's object ID. To send display names for cloud-only groups, set Source attribute to Cloud-only group display names.

Download metadata and assign people

In SAML Signing Certificate, download Federation Metadata XML. Then open Users and groups and assign the users or groups who should use Metorial.

3. Finish in Metorial

Back in the Add SAML Connection panel, enter a Name, set Metadata source to Metadata XML, paste the file's contents, and select Add Connection.

4. Add SCIM provisioning

SAML decides who can sign in. SCIM creates accounts ahead of time and deprovisions people when they are disabled in Entra.

Create the directory in Metorial

Open the connection, select Directories, then Add Directory. Set Directory provider to Microsoft Entra ID, enter a Directory name, and select Create Directory. Copy the SCIM endpoint and Bearer token. The token is not shown again after you close the panel.

Configure provisioning in Entra

In the enterprise application, select Provisioning, then New configuration. Enter the SCIM endpoint as Tenant URL and the bearer token as Secret Token. Select Test Connection, then Create.

Start provisioning

Review Attribute mapping for users and groups. Use Provision on-demand to test one user, then select Start provisioning. After the first cycle, Entra syncs about every 40 minutes.

Check it worked

On the connection in Metorial, select Try this connection under Test SSO Connection. The test result lists the name, email, Groups and Roles Entra returned, without creating a user. The directory's Logs show each SCIM request with its status code.

A person signs in from the terminal and checks the groups Metorial received:

metorial login
metorial whoami

Troubleshooting

A "not assigned" error when signing in

The user is not assigned to the enterprise application. Assign the user, or a group they belong to, under Users and groups.

Sign-in fails right after setup

The Reply URL must match Metorial's value exactly. A trailing slash breaks validation.

Next steps