# Set up single sign-on (SSO) for your organisation

Source: https://knowledge.intractive.app/en/articles/set-up-sso

With single sign-on (SSO), your team logs in to Intractive with their company account through your identity provider, such as Microsoft Entra ID, Okta or Google Workspace. Your IT team sets up one side of the connection and we set up the other.

Whether SSO is available for your organisation depends on your plan. Ask us in the chat.

## How the setup works

1. Your IT team creates a SAML application for Intractive in your identity provider and assigns the people who should have access.
2. Your IT team sends us the identity provider's metadata and the email domains to use.
3. We set up the connection in Intractive for you and tell you when it's ready.
4. You test the login.

Optional: we can also set up directory sync (SCIM), so people removed from your identity provider are removed from Intractive automatically.

## What your IT team needs to do

Intractive uses SAML 2.0, and any identity provider that supports it works. To create the SAML application, your IT team enters the values in this table.

| Field | Value |
| --- | --- |
| ACS URL (Assertion Consumer Service URL, sometimes called Reply URL or Single sign-on URL) | `https://sso.intractive.app/api/oauth/saml` |
| Entity ID (sometimes called Audience URI or SP Entity ID) | `https://saml.boxyhq.com` |
| Name ID format | Email or Unspecified |
| Name ID value | The user's primary email address |

The SAML application must send these three attributes:

| Attribute name | Value |
| --- | --- |
| `email` | The user's email address |
| `firstName` | The user's first name |
| `lastName` | The user's last name |

### Google Workspace

1. Go to the **Google Admin Console** at [admin.google.com](http://admin.google.com/).
2. Go to **Apps** > **Web and mobile apps**.
3. Click **Add app** > **Add custom SAML app**.
4. Enter an app name, for example Intractive, and click **Continue**.
5. Download the identity provider (IdP) metadata XML. You'll send this to us later.
6. Enter the service provider details:
   - **ACS URL**: `https://sso.intractive.app/api/oauth/saml`
   - **Entity ID**: `https://saml.boxyhq.com`
   - **Name ID format**: UNSPECIFIED
   - **Name ID**: **Basic Information** > **Primary email**
7. Add the attribute mappings:
   - `firstName`: **Basic Information** > **First name**
   - `lastName`: **Basic Information** > **Last name**
   - `email`: **Basic Information** > **Primary email**
8. Click **Finish**.
9. Go to **User access** and set the app to **ON for everyone**, or turn it on for specific organisational units.
10. Wait a few minutes for the changes to take effect.

### Microsoft Entra ID (Azure AD)

1. Go to the **Microsoft Entra admin center** at [entra.microsoft.com](http://entra.microsoft.com/).
2. Go to **Enterprise applications** > **New application** > **Create your own application**.
3. Name the app, for example Intractive.
4. Select **Integrate any other application you don't find in the gallery** and click **Create**.
5. Go to **Single sign-on** > **SAML**.
6. In **Basic SAML Configuration**, set:
   - **Identifier (Entity ID)**: `https://saml.boxyhq.com`
   - **Reply URL (ACS URL)**: `https://sso.intractive.app/api/oauth/saml`
7. In **Attributes & Claims**, set:
   - `email`: `user.mail`
   - `firstName`: `user.givenname`
   - `lastName`: `user.surname`
8. Copy the **App Federation Metadata Url** from section 3, **SAML Certificates**. You'll send this to us later.
9. Go to **Users and groups** and assign the users or groups that should have access.

The metadata URL has this format:

```javascript
https://login.microsoftonline.com/<tenant-id>/federationmetadata/2007-06/federationmetadata.xml?appid=<app-id>
```

### Okta

1. In the **Okta Admin Console**, go to **Applications** > **Create App Integration**.
2. Select **SAML 2.0** and click **Next**.
3. Enter an app name, for example Intractive, and click **Next**.
4. Set the SAML settings:
   - **Single sign-on URL**: `https://sso.intractive.app/api/oauth/saml`
   - **Audience URI (SP Entity ID)**: `https://saml.boxyhq.com`
   - **Name ID format**: EmailAddress
   - **Application username**: Email
5. Add the attribute statements:
   - `email`: `user.email`
   - `firstName`: `user.firstName`
   - `lastName`: `user.lastName`
6. Click **Next**.
7. Select **I'm an Okta customer** and click **Finish**.
8. Go to the **Sign On** tab and copy the **Metadata URL**. You'll send this to us later.
9. Go to the **Assignments** tab and assign users or groups.

The metadata URL has this format:

```javascript
https://<your-okta-domain>/app/<app-id>/sso/saml/metadata
```

### Other SAML 2.0 identity providers

1. Create a new SAML application in your identity provider.
2. Enter the ACS URL and Entity ID from the first table.
3. Map the `email`, `firstName` and `lastName` attributes.
4. Assign users to the application.
5. Copy the identity provider's metadata URL. Some providers call it Federation Metadata URL or SAML Metadata.

## What to send us

Send these two things to your customer success contact at Intractive:

- the metadata URL of your identity provider, or its metadata XML
- the email domains your team logs in with, for example `acme.com`

We set up the connection for you. The SSO settings in Intractive are managed by our team, so you won't see them in Intractive.

## Test the login

When we tell you the connection is ready, test it. Use an account that already exists in Intractive.

1. Open the Intractive Builder login page in a private or incognito window.\
   \[screenshot: the Intractive Builder login page in a private browser window\]
2. Select **Enterprise SSO**.
3. Enter an email address on one of your SSO domains in **Work email address**.
4. Select **Continue with SSO**.
5. Log in at your identity provider, which Intractive sends you to.\
   \[screenshot: the identity provider's login page after Intractive redirects to it\]

You're now logged in to Intractive.

\[screenshot: the Intractive Builder right after a successful SSO login\]

## How your team logs in after setup

Anyone on one of your SSO domains who is assigned to the SAML application logs in the same way. They select **Enterprise SSO** on the Intractive login page, enter their email address and log in at your identity provider. SSO doesn't create accounts, with or without directory sync. Invite people to Intractive first, then they can log in with SSO.

Turning on SSO on its own doesn't change how existing members log in. Accounts that existed before we turned SSO on can still use their password, Google or Microsoft. People you invite later with one of your SSO domains must log in with SSO. So must members that directory sync links to your organisation. We can change this per member, so ask us in the chat if someone needs a different setting.

## Optional: directory sync (SCIM)

Directory sync keeps your Intractive members in line with your identity provider. Removals in your identity provider reach Intractive within minutes. Intractive supports SCIM 2.0, and the Google Directory API for Google Workspace.

These identity providers are supported: Entra ID, Okta, OneLogin, JumpCloud, Google Workspace, and any other provider that supports SCIM v2.0.

We turn on directory sync for you. Tell us which identity provider you use. Directory sync doesn't create accounts either, so invite people to Intractive first.

For Google Workspace, your Google Workspace admin grants Intractive read-only access to the directory. We guide you through it.

For any other provider, directory sync uses a SCIM endpoint and a SCIM token from Intractive. We send you the endpoint and token through a secure channel. Your IT team pastes both into the provisioning settings of your identity provider. The SCIM token is shown only once. If it's lost, we reset the directory connection, which creates a new endpoint and token, and your IT team updates them in your identity provider.

### Microsoft Entra ID (Azure AD) provisioning

1. In the Entra admin center, open the enterprise application for Intractive.
2. Go to **Provisioning**.
3. Click **Get started**.
4. Set **Provisioning Mode** to **Automatic**.
5. Under **Admin Credentials**, enter the SCIM endpoint in **Tenant URL** and the SCIM token in **Secret Token**.
6. Click **Test Connection**.
7. Click **Save**.
8. Under **Mappings**, check that `userPrincipalName` (or `mail`) maps to `userName`, `givenName` to `name.givenName`, and `surname` to `name.familyName`.
9. Assign the users and groups that should be provisioned.
10. Turn **Provisioning Status** on.

### Okta provisioning

1. In the Okta Admin Console, open the SAML application for Intractive.
2. Go to the **Provisioning** tab.
3. Click **Configure API Integration**.
4. Turn on **Enable API Integration**.
5. Enter the SCIM endpoint in **Base URL** and the SCIM token in **API Token**.
6. Click **Test API Credentials**.
7. Click **Save**.
8. Under **To App**, turn on **Create Users**, **Update User Attributes** and **Deactivate Users**.
9. On the **Assignments** tab, assign the users and groups that should be provisioned.

### OneLogin, JumpCloud or another SCIM provider

1. In your identity provider, open the SCIM 2.0 settings of the application.
2. Enter the SCIM endpoint as the SCIM base URL. Some providers call it Tenant URL or Endpoint.
3. Enter the SCIM token as the bearer token. Some providers call it API Token or Secret Token.
4. Turn on the create, update and deactivate actions.
5. Assign the users or groups that should be provisioned.

### When someone leaves

When a user is removed or disabled in your identity provider, directory sync tells Intractive. Their active Intractive sessions end at once. What they had access to stays recorded, so you can review it before you decide whether to hand it to someone else.

## If the login doesn't work

| What you see | Cause | Fix |
| --- | --- | --- |
| `app_not_configured_for_user` | The SAML application isn't assigned to this user in your identity provider | Assign the user, or their group, to the SAML application |
| `No account found associated with this SSO identity` before you reach your identity provider | The email domain isn't one of the SSO domains we set up | Send your customer success contact the missing domain |
| `No email returned from enterprise SSO provider` | The attribute mapping is wrong | Check that the `email` attribute is mapped correctly in your identity provider |
| `No account found associated with this SSO identity` after you log in at your identity provider | The person hasn't been invited to Intractive | Invite them to your organisation or a project with the same email address |
| A SAML assertion error | The ACS URL or Entity ID doesn't match | Check that both match the values in the first table exactly |
| The SCIM test connection fails with `401 Unauthorized` | The SCIM token is wrong or out of date | Ask us to reset the directory connection, then enter the new endpoint and token in your identity provider |
| Users from directory sync don't appear in Intractive | The users or groups aren't assigned to the provisioning app, provisioning is paused, or the people haven't been invited to Intractive | Assign the users or groups in your identity provider, check that provisioning is running and invite the people to Intractive |

If this doesn't solve it, send us a message in the chat. We'll look at it with you.
