> Documentation index: https://metorial.com/llms.txt. Every page is available as Markdown by adding .md to its URL.

# Fix SSO and SCIM setup errors in Metorial
URL: https://metorial.com/docs/platform/troubleshooting/sso-and-scim-errors

For admins: what Metorial SSO errors such as This email domain is not configured and Authentication Error mean, why SCIM requests fail, and how to fix them.

---

Find the error page or SCIM error below. Each has its fix in **Enterprise Admin** or in your identity provider. If you are not an admin, send the page's full text to yours.

**What you'll learn**

* What each Metorial SSO error page means
* Why a domain cannot be used for SSO
* How to read a failed SCIM request

**Before you start**

* Admin access to **Enterprise Admin** in Metorial and to your identity provider
* The exact text of the error page, including the detail line under the message
* The setup steps, for reference ([Set up SSO and SCIM](https://metorial.com/docs/platform/guides/sso-and-scim))

## Domain errors

### `This email domain is not configured`

The page names the email your identity provider signed the person in as. The identity provider accepted the person, and Metorial refused the email's domain.

1. Open **Enterprise Admin**, then **Security**, **Authentication**.
2. Under **SSO Domains**, select **Add Domain** and enter the domain shown on the error page.
3. Add the DNS TXT record Metorial shows, and wait until the domain reads **Verified**.
4. Ask the person to sign in again.

If the page says the email "is not a valid email address", the identity provider sent a value without a domain. Map the email attribute to the person's real address in the identity provider.

### `You need to verify a domain before you can use SSO.`

**Authentication** shows this until one domain reads **Verified**. **Email Verified** is not enough, because SAML needs DNS verification. Add the TXT record under **DNS verification steps** to your DNS settings, with the **Record Name** and **Record Value** shown there. Metorial checks for the record periodically.

`This domain is currently unverified and cannot be used for SSO until DNS verification succeeds again.` means a verified domain lost its TXT record. Add the same record again.

## Sign-in errors

### `Metorial could not authenticate you.`

Shown under the title **Authentication Error**. Metorial could not accept the SAML response. A detail line can follow.

1. Compare the **Entity ID** and **Reply URL (ACS URL)** in the identity provider with the values on the Metorial connection. They have to match exactly, with no trailing slash.
2. Check that the response and the assertion are signed.
3. If the signing certificate was rotated, update the connection's metadata in Metorial.
4. Open the connection and select **Test SSO**.

The same page can carry one of these messages instead:

| Message                                         | Cause and fix                                                                                                                                                              |
| ----------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `Metorial could not verify your SAML response.` | No active SAML connection matched the response. Check that the connection is active and that the identity provider's app uses this connection's Reply URL                  |
| `Invalid IdP-initiated SAML response.`          | A sign-in started from the identity provider's app tile arrived without the values Metorial needs. Copy the Reply URL from the connection into the identity provider again |
| `SSO connection is not available.`              | The connection is disabled, deleted, or not completed. Finish or re-enable it under **SSO Connections**                                                                    |
| `Provider did not return a redirect URL.`       | The response did not lead back to Metorial. Check the Reply URL and select **Test SSO**                                                                                    |

### `An error occurred during authentication.`

Shown under the title **Unable to Authenticate**, with a detail line that names the cause:

| Detail                                          | Cause and fix                                                                  |
| ----------------------------------------------- | ------------------------------------------------------------------------------ |
| `No connections found for tenant.`              | The organization has no SSO connection. Add one under **SSO Connections**      |
| `Connection not found or disabled for auth.`    | The connection was disabled or removed during the sign-in. Enable it and retry |
| `Account is not active.`                        | The Metorial enterprise account is not active. Contact Metorial support        |
| A line that starts with `Authorization failed:` | The identity provider refused the request. The rest of the line is its error   |

### `You do not have access to this application`

The person authenticated, and the account is not allowed into Metorial. Check the person's entry on the connection's **Users** tab in **Enterprise Admin**. If it looks right, contact Metorial support with the email address and the time.

If people sign in and land on a **No access** page instead, SSO worked and the portal does not admit their SSO group. Open the portal's **Settings**, then **SSO**. Set the connection to **Everyone has access**, or choose **Selected SSO groups** and add the group.

## Setup errors

| Message                                                                  | Cause and fix                                                                                                                                                           |
| ------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `Could not create SAML connection:`                                      | Metorial could not read the metadata. The text after the colon names the problem. Paste the complete metadata XML, or use a metadata URL that answers without a sign-in |
| `Could not create SCIM directory:`                                       | The directory could not be created. The text after the colon names the problem. Check that the connection is enabled, then add the directory again                      |
| `The setup link you are trying to access does not exist or has expired.` | Shown under the title **Setup Not Found**. Ask the person who sent the link for a new one                                                                               |

## SCIM errors

Metorial answers a failed SCIM request with status `400` and puts the message in the `detail` field. The directory's logs in Metorial show each request with its body and response.

| `detail`                                    | Cause and fix                                                                                                                                |
| ------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
| `SCIM group display name is required`       | The identity provider pushed a group without a name. Set the group's display name and push it again                                          |
| `Every SCIM group member must have a value` | A group update listed a member without an ID. Fix the attribute mapping for group members in the provisioning settings                       |
| `SCIM group references unknown users:`      | The group lists members Metorial has not received as users. Their IDs follow the colon. Provision the users first, then push the group again |

If users are not created at all, open the directory's logs. No entries means the identity provider is not calling Metorial, so compare the **SCIM endpoint** and **Bearer token** it uses with the directory's values.

## Next steps

* [Set up SSO and SCIM](https://metorial.com/docs/platform/guides/sso-and-scim): the full setup for Entra ID and Okta
* [Sign-in and OAuth errors](https://metorial.com/docs/platform/troubleshooting/sign-in-and-oauth-errors): portal access and client sign-in
* [Error reference](https://metorial.com/docs/platform/troubleshooting/error-reference): every Metorial error message with its fix