---
updatedAt: 2026-09-16T16:50:16.000Z
agentTools:
  projectIndex: https://developer.alloy.com/public/llms.txt
---

# Azure

### 1. Enable SCIM

1. Open the application that is configured for SAML in the Entra Id admin dashboard. Then select **Provisioning** on the left sub-nav

   <Image src="https://files.readme.io/fec9d7c-1.png" alt="Screenshot 2024-03-27 at 3.39.31 PM.png" align="center" />

<br />

2. If this is the first time Provisioning is being configured, an informational screen will be presented. Select **“Connect your application”.&#x20;**&#x69;f this is not the first time configuring Provisioning, select **"Connectivity".**

<Image src="https://files.readme.io/cdc044539093d5db9f706162065e56acacc8583fc7a2238c44a08d843b3ee97c-Screenshot_2026-09-16_at_12.08.13_PM.png" alt="Screenshot 2024-03-27 at 3.40.49 PM.png" align="center" />

3. On the Connectivity page, enter the following values:

   * **Select authentication method**: `Bearer authentication`
   * **Tenant URL**: `https://<your-api-domain>/scim/v2`
     * Your API domain is similar to your Alloy application domain, but uses api instead of app.

       For example:

       * Application domain: scim-demo.**app**.alloy.com&#x20;

       * API domain: scim-demo.**api**.alloy.com

       * Tenant URL: <https://scim-demo.api.alloy.com/scim/v2>

   - **Secret Token**: `<base64_encode(alloy_api_token:alloy_api_secret)>`&#x20;
     * You can create your `alloy_api_token` and `alloy_api_secret` in the Alloy dashboard under **Settings > API Keys**.&#x20;

       ![](https://files.readme.io/eff380c8eb538f03f972947a61df92134bde02dce4b70a3354e40d1ca58a592d-Screenshot_2026-09-16_at_12.24.11_PM.png)
     * To create the **Secret Token**, Base64-encode the API token and secret in the following format:

       alloy\_api\_token:alloy\_api\_secret

       For example, you can run the following command in your browser's developer console:

       `btoa("alloy_api_token:alloy_api_secret")`

       ![](https://files.readme.io/09b74c5023738a1aae5b4937392b67987e43aa2e828909fc433e567132a41aa8-Screenshot_2026-03-18_at_11.12.35AM.png)

       Enter only the resulting Base64-encoded value in the **Secret Token** field. Do not add a prefix such as `Bearer`.

       For more information, see the [Alloy authentication guide](https://developer.alloy.com/public/docs/authentication-guide#:~:text=base64_encode\(workflow_token%3Aworkflow_secret\)-,OAuth%202.0,-To%20authorize%20once). Alloy currently supports only Bearer authentication for SCIM.
   - Select Test Connection. After Microsoft Entra ID successfully connects to Alloy, select Save.

   ![](https://files.readme.io/69d654ec0039a0416f6a34b8f551a449f7820596e9afeb47d5bf672d8347ccfc-Screenshot_2026-09-16_at_12.29.09_PM.png)

4. Once the saving process is complete, scroll down as the toggle header **Mappings** should now be visible. Select **Provisioning Microsoft Entra ID Users.**

<Image src="https://files.readme.io/30756b0-5.png" alt="Screenshot 2024-03-29 at 5.31.03 AM.png" align="center" />

<br />

5. Modify the Users **Attribute Mapping** to mirror the below image then select **Save**. That’s it! SCIM Provisioning is now configured. (`phoneNumbers[type eq "mobile"].value`is optional)

   <Image src="https://files.readme.io/2f3ef38-Screenshot_2024-07-10_at_4.48.54_PM.png" alt="Screenshot 2024-03-29 at 5.31.03 AM.png" align="center" />

<br />

### 2. Assign Users to Alloy app.

1. Open the application that is configured for SAML in the Entra Id admin dashboard and select **Assign users and groups** or **select Users and Groups** on the left sub nav.

   <Image src="https://files.readme.io/8d46c0d-1.png" alt="Screenshot 2024-03-29 at 6.16.56 AM.png" align="center" />

2. The application may already contain assigned users. To assign a user, select “**Add user/group”.** A modal should display. Select **“None Selected”** to begin selecting users to assign.

   <Image src="https://files.readme.io/54f0619-2.png" alt="Screenshot 2024-03-29 at 6.19.35 AM.png" align="center" />

   <Image src="https://files.readme.io/684d832-3.png" alt="Screenshot 2024-03-29 at 6.24.13 AM.png" align="center" />

3. Click **“Select”** then **“Assign”** to complete the process.

   <Image src="https://files.readme.io/d68ab19-4.png" alt="Screenshot 2024-03-29 at 6.30.48 AM.png" align="center" />

   <Image src="https://files.readme.io/0d89d37-5.png" alt="Screenshot 2024-03-29 at 6.32.33 AM.png" align="center" />

4. Navigate to **“Provisioning”** on the left sub-nav.

   <Image src="https://files.readme.io/c7204fe-6.png" alt="Screenshot 2024-03-29 at 6.39.36 AM.png" align="center" />

5. The user has been assigned to the application on Entra Id. Entra Id updates Alloy with these changes on a 40 mins fixed interval basis. Due to the secret token’s short lifespan (1hr), its recommended to use the “\*\*Provision on demand “\*\*option when attempting to synchronize a small number users or groups.

   <Image src="https://files.readme.io/97e73b4-7.png" alt="Screenshot 2024-03-29 at 6.40.20 AM.png" align="center" />

6. **Provisioning on Demand**. After clicking **Provision**, any changes made to the users active status, first name, last name, or phone number will propagate to Alloy.

<Image src="https://files.readme.io/97e73b4-7.png" alt="Screenshot 2024-03-29 at 6.40.20 AM.png" align="center" />

### 3. Assign Groups to Alloy app

1. Open the application that is configured for SAML in the Entra Id admin dashboard and select **Assign users and groups** or **select Users and Groups** on the left sub nav.

   <Image src="https://files.readme.io/97959df-1.png" alt="Screenshot 2024-03-29 at 6.16.56 AM.png" align="center" />

2. To assign a Group, select “**Add user/group”.** A modal should display. Select **“None Selected”** to begin selecting groups to assign.

   *Please note:💡: To assign a group to an existing role, make sure the group name&#x20;****exactly matches****&#x20;the role within Alloy. Any users assigned to that group will be provisioned into the corresponding Alloy role.*

   <Image src="https://files.readme.io/cc56f6d-2.png" alt="Screenshot 2024-03-29 at 6.19.35 AM.png" align="center" />

   <Image src="https://files.readme.io/8384a42-3.png" alt="image (3).png" align="center" />

3. Click **“Select”** then **“Assign”** to complete the process.

   <Image src="https://files.readme.io/fcd8886-4.png" alt="image (4).png" align="center" />

4. Navigate to **“Provisioning”** on the left sub-nav.

   <Image src="https://files.readme.io/db9e394-5.png" alt="Screenshot 2024-03-29 at 6.39.36 AM.png" align="center" />

5. The group has been assigned to the application on Entra Id. Entra Id updates Alloy with these changes on a 40-minute fixed interval basis. Due to the secret token’s short lifespan (1hr), it's recommended to use the “\*\*Provision on demand “\*\*option when attempting to synchronize a small number of users or groups.

   <Image src="https://files.readme.io/3dde998-6.png" alt="Screenshot 2024-03-29 at 6.40.20 AM.png" align="center" />

6. **Provisioning on Demand**. After clicking **Provision**, any changes made to the group's name will propagate to Alloy.

   <Image src="https://files.readme.io/40aa645-7.png" alt="Screenshot 2024-03-29 at 6.40.20 AM.png" align="center" />

   <Image src="https://files.readme.io/899051a-8.png" alt="Screenshot 2024-03-29 at 6.40.20 AM.png" align="center" />

   <Image src="https://files.readme.io/079c041-9.png" alt="Screenshot 2024-03-29 at 6.40.20 AM.png" align="center" />

   <Image src="https://files.readme.io/80cc0f3-10.png" alt="Screenshot 2024-03-29 at 6.40.20 AM.png" align="center" />

<br />

### 4. Verify the User and Groups created on the Alloy app

1. Login to the Alloy app. go to the settings, nav to Agents and Groups page. verify the user and group are added to the Alloy app

   <Image src="https://files.readme.io/5c1127b-11.png" alt="Screenshot 2024-03-29 at 6.40.20 AM.png" align="center" />

   <Image src="https://files.readme.io/163734c-12.png" alt="Screenshot 2024-03-29 at 6.40.20 AM.png" align="center" />