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

# Set Up SCIM with Microsoft Entra ID

This guide walks an organization admin through connecting Microsoft Entra ID (formerly Azure AD) to Vibranium Labs with SCIM, so that the people you assign in Entra get Vibranium Labs accounts automatically and lose access when you remove them. Sign-in stays on your SSO; SCIM only creates, updates and switches off accounts.

***

## Prerequisites

* **SSO is configured** in Vibranium Labs (Microsoft Entra ID, Okta, or any OIDC provider). People provisioned by SCIM sign in through it. See [Single Sign-On (SSO) Overview](https://docs.vibraniumlabs.ai/administration/login-and-authentication/sso/overview).
* Organization admin access in Vibranium Labs.
* An Entra role that can create enterprise applications and configure provisioning (for example Application Administrator or Cloud Application Administrator).
* **Assigning groups needs Microsoft Entra ID P1 or P2.** On the free tier Entra lets you assign individual users only.

***

## Part 1 — Get the SCIM URL and token from Vibranium Labs

1. Sign in to Vibranium Labs as an organization admin and go to **Settings → Integrations**.
2. Open your SSO card (**Configure**) and switch to the **SCIM provisioning** tab.
3. Copy the **SCIM base URL**. It looks like:

```javascript theme={null}
https://api-prod.vibraniumlabs.ai/scim/v2/your-organization-identifier
```

4. Click **Generate token** and copy the token right away. It is shown only once; store it in a password manager. It starts with `vl_scim_`.
5. Optional: choose the **Role for new accounts** on the same tab. Everyone SCIM creates gets this role (Member unless you change it). People who already have an account keep their role. The SSO tab shows the same setting.

***

## Part 2 — Create the app in Microsoft Entra

1. In the [Microsoft Entra admin center](https://entra.microsoft.com), go to **Enterprise applications → New application**.
2. Click **Create your own application**, name it (for example `Vibe OnCall`), choose **Integrate any other application you don't find in the gallery (Non-gallery)**, and click **Create**.
3. In the new app, open **Provisioning** and click **New configuration** (or **Get started**).
4. Fill in the connection:

| Field | Value |
| - | - |
| Authentication method | Bearer authentication |
| Tenant URL | The SCIM base URL from Part 1 |
| Secret token | The token from Part 1 |

5. Click **Test connection**. When it succeeds, click **Create**.

> **If the test fails:** check that the URL was copied exactly (no trailing slash), that the token was copied completely, and that SCIM is switched on in the Vibranium Labs SCIM tab.

***

## Part 3 — Mapping and scope

### Map `userName` to the user's email

Vibranium Labs matches accounts by email address, the same address your SSO signs people in with. Entra's default maps `userName` from `userPrincipalName`, which is often not the email address.

1. Open **Attribute mapping** (in the provisioning menu) and select the **Users** mapping.
2. Edit the row whose target is **userName**: set the source attribute to **mail**, keep **Match objects using this attribute** on, and save.

People whose Entra account has no **mail** value cannot be provisioned until it is filled in.

The other default mappings can stay. Vibranium Labs keeps the email (`userName`), the name (`displayName` and `name`), whether the account is active, and Entra's own ID for the user (`externalId`). Everything else Entra sends (job title, address, phone numbers, department, and so on) is accepted and ignored.

### Turn off group provisioning

Group membership is not synced to Vibranium Labs. Under **Provisioning → Mappings**, open **Provision Microsoft Entra ID Groups** and set **Enabled** to **No**, then save. Assigning a group to the app still works: it decides *who* is provisioned. If you leave it on, the provisioning logs show an error for each assigned group, but the people in it are still provisioned.

### Scope

Under **Provisioning → Settings**, keep **Scope** set to **Sync only assigned users and groups**.

***

## Part 4 — Assign people and start provisioning

1. Open **Users and groups** in the app and click **Add user/group**. Assign the people (or, with P1/P2, the group) who should have Vibranium Labs.
2. Optional but recommended: open **Provision on demand**, pick one assigned user, and click **Provision**. Entra shows each step; the last one should say the user was created (or updated, if they already had an account).
3. Under **Provisioning**, set **Provisioning Status** to **On** and click **Save**.

Entra then syncs on its own schedule, about every 40 minutes. **Provision on demand** applies a change to one person immediately.

> People whose Entra account is disabled (**Account enabled** off) are skipped and not provisioned.

***

## What happens in Vibranium Labs

| In Entra | In Vibranium Labs |
| - | - |
| Assign a person (directly or through a group) | An account is created with the role for new accounts. If an account with the same email already exists in your organization, it is linked instead: no duplicate, and its role, teams and schedules stay as they are. |
| Change their name | Their display name is updated. |
| Remove the assignment, or remove them from the assigned group | Their access is revoked. The account and its history stay. |
| Assign them again | Their access is restored. |
| Delete them in Entra | Their access is revoked. The account and its history stay. |
| Change their email | Not supported: Entra reports an error for that person. To move the account to the new address and keep its history, contact support. Otherwise, remove the old assignment (access is revoked) and assign the new address, which creates a new account. |

A person whose access was revoked can no longer sign in, even through SSO.

### Recommended: turn off JIT once SCIM is running

With **JIT provisioning** on, anyone who can sign in through your SSO gets an account on first sign-in. Once SCIM is running, turn JIT off on the SSO tab so that only people assigned in Entra get accounts. Turning JIT off does not affect existing accounts.

***

## The SCIM token

* The token belongs to your organization, not to the admin who generated it. It keeps working if that admin leaves.
* It does not expire.
* **Rotate token** issues a new one. The previous token keeps working for **24 hours** so you can update Entra without a gap; **Revoke previous token** ends that early.
* Turning SCIM off in the SCIM tab stops all provisioning calls immediately. Existing accounts are not changed.

***

## Troubleshooting

| What you see | What to do |
| - | - |
| Provision on demand says the user is skipped because they are "not active in the source system" | Their Entra account is disabled. Enable it, or leave them unprovisioned. |
| Provision on demand fails because `userName` is missing | The user has no **mail** value in Entra. Add it, or check the `userName` mapping. |
| A person already had a Vibranium Labs account but a second one was not created | Expected: accounts are matched by email and linked. |
| "Changing userName is not supported" in the provisioning logs | The person's email changed in Entra. See **Change their email** under What happens in Vibranium Labs. |
| "Group provisioning is not supported" in the provisioning logs | Group provisioning is still on. Turn off **Provision Microsoft Entra ID Groups** (Part 3). The people in the group are provisioned either way. |


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