# SCIM Provisioning with Microsoft Entra ID

[Microsoft Entra ID](https://www.microsoft.com/en-us/security/business/microsoft-entra) can provision users into API7 Gateway by using SCIM (System for Cross-domain Identity Management).

This guide walks you through configuring SCIM provisioning between Microsoft Entra ID and the API7 Dashboard.

## Prerequisites[​](#prerequisites "Direct link to Prerequisites")

Before you begin, ensure you have:

* API7 Gateway is installed and the Dashboard is accessible.
* You have a Microsoft Entra ID tenant with administrative privileges.
* You have a user account in API7 Gateway with permission to manage organization settings.

## Step 1: Create a Non-Gallery Enterprise Application[​](#step-1-create-a-non-gallery-enterprise-application "Direct link to Step 1: Create a Non-Gallery Enterprise Application")

1. Sign in to the Microsoft Entra admin center.
2. Go to **Enterprise applications** -> **New application**.
3. Click **Create your own application**.
4. Enter an application name.
5. Select **Integrate any other application you don't find in the gallery (Non-gallery)**.
6. Click **Create**.

## Step 2: Enable SCIM in API7 Gateway[​](#step-2-enable-scim-in-api7-gateway "Direct link to Step 2: Enable SCIM in API7 Gateway")

1. Log in to the API7 Dashboard with an administrative account.
2. Go to **Organization** -> **Settings**.
3. Enable **SCIM Provisioning**.
4. Copy the **API7 SCIM Endpoint URL** and **SCIM Token**.

## Step 3: Configure Provisioning in Microsoft Entra ID[​](#step-3-configure-provisioning-in-microsoft-entra-id "Direct link to Step 3: Configure Provisioning in Microsoft Entra ID")

1. Open the enterprise application you created.
2. Go to **Provisioning**.
3. Change **Provisioning Mode** to **Automatic**.
4. In **Authentication Method**, keep **Bearer Authentication** selected.
5. Set **Tenant URL** to the SCIM endpoint copied from API7 Gateway.
6. Set **Secret Token** to the SCIM token copied from API7 Gateway.
7. Click **Test Connection**.
8. Confirm the success message: **The supplied credentials are authorized to enable provisioning**.
9. Click **Save**.

![Microsoft Entra provisioning page](https://static.api7.ai/uploads/2026/05/07/Ze9AtaF7_pw-entra-provisioning.png)

## Step 4: Update Provisioning Settings[​](#step-4-update-provisioning-settings "Direct link to Step 4: Update Provisioning Settings")

1. In the same **Provisioning** page, expand **Settings**.
2. Set **Scope** to **Sync all users and groups**.
3. Click **Save**.

Using **Sync all users and groups** avoids the Entra entitlement check that can otherwise prevent on-demand provisioning from reaching the SCIM create step.

## Step 5: Review Default Mappings[​](#step-5-review-default-mappings "Direct link to Step 5: Review Default Mappings")

API7 Gateway supports provisioning SCIM User resources. Configure the mappings before enabling provisioning:

1. Under **Mappings**, keep **Provision Microsoft Entra ID Users** enabled.
2. Open **Provision Microsoft Entra ID Groups**, set **Enabled** to **No**, and save the mapping. API7 Gateway does not provide a SCIM Group resource.

## Step 6: Assign Users or Groups[​](#step-6-assign-users-or-groups "Direct link to Step 6: Assign Users or Groups")

1. Go to **Users and groups** in the enterprise application.
2. Click **Add user/group**.
3. Select the users, or source groups containing those users.
4. Click **Assign**.
5. Return to **Provisioning**, set **Provisioning Status** to **On**, and save.

Assigning a source group does not provision a SCIM Group resource in API7 Gateway.

![Microsoft Entra users and groups](https://static.api7.ai/uploads/2026/05/07/QDh2S76P_pw-entra-users-groups-crop-6754885fd6df74af158c47efa8037324.png)

## Step 7: Validate Provisioning Behavior[​](#step-7-validate-provisioning-behavior "Direct link to Step 7: Validate Provisioning Behavior")

1. Return to **Provisioning**.

2. Open **Provision on demand**.

3. Search for an assigned user and run an on-demand provisioning attempt.

4. Confirm the following steps succeed:

   * **Import user**
   * **Determine if user is in scope**
   * **Match user between source and target system**
   * **Perform action**

In the validated flow, Microsoft Entra ID successfully created the user in the target application. The result pane showed:

* **Perform action**: `Success`
* **Result**: `User '<userPrincipalName>' was created in customappsso`

## Step 8: Verify the Provisioned User in API7 Gateway[​](#step-8-verify-the-provisioned-user-in-api7-gateway "Direct link to Step 8: Verify the Provisioned User in API7 Gateway")

1. Return to the API7 Dashboard.
2. Go to **Organization** -> **Users**.
3. Confirm that the user provisioned from Microsoft Entra ID appears in the user list.

![Verify users in Dashboard](https://static.api7.ai/uploads/2026/01/21/yHR5bX0B_okta-scim-17-dashboard-check-users.png)

SCIM provisions the user accounts, but role assignments are still governed by API7 Gateway RBAC. If you also configure Dashboard SSO role mapping, user roles can be refreshed during login based on your SSO mapping rules.

If you also configure Dashboard SSO, provisioned users can be managed through Microsoft Entra ID while authenticating through your selected login option.

## Next Steps[​](#next-steps "Direct link to Next Steps")

* [SCIM Provisioning for Dashboard](https://docs.api7.ai/api7-gateway/security-and-compliance/authenticate/scim.md)
* [SSO for Dashboard](https://docs.api7.ai/api7-gateway/security-and-compliance/sso-dashboard.md)
* [Role-Based Access Control](https://docs.api7.ai/api7-gateway/security-and-compliance/role-based-access-control.md)
