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

# Set Up SCIM Provisioning in Microsoft Entra ID

> Let Microsoft Entra ID add, update and remove people in your Searchable workspace, and set their roles from Entra groups

## Overview

SCIM lets Microsoft Entra ID manage who belongs to your Searchable workspace. People Entra provisions are added to your workspace; disable or delete them in Entra and they're removed. If you provision Entra groups, Searchable can also set each person's role from their groups.

SSO decides whether someone can sign in. SCIM decides who should have access at all, and tells Searchable when that changes.

> [!NOTE]
>
> SCIM is set up together with the Searchable team. We issue your SCIM token and map your Entra
> groups to roles; you set up provisioning in Entra and choose who's in scope. Contact
> [support@searchable.com](mailto:support@searchable.com) to get started.

## Prerequisites

* Your workspace has a **live** SSO connection to Microsoft Entra ID (SAML or OIDC), with your email domains verified. A SCIM token can only be issued once SSO is turned on. See [Single sign-on](https://docs.searchable.com/advanced/sso.md).
* You're an Entra admin who can create Enterprise applications and configure provisioning.
* A Searchable SCIM token and the endpoint URL, which we send you (step 1 below).

## Quick setup

**1. Get your SCIM token and endpoint URL**

Ask [support@searchable.com](mailto:support@searchable.com) for a SCIM token for your workspace. We send you two values:

* **Endpoint URL**: `https://app.searchable.com/api/scim/v2`. Use exactly the URL we send, not a custom domain.
* **SCIM token**: shown to us once, when it's created. Store it in your password manager; if it's lost, we issue a new one.

Each token belongs to one workspace's SSO connection. People Entra provisions with that token join that workspace and no other.

**2. Choose the Entra app**

Entra provisions through an **Enterprise application** created as a non-gallery app.

* **If you use SAML SSO** and followed our SSO steps, your Searchable SAML app is already one. Use it.
* **If you use OIDC SSO** and created your app as an Enterprise application, as our [SSO steps](https://docs.searchable.com/advanced/sso.md) suggest when you plan to use SCIM, use that app.
* **Otherwise**, or if you want a separate app for provisioning: in the Microsoft Entra admin center, go to **Enterprise applications → New application → Create your own application**, name it (for example "Searchable"), choose **Integrate any other application you don't find in the gallery (Non-gallery)**, and click **Create**. Creating it takes a few seconds; wait for its **Overview** page.

**3. Connect Entra to Searchable**

In the app, open **Provisioning** and choose **Connect your application** (in the classic view, **Get started** and set **Provisioning Mode** to **Automatic**). Set:

| Setting | Value |
| - | - |
| Authentication method | **Bearer authentication** |
| Tenant URL | The endpoint URL from step 1 followed by `?aadOptscim062020`, for example `https://app.searchable.com/api/scim/v2?aadOptscim062020` |
| Secret token | The SCIM token from step 1 |

The `?aadOptscim062020` flag makes Entra send standard SCIM updates. Click **Test connection**. It should succeed. Then click **Create** (or **Save**).

**4. Choose who's in scope**

Under **Provisioning → Settings**, set **Scope**:

* **Sync only assigned users and groups** (the default): Entra provisions the people and groups assigned under the app's **Users and groups**.
* **Sync all users and groups**: Entra provisions everyone in your directory. On **Microsoft Entra ID Free** you can assign users to an app but not groups, so use this setting if you want Entra groups to reach Searchable. People on your verified domains who aren't already members or invited join with your SSO connection's default role, so check that role first. People off your verified domains are added only if your workspace invited them or they're already a member (see [Who can be added](#who-can-be-added)).

**5. Turn provisioning on**

Set **Provisioning Status** to **On** and save. Entra syncs on a cycle, about every 40 minutes. To push one person or group straight away, use **Provision on demand** in the app's menu.

**6. Map groups to roles (optional)**

If you want Entra groups to set roles, provision the groups, then tell us which group should give which role (Admin, Member or Viewer) and we'll map them. See [Roles from Entra groups](#roles-from-entra-groups).

Entra's default attribute mapping works as it is: it sends `userPrincipalName` as the user name, `mail` as the email, `mailNickname` as the external ID, and the person's name and active state.

## What happens in Searchable

| In Entra | In Searchable |
| - | - |
| Provision someone (on demand, or on a cycle) | Someone new joins with your SSO connection's default role. An existing member keeps the role they have, and someone your workspace invited gets the invitation's role. Once groups are mapped, their groups decide it. New accounts start unverified, with no password; their first SSO sign-in completes them. |
| Change someone's name | Updated, if their email is on one of your verified domains. Otherwise it's ignored. |
| Change someone's user principal name or email | Not applied. Searchable keeps the email it already has. |
| Turn off **Account enabled** | Removed from your workspace. Their Searchable account isn't banned, and any other workspaces they belong to are untouched. |
| Turn **Account enabled** back on | Someone on your verified domains is added back, with the default role or their groups' role. Someone on another domain comes back only if your workspace invites them again, with the invitation's role. Either can be refused if your workspace is at its seat limit. |
| Delete someone | Entra reports them as no longer active on its next cycle, and they're removed from your workspace as above. Provision on demand can't send a deleted person, so wait for the cycle. |

> [!NOTE]
>
> **Deleting someone in Entra doesn't delete their Searchable account.** Entra tells Searchable the
> person is no longer active, and Searchable removes them from your workspace. Their account stays,
> so provisioning someone on your verified domains again brings them back (someone on another domain
> needs a new invitation first).

Searchable doesn't send people Entra adds an invitation. Let them know yourself that they can sign in with SSO.

### Who can be added

* **People on your verified domains** are added, whether or not they already have a Searchable account.
* **People on other domains**, including guest users, are added only if your workspace invited them first or they're already a member. Anyone else is refused.
* **The workspace owner** can't be removed through SCIM. Transfer ownership first.
* **A super admin whose email is on another domain** can't be removed through SCIM either, so Entra can't remove someone your company doesn't own. Change their role in Searchable first. A super admin on your verified domains is removed like anyone else; if they're added back later, they return with the default role or their groups' role.

## Roles from Entra groups

Provisioning groups doesn't change anyone's role on its own. Roles start following Entra only once we map at least one provisioned group to a role. Before anything is saved, we see a preview of exactly who will change.

Once a group is mapped:

* Each person gets the **highest** role among their mapped groups (Admin, then Member, then Viewer).
* People on your verified domains who aren't in any mapped group get your SSO connection's **default role**.
* People on other domains never get the default role. When they leave their last mapped group, they go back to the role your workspace gave them before a group took over. So a contractor you invited as a Member, added to a Viewer group and then removed from it, is a Member again. A role you change in Searchable wins over the one remembered: if you change their role while groups don't decide it (they're in no mapped group, or groups are unmapped), they keep it, and it's the role they return to when they later leave a mapped group. If their role ends up the same as the group set it (left alone, or changed and set back), that isn't a change, so they still go back to the role they had before the group took over. Someone removed from your workspace and invited back returns to the invitation's role, not the one they had before.
* The **owner** and **super admins** are never changed.
* A person must be provisioned before their group membership counts: Searchable skips group members that Entra hasn't provisioned as people.

> [!NOTE]
>
> **Group changes reach Searchable at different speeds.** Adding someone to a group arrives as soon
> as you provision the group on demand. Removing someone from a group, renaming a group or deleting
> one arrives on Entra's next cycle, about 40 minutes later.

### "Managed by your identity provider"

When Entra decides someone's role, their role is locked in Searchable. In **Settings → Team**, their role control is disabled and shows **Managed by your identity provider**, and nobody in your workspace can change it there. Change their Entra groups instead.

Project access isn't locked. You can still choose which projects each person can reach.

To manage roles in Searchable again, ask us to unmap your groups. Everyone keeps the role they have at that moment, and the locks lift.

## Verify your setup

> [!TIP]
>
> **Test connection** succeeds in Entra

> [!TIP]
>
> A test person you provision on demand appears in **Settings → Team** with the expected role

> [!TIP]
>
> Turning off that person's **Account enabled** and provisioning them on demand removes them from **Settings → Team**

> [!TIP]
>
> If you use groups: after mapping, adding the test person to a mapped group and provisioning the group on demand changes their role, and it shows **Managed by your identity provider**

## Troubleshooting

> [accordion] Test connection fails
>
> Check that the Tenant URL is exactly the endpoint URL we sent (with `?aadOptscim062020` added) and the authentication method is **Bearer authentication**. Entra shows the result in its notifications panel. If the token was revoked, or SSO was turned off at any point (turning SSO off revokes every SCIM token, and turning it back on doesn't bring them back), ask us for a new token and paste it into Entra.

> [accordion] People are showing up in the wrong workspace
>
> The token decides the workspace. If your company has more than one Searchable workspace, check that the token in Entra is the one we issued for this workspace's SSO connection.

> [accordion] Someone was provisioned but didn't appear
>
> Searchable refuses the request, and nothing is created, when:
>
> * their email isn't on one of your verified domains and your workspace hasn't invited them;
> * they already have a Searchable account with a password (or Google sign-in) that was never verified. Your owner and admins get an email about it, at most once a day. Ask the person to sign in once with SSO, then provision them again;
> * your workspace is at its seat limit. Your owner and admins get an email, at most once a day;
> * Entra sent no email for them, so Searchable used their user principal name, and it's on a domain you haven't verified (a cloud-only `…@yourcompany.onmicrosoft.com` account, for example). Fill in their **Email** in Entra and provision them again;
> * another person on the same connection already uses their external ID. Entra's default external ID is the mail nickname, the part of the address before the `@`, so two people with the same nickname on different domains collide. Give one of them a different **Mail nickname** in Entra and provision them again.
>
> Entra's provisioning logs show the reason, and we can see it for every refused request in your workspace's SCIM log. Contact [support@searchable.com](mailto:support@searchable.com) if you're not sure which applies.

> [accordion] A change in Entra hasn't reached Searchable yet
>
> Entra syncs about every 40 minutes. Use **Provision on demand** to push a person or group straight away. Removing someone from a group, renaming or deleting a group, and deleting a person only arrive on the next cycle.

> [accordion] I can't assign a group to the app
>
> On Microsoft Entra ID Free, Entra doesn't allow assigning groups to an app ("Groups are not available for assignment due to your Active Directory plan level"). Assign people one by one, or set the provisioning **Scope** to **Sync all users and groups**.

> [accordion] Someone is in a mapped group but their role didn't change
>
> Check that the person has been provisioned as well as the group: Searchable skips group members that Entra hasn't provisioned as people. Also check they aren't the workspace owner or a super admin, whose roles never change.

> [accordion] I can't change someone's role in Searchable
>
> Their role is managed by Entra (see ["Managed by your identity provider"](#managed-by-your-identity-provider)). Change their groups in Entra, or ask us to unmap your groups so admins can manage roles in Searchable again.

> [accordion] Entra can't remove the workspace owner or a super admin
>
> Searchable refuses to remove the owner through SCIM: transfer ownership to someone else in Searchable first. It also refuses to remove a super admin whose email is on another domain: change their role in Searchable first. Entra retries the refused request on its next cycle.

> [accordion] Entra is getting rate-limited
>
> Searchable accepts up to 600 SCIM requests a minute per SSO connection. Requests over that get a `429` response with a `Retry-After` header.

## Related

> [card] [Single sign-on](https://docs.searchable.com/advanced/sso.md)
>
> Set up Entra SAML or OIDC sign-in

> [card] [Teams & Collaboration](https://docs.searchable.com/advanced/teams-collaboration.md)
>
> Roles, permissions and SSO sign-in


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