> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Single sign-on and directory sync

> Connect a SAML or OIDC identity provider, verify your email domain, enforce company sign-in, and provision members and roles through SCIM directory sync.

Single sign-on lets people sign in with their company login through your identity provider. Directory sync (SCIM 2.0) adds and removes people automatically and sets their role from directory groups. Both apply to the whole account and every workspace in it. This page covers adding a connection, verifying the domain, enforcing single sign-on, and setting up directory sync. Open it from **Settings** > **Single sign-on**.

## Who can use it

Single sign-on and directory sync are available on the **Enterprise** plan. On other plans the page shows **Single sign-on and directory sync are on Enterprise** with **See plans**.

Only owners and admins manage single sign-on and directory sync: the page needs **Edit** access to the **Members** area. See [Roles and permissions](/docs/administration/roles.md).

## Supported identity providers

The **Identity provider** list offers **Okta**, **Microsoft Entra ID**, **Google Workspace**, **OneLogin**, **JumpCloud** and **Other SAML / OIDC**. Each connection uses **SAML** or **OIDC**.

## Add a connection

**1. Start a connection**

On the **Single sign-on** card, select **Add connection**. The connection sheet opens on the **Connection** tab.

**2. Choose the provider and protocol**

Select the **Identity provider** and choose **SAML** or **OIDC**.

**3. Enter the email domain**

Enter the **Email domain**, such as `example.com`. Each connection has one domain. Public email domains cannot be used.

**4. Save a draft**

Select **Save draft**. The sheet shows the values to paste into your identity provider under **Paste into** the provider, and the provider's setup steps under **Set up in** the provider.

**5. Create the application in your identity provider**

Follow the setup steps for your provider below, using the values the sheet shows.

**6. Enter the identity provider details**

Copy the values from your identity provider into the connection fields, then select **Save**.

**7. Verify the domain**

Open the **Domain** tab and complete [domain verification](#verify-the-domain).

**8. Activate**

Select **Activate**. People whose email is on the verified domain can now sign in through your identity provider.

### Connection fields

| Protocol | Field | What to enter |
| - | - | - |
| SAML | **Sign-in URL** | The identity provider's single sign-on URL. Use the full `https://` URL. |
| SAML | **Identity provider entity ID** | The identity provider's issuer or entity ID. |
| SAML | **Signing certificate** | The X.509 certificate in PEM format. Paste it or select **Upload** (`.pem`, `.cer` or `.crt`). |
| OIDC | **Issuer URL** | The issuer, as a full `https://` URL. |
| OIDC | **Client ID** | The client ID of the application. |
| OIDC | **Client secret** | The client secret. It is hidden after save; select **Replace** to change it. |
| Both | **Email domain** | The company email domain for this connection. |

### Values to paste into your identity provider

| Value | Protocol |
| - | - |
| **Redirect (ACS) URL** | SAML |
| **Entity ID** | SAML |
| **Metadata URL** | SAML |
| **Redirect URL** | OIDC |
| **Sign-on URL** | Both. Starts sign-in from the identity provider's dashboard. |

Each value is unique to the connection. Copy it from the sheet.

### Setup steps for each identity provider

The connection sheet shows these steps for the provider you select. Values in bold are labels in the identity provider's console.

> [tab] Microsoft Entra ID
>
> **SAML**
>
> 1. In the Microsoft Entra admin center, open **Enterprise apps**, select **New application**, then **Create your own application** and choose the non-gallery option.
> 2. Open **Single sign-on**, choose **SAML** and edit **Basic SAML Configuration**.
> 3. Paste the **Entity ID** into **Identifier (Entity ID)**, the **Redirect (ACS) URL** into **Reply URL** and the **Sign-on URL** into **Sign on URL**. Paste each value in full, including the part after the question mark.
> 4. Keep the default claims under **Attributes & Claims**. The email address, given name and surname claims fill the member's email and name.
> 5. Copy **Login URL** into Sign-in URL and **Microsoft Entra Identifier** into Identity provider entity ID, then upload **Certificate (Base64)** as the signing certificate.
> 6. Under **Users and groups**, assign the people or groups who use Elastly.
>
> **OIDC**
>
> 1. In the Microsoft Entra admin center, open **App registrations** and select **New registration**.
> 2. Under **Redirect URI**, choose **Web**, paste the **Redirect URL** and select **Register**.
> 3. Under **Branding & properties**, paste the **Sign-on URL** into **Home page URL**.
> 4. Under **Certificates & secrets**, select **New client secret** and copy its **Value** into Client secret.
> 5. Copy **Application (client) ID** into Client ID. The Issuer URL is `https://login.microsoftonline.com/` followed by your **Directory (tenant) ID** and `/v2.0`.
> 6. In **Enterprise apps**, open the Elastly application and assign the people or groups who use it under **Users and groups**.

> [tab] Okta
>
> **SAML**
>
> 1. In the Okta Admin Console, open **Applications**, select **Create App Integration** and choose **SAML 2.0** as the sign-in method.
> 2. Paste the **Redirect (ACS) URL** into **Single sign-on URL** and the **Entity ID** into **Audience URI (SP Entity ID)**.
> 3. Set **Name ID format** to **EmailAddress** and **Application username** to **Email**, then finish the wizard as an internal app.
> 4. On the **Sign On** tab, copy **Sign on URL** into Sign-in URL and **Issuer** into Identity provider entity ID, then download the **Signing Certificate** and upload it.
> 5. To start sign-in from the Okta dashboard, hide the application icon and add a **Bookmark App** that opens the **Sign-on URL**.
> 6. On the **Assignments** tab, assign the people or groups who use Elastly.
>
> **OIDC**
>
> 1. In the Okta Admin Console, open **Applications**, select **Create App Integration**, then choose **OIDC - OpenID Connect** as the sign-in method and **Web Application**.
> 2. Paste the **Redirect URL** into **Sign-in redirect URIs** and save.
> 3. Set **Login initiated by** to **Either Okta or App**, set **Login flow** to **Redirect to app to initiate login (OIDC Compliant)** and paste the **Sign-on URL** into **Initiate login URI**.
> 4. Copy **Client ID** and **Client secret**. The Issuer URL is your Okta domain, starting with `https://`.
> 5. On the **Assignments** tab, assign the people or groups who use Elastly.

> [tab] Google Workspace
>
> **SAML**
>
> 1. In the Google Admin console, open **Apps**, then **Web and mobile apps**, select **Add app** and choose **Add custom SAML app**.
> 2. Copy **SSO URL** into Sign-in URL and **Entity ID** into Identity provider entity ID, then download the **Certificate** and upload it.
> 3. Paste the **Redirect (ACS) URL** into **ACS URL**, the **Entity ID** into **Entity ID** and the **Sign-on URL** into **Start URL**.
> 4. Set **Name ID format** to **Email** and **Name ID** to **Basic Information > Primary email**, then finish.
> 5. Under **User access**, select **On for everyone** or turn the app on for the organisational units who use Elastly.
>
> **OIDC**
>
> 1. In the Google Cloud console, open **Google Auth Platform**, set the **Audience** to **Internal** so only your organisation can sign in, then open **Clients** and select **Create Client**.
> 2. Set the application type to **Web application** and paste the **Redirect URL** into **Authorized redirect URIs**.
> 3. Copy **Client ID** and **Client secret** when the client is created. The secret shows one time. The Issuer URL is `https://accounts.google.com`.

> [tab] OneLogin
>
> **SAML**
>
> 1. In OneLogin Administration, open **Applications**, select **Add App** and add **SAML Custom Connector (Advanced)**.
> 2. On the **Configuration** tab, paste the **Entity ID** into **Audience (EntityID)**, the **Redirect (ACS) URL** into **ACS (Consumer) URL** and **ACS (Consumer) URL Validator**, and the **Sign-on URL** into **Login URL**.
> 3. Set **SAML initiator** to **Service Provider** and **SAML nameID format** to **Email**.
> 4. On the **SSO** tab, copy **SAML 2.0 Endpoint (HTTP)** into Sign-in URL and **Issuer URL** into Identity provider entity ID, then download the **X.509 Certificate** and upload it.
> 5. Assign the people or roles who use Elastly.
>
> **OIDC**
>
> 1. In OneLogin Administration, open **Applications**, select **Add App** and add **OpenId Connect (OIDC)**.
> 2. On the **Configuration** tab, paste the **Sign-on URL** into **Login Url** and the **Redirect URL** into the redirect URIs.
> 3. On the **SSO** tab, set **Application Type** to **Web** and the token endpoint **Authentication Method** to **Basic**, then copy **Client ID**, **Client Secret** and **Issuer URL**.
> 4. Assign the people or roles who use Elastly.

> [tab] JumpCloud
>
> **SAML**
>
> 1. In the JumpCloud Admin Portal, open **SSO Applications**, select **Add New Application** and choose **Custom Application**.
> 2. Select **Manage Single Sign-On (SSO)** and **Configure SSO with SAML**.
> 3. Paste the **Entity ID** into **SP Entity ID**, the **Redirect (ACS) URL** into **ACS URLs** and the **Sign-on URL** into **Login URL**.
> 4. Set **SAMLSubject NameID** to **email** and the **SAMLSubject NameID Format** to the email address format.
> 5. Copy **IDP URL** into Sign-in URL and **IdP Entity ID** into Identity provider entity ID, then download the certificate and upload it.
> 6. On the **User Groups** tab, bind the groups who use Elastly.
>
> **OIDC**
>
> 1. In the JumpCloud Admin Portal, open **SSO Applications**, select **Add New Application** and choose **Custom Application**.
> 2. Select **Manage Single Sign-On (SSO)** and **Configure SSO with OIDC**.
> 3. Paste the **Redirect URL** into **Redirect URIs** and the **Sign-on URL** into **Login URL**, and set **Client Authentication Type** to **Client Secret Basic**.
> 4. Enable the **Email** and **Profile** scopes, then select **Activate** and copy the **Client ID** and **Client Secret**. The secret shows one time.
> 5. The Issuer URL is `https://oauth.id.jumpcloud.com/` for accounts in the United States region. On the **User Groups** tab, bind the groups who use Elastly.

> [tab] Other SAML / OIDC
>
> **SAML**
>
> 1. Create a SAML 2.0 application for Elastly in your identity provider.
> 2. Paste the **Redirect (ACS) URL** as the ACS or reply URL, the **Entity ID** as the SP entity ID or audience, and the **Sign-on URL** as the sign-on or start URL. Paste each value in full.
> 3. Send the work email as the Name ID, in the email address format, and sign the assertion.
> 4. Copy the identity provider's sign-in URL and entity ID into the connection fields and upload its signing certificate.
> 5. Assign the people or groups who use Elastly.
>
> **OIDC**
>
> 1. Create an OpenID Connect web application for Elastly in your identity provider, using the authorization code flow.
> 2. Paste the **Redirect URL** as the redirect URI and the **Sign-on URL** as the sign-on or initiate login URL.
> 3. Allow the `openid`, `email` and `profile` scopes.
> 4. Copy the issuer URL, client ID and client secret into the connection fields.
> 5. Assign the people or groups who use Elastly.

## Verify the domain

Domain verification proves the company owns the email domain. A connection can be activated only after its domain is verified, and each domain can be verified on one account only.

**1. Copy the TXT record**

On the **Domain** tab, copy the **Name** and **Value** of the **TXT record**.

**2. Add it at your DNS provider**

Create the TXT record at your DNS provider. DNS changes can take up to an hour.

**3. Verify**

Select **Verify**. When the record is found, the domain check shows **Verified**. You can keep or remove the record afterwards.

| Domain check | Meaning |
| - | - |
| **Pending** | The record has not been checked yet. |
| **Verified** | The record was found. The connection can be activated. |
| **Failed** | Record not found. Add the DNS record and try again. |

## Connection statuses

| Status | Meaning |
| - | - |
| **Draft** | Saved and not used for sign-in. A connection stays a draft until the domain is verified. |
| **Active** | Signs in people whose email is on the verified domain. |
| **Disabled** | Kept and not used. |

To stop using a connection, open it, select **More** and choose **Disable**. People on the domain cannot use single sign-on until you activate it again, and enforcement turns off. **Delete connection** removes the connection and its domain verification; you need to verify the domain again to reconnect.

## Sign-in rules

The **Sign-in rules** tab of an active connection has two settings.

| Setting | What it does |
| - | - |
| **Enforce single sign-on** | Everyone on the domain must sign in through your identity provider. Password, magic link, Google and Microsoft sign-in are blocked for the domain. Off by default, and available once the connection is active. |
| **New members** | The **Workspace** and **Role** where a person on the domain lands when they sign in for the first time without an invite. New connections default to the current workspace and the **Sales rep** role. |

> [!WARNING]
>
> When you enforce single sign-on, open sessions stay signed in until they expire. Turning enforcement off makes other sign-in methods available again for the domain.

## Directory sync

Directory sync is optional. It decides who has access, not how people sign in. Your identity provider sends changes to Elastly; Elastly cannot read or change your directory.

* Everyone assigned to the Elastly application in your identity provider joins the chosen workspace with the default role.
* People disabled or unassigned in your identity provider lose access to the workspace.
* Provisioned people must have an email on a verified domain.

### Set up directory sync

**1. Start the setup**

On the **Directory sync** card, select **Set up directory sync**.

**2. Choose the workspace and role**

Select the workspace under **Provision into** and the **Default role**. The default role starts as **Viewer**.

**3. Create the token**

Select **Create**. Copy the **SCIM base URL** and **Bearer token**.

**4. Configure your identity provider**

Paste both values into your identity provider using the steps below, then select **Done**.

> [!WARNING]
>
> The bearer token is shown once. It cannot be shown again after you close the sheet.

> [tab] Microsoft Entra ID
>
> 1. In the Microsoft Entra admin center, open **Enterprise applications** and select the Elastly application.
> 2. Open **Provisioning**, select **Get started** and set **Provisioning Mode** to **Automatic**.
> 3. Paste the **SCIM base URL** into **Tenant URL** and the **Bearer token** into **Secret Token**, then select **Test Connection** and **Save**.
> 4. Under **Settings**, set **Scope** to **Sync only assigned users and groups**.
> 5. Under **Users and groups**, assign the people or groups who use Elastly.
> 6. Select **Start provisioning**. Entra syncs about every 40 minutes; **Provision on demand** adds one person at once.

> [tab] Okta
>
> 1. In the Okta Admin Console, open **Applications** and select the Elastly application.
> 2. On the **General** tab, select **Edit**, enable **SCIM provisioning** and save.
> 3. On the **Provisioning** tab, open **Integration** and paste the **SCIM base URL** into **SCIM connector base URL**.
> 4. Set **Unique identifier field for users** to **userName** and **Authentication Mode** to **HTTP Header**, then paste the **Bearer token**.
> 5. Select **Test Connector Configuration**, then save.
> 6. Under **To App**, enable **Create Users**, **Update User Attributes** and **Deactivate Users**.
> 7. Assign the people or groups who use Elastly.

> [tab] OneLogin
>
> 1. In OneLogin Administration, open **Applications** and add **SCIM Provisioner with SAML (SCIM v2 Core)**.
> 2. On the **Configuration** tab, paste the **SCIM base URL** into **SCIM Base URL** and the **Bearer token** into **SCIM Bearer Token**, then select **Enable**.
> 3. On the **Provisioning** tab, enable provisioning and save.
> 4. Assign the people or roles who use Elastly.

> [tab] JumpCloud
>
> 1. In the JumpCloud Admin Portal, open **SSO Applications** and select the Elastly application.
> 2. On the **Identity Management** tab, choose **SCIM 2.0**.
> 3. Paste the **SCIM base URL** into **Base URL** and the **Bearer token** into **Token Key**, then select **Test Connection** and **Activate**.
> 4. Bind the user groups who use Elastly to the application.

> [tab] Google Workspace
>
> Google Workspace does not provision custom applications through SCIM. Add and remove people in **Members** instead.

> [tab] Other
>
> 1. Open the provisioning settings of the Elastly application in your identity provider and choose **SCIM 2.0**.
> 2. Paste the **SCIM base URL** as the base or tenant URL and the **Bearer token** as the authorization token.
> 3. Use **userName** as the unique identifier and enable create, update and deactivate.
> 4. Assign the people or groups who use Elastly.

### Map directory groups to roles

After the first push from your identity provider, the **Groups and roles** card lists each **Directory group**. Choose an **Elastly role** for each group, or leave it on **Default role**. Unmapped groups get the default role.

Each group a provisioned member belongs to adds its mapped role. When groups give several roles, the role with the widest access wins. The owner, and members the directory did not provision, are never changed.

### Rotate or remove directory sync

* **Rotate token** creates a new token. Earlier tokens stop working at once, and syncs fail until you paste the new token into your identity provider.
* **More** > **Decommission** stops your identity provider adding and removing people. The token stops working at once, people already provisioned keep their access, and group to role mappings are removed.

## When something fails

| Message | What to do |
| - | - |
| "Record not found. Add the DNS record and try again." | Check the TXT record name and value at your DNS provider, wait for DNS to update, then verify again. |
| "Verify the domain before activating single sign-on." | Complete domain verification first. |
| "This domain is already verified by another account." | A domain can be verified on one account only. Contact support. |
| "Public email domains cannot be used for single sign-on. Use your company domain." | Use your company email domain. |
| "Activate single sign-on before enforcing it." | Activate the connection, then enforce it. |
| "The identity provider settings could not be read. Check the issuer and try again." | Check the **Issuer URL** and the identity provider configuration. |
| "Another connection already uses this domain" | Each domain has one connection. Edit the existing connection. |
| "Couldn't save the connection. Nothing changed." | Try again. |

For errors people see while signing in, see [Sign-in and access problems](/docs/administration/sign-in-problems.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.