---
updatedAt: 2026-08-13T05:36:55.000Z
---

# SCIM Provisioning with Azure (Entra)

This article describes how to provision users with an Azure Active Directory (AAD) custom System for Cross-domain Identity Management (SCIM), an open standard that allows for automated user provisioning.

## Prerequisites

Before you begin, you must create an [Azure IdP SSO Integration](https://docs.axissecurity.com/axis-application-access-cloud/docs/azure-idp-integration).

## Step 1: Generating an Endpoint and SCIM Token

To synchronize users and groups provisioned for the Axis Security application, Azure requires two pieces of information:

* An Endpoint to which AAD makes requests.
* A Bearer token for AAD to authenticate its endpoint requests.

**To Generate an Endpoint and a SCIM Bearer Token:**

1. In the **Management Console**, go to the  **Settings**-> **Identity Providers**  screen.
2. Hover over the **Azure Identity Provider** and select **edit**. 
3. Navigate to **Advanced Settings**.

<Image src="https://files.readme.io/88ca2c3-Screenshot_2023-10-19_at_16.09.06.png" align="center" width="50% " border={true} />

4. Go to **User Auto-Provisioning (SCIM)**.
5. Click **Generate new token**.

<Image src="https://files.readme.io/8ac3898-Screenshot_2023-10-19_at_16.42.50.png" align="center" width="50% " border={true} />

6. Copy the **SCIM Service Provider Endpoint** and **SCIM Provisioning Token** and paste them into a text editor. You will need them for Step 3: Configuring the Integration.

<Image src="https://files.readme.io/1a54398-Screenshot_2023-10-19_at_16.43.15.png" align="center" width="50% " border={true} />

7. Click on **Ok**, and then click on **Submit**.
8. Click on **Commit Changes**.

<Image src="https://files.readme.io/4444ad9-Screenshot_2023-10-19_at_16.46.58.png" align="center" width="50% " border={true} />

## Step 2: Configuring the Integration

<Callout icon="📘" theme="info">
  Since you have an existing SSO application, you can use it to configure the SCIM provisioning (Instead of "SCIM Test" in the screenshots).
</Callout>

1. In Azure, go to the **navigation menu**.  
2. In the **Manage** section, select **Provisioning**.

![](https://files.readme.io/345196e-Azure_5_provisioning.png "Azure 5 provisioning.png")

3. Click the **Get Started** button.

![](https://files.readme.io/e2baa5b-Azure_6_get_started.png "Azure 6 get started.png")

4. Under **Provisioning Mode**, select **Automatic**.
5. Under **Admin Credentials** enter the **Tenant URL** and **Secret Token** obtained from the Axis SCIM configuration (step 1):
   * Paste the **SCIM Service Provider Endpoint** in the **Tenant URL** field. 
   * Paste the **SCIM Provisioning Token** in the **Secret Token** field. 

![](https://files.readme.io/f677d04-Azure_7_provisioning_mode.png "Azure 7 provisioning mode.png")

6. Click **Save**.
7. Click **Test Connection** to confirm that the connection is set up correctly.

## Step 3: Setting and Enabling Attribute Mappings

**To set and enable attribute mappings in Azure:**

1. Expand the **Mappings** section.

![](https://files.readme.io/c90a9a6-Azure_8_mapping_1.png "Azure 8 mapping 1.png")

2. In the **Attribute Mappings** section, enable **group** and **user** attribute mappings. 

**To allow external users to use the Original UPN:**

<Callout icon="📘" theme="info">
  Adjusting the UPN mapping to the original UPN resolves the mismatch by using the invited tenant's UPN instead of the home tenant's. This change does not impact native users of the tenant.
</Callout>

3. Click on: **userPrincipalName**.

<Image src="https://files.readme.io/d31be2f-MicrosoftTeams-image_27.png" align="center" border={true} />

4. Click on the **Source attribute** drop down list and pick : **OriginalUserPrincipalName**, and click **Ok**.

<Image src="https://files.readme.io/1563c55-MicrosoftTeams-image_28.png" align="center" width="70% " border={true} />

<Callout icon="🚧" theme="warn">
  Changing this value after initial deployment will cause a re-provisioning of all users to update the new value. Best performed in maintenance window
</Callout>

**To complete the attribute mapping:**

5. Make sure the user mapping **only** maps the attributes below, otherwise you will not be able to complete the provisioning:
   1. Mail
   2. givenName
   3. Department
   4. Surname
   5. switch(deleted)
   6. originalUserPrincipalName
   7. displayName
      <Callout icon="📘" theme="info">
        ### Note

        Failure to follow the mappings above **exactly** may result in undesired behavior.
      </Callout>

**Note:** All fields are required except **Department** which is optional.

<Image src="https://files.readme.io/20f36ce-MicrosoftTeams-image_29.png" align="center" border={true} />

### Step 4: Disable Nested Groups Provisioning

1. Go to **Your application-> Provisioning-> Edit Provisioning.**

![](https://files.readme.io/ea35f48-edit_provisioning.png "edit provisioning.png")

2. Go to **Groups Mapping-> Provision Azure Active Directory Groups**.

<Image src="https://files.readme.io/a06021e-MicrosoftTeams-image_30.png" align="center" border={true} />

3. Select **Show advanced options** and **Edit attribute list for customappsso**.

<Image src="https://files.readme.io/2459109-MicrosoftTeams-image_31.png" align="center" border={true} />

4. In **Members-> Reference** *deselect* the Group scheme as seen below to prevent the provision of nested groups.

<Image src="https://files.readme.io/3743ad9-MicrosoftTeams-image_32.png" align="center" border={true} />

5. Click **Save**. 

## Step 4: Assigning users and groups to the application

To sync users and groups, you must assign them to the AAD SCIM application. <br />**To assign users and groups to the AAD SCIM application:**

1. Go to **Manage** in the navigation menu.
2. Select **Users and groups**. 

![](https://files.readme.io/e02c70e-Azure_9_users_and_groups.png "Azure 9 users and groups.png")

3. Select **Add user/group**

![](https://files.readme.io/0c06a25-Azure_10_add_user_group.png "Azure 10 add user group.png")

4. Under **Users and Groups**, select **None selected**.

![](https://files.readme.io/0465d6d-Azure_11_add_assignment.png "Azure 11 add assignment.png")

5. In the **Users and Groups** window, select the users and groups you want to add to the SCIM application. 
6. Click **Select**. 
7. Select **Assign** at the bottom of the screen.
8. In the **Users and groups** area, add the selected users and groups to the SCIM Application.

![](https://files.readme.io/12c14a1-Azure_12_assign.png "Azure 12 assign.png")

## Step 5: Enabling provisioning for the SCIM application

1. Navigate to **Provisioning** page in the side menu on the left.
2. Select **Provisioning** in the side menu on the left.
3. In the **Settings** section:
   1. Set **Scope** to **Sync only assigned users and groups**
   2. Set **Provisioning Status** to **On**.
   3. Click on **Save**.

![](https://files.readme.io/6968e3a-Azure_13_turning_on.png "Azure 13 turning on.png")

## Step 6: Validate SCIM

In the Axis Management Console, go to **Settings** -> **Provisioned Users**.

<Image src="https://files.readme.io/a4ae768-Screenshot_2023-10-19_at_16.00.02.png" align="center" width="50% " border={true} />

You should see the users and groups provisioned from your Azure account.

## Revoking the Auto-Provisioning Token

**To revoke an Auto-Provisioning token:**

1. Go to **Settings**  -> **Identity Providers**  
2. Hover over the relevant Azure AD IdP and click **Edit** .

The **Edit Azure Active Directory IdP** window appears.

1. Navigate to the **Advanced settings** section.
2. In the **User Auto-Provisioning (SCIM)** section, click **Revoke Auto-Provisioning Token**.

<Image src="https://files.readme.io/f0fda55-Screenshot_2023-10-19_at_16.48.17.png" align="center" width="50% " border={true} />