--- id: provision-with-microsoft-entra-id title: Provision with Microsoft Entra ID sidebar_label: Provision with Microsoft Entra ID description: Learn how to provision users in Sumo Logic with Microsoft Entra ID (formerly Azure Active Directory). slug: /help/docs/manage/security/scim/provision-with-microsoft-entra-id/ canonical: https://www.sumologic.com/help/docs/manage/security/scim/provision-with-microsoft-entra-id/ --- import useBaseUrl from '@docusaurus/useBaseUrl'; This article describes how to provision users in Sumo Logic with Microsoft Entra ID (formerly Azure Active Directory). ## Prerequisites ### Create an access key Create an [access key](/docs/manage/security/access-keys/). (We recommend using a service account to create the access key.) This access key will provide authorization to provision users from Microsoft Entra ID into Sumo Logic. When you create the access key, copy its access ID and access key values. You will enter these when you use [Base64 encoding](https://www.base64encode.org/) to Base64 encode `:` to generate a token. ## Configure provisioning with Microsoft Entra ID ### Step 1: Create the app 1. Log in to [Microsoft Azure](https://portal.azure.com/) as an administrator. 1. Navigate to Microsoft Entra ID. (You can use the search bar to locate it.) 1. Navigate to **Manage > Enterprise Applications**. 1. Click **New application**.
Create new application 1. Click **Create your own application**.
Create your own application 1. Enter a name for the app, select **Integrate any other application you don't find in the gallery (Non-gallery)**.
Name your application 1. Click **Create**. The app displays in Entra ID.
App in Entra ID ### Step 2: Set up single sign-on Follow the directions in [Configure Sumo as an Enterprise App in Azure AD](/docs/manage/security/saml/integrate-sumo-with-azure-ad/#configure-saml-in-sumo-logic) beginning with the step where you select **Set up single sign on**. Set up single sign on When you [configure SAML in Sumo Logic](/docs/manage/security/saml/integrate-sumo-with-azure-ad/#configure-saml-in-sumo-logic): * Select **Disable Requested Authentication Context**. * Do not select the **On Demand Provisioning** checkbox. You will set up provisioning later. ### Step 3: Add roles Create roles that the users will have in Sumo Logic (for example, `Analyst` and `Administrator`). 1. In the app, select **Manage > Users and groups**. 1. Select **application registration**.
Add users 1. Click **Create app role**.
Create app role 1. Create the role: 1. In **Display name**, enter the name to be displayed in the UI (for example, `Analyst`). 1. For **Allowed member types** select **Both**. 1. For **Value** enter the value of the role in Sumo Logic (for example, `Analyst`). 1. For **Description** enter a description of the role. 1. Click **Apply**.
Create app role dialog ### Step 4: Assign users to the app 1. In the app, select **Manage > Users and groups**. 1. Select **Add user/group**.
Add users 1. Under **Users**, click **None Selected**.
Add Assignment 1. From the list of available users, select users to add to the app and click **Select**. 1. Under **Select a role** click **None Selected**. 1. From the list of available roles, select a role (for example, **Analyst**). 1. Click **Assign**. ### Step 5: Set up provisioning 1. In the app select **Manage > Provisioning**.
Connect your application 1. For **Provisioning Mode**, select **Automatic**. 1. Enter **Admin Credentials**: 1. In **Tenant URL**, enter the [API endpoint for your deployment](/docs/api/about-apis/getting-started/#sumo-logic-endpoints-by-deployment-and-firewall-security) for the [SCIM User Management APIs](/docs/api/scim-user/) using the format `/v1/scim/`. For example, `https://api.sumologic.com/api/v1/scim/`. 1. For **Secret Token**, use [Base64 encoding](https://www.base64encode.org/) to encode `:` (see [Prerequisites](#prerequisites)). Enter the resulting value into the **Secret Token** field. 1. Click **Test Connection**. If successful, a message like this appears: **Testing connection to ``. The supplied credentials are authorized to enable provisioning**. 1. Set up mappings: 1. Select **Mappings** and **Provision Microsoft Entra Users**.
Provision mappings 1. Go to **Attribute Mapping**, select **Show advanced options**, and select **Edit attribute list for customappsso**. 1. For the **roles** attribute select **string** for the **Type**, and select the **Multi-Value?** checkbox to allow users to have multiple roles.
Advanced options for the roles attribute 1. Click **Save**. 1. At the bottom of the **Attribute Mapping** dialog, select **Add New Mapping**. 1. Fill out the **Edit Attribute** dialog: 1. For **Mapping type** select **Expression**. 1. For **Expression** enter `AppRoleAssignmentsComplex([appRoleAssignments])`. 1. For **Target attribute** select `roles`. 1. Click **OK**.
Edit attribute 1. On the **Attribute Mapping** dialog, delete all the attributes except: * userName * active * emails[type eq "work"].value * name.givenName * name.familyName * roles
Attribute mappings 1. Click **Save**. 1. Click the **Home > `` | Provisioning** link in the top left corner of the screen. This returns you to the **Provisioning** tab. 1. Test provisioning: 1. In the app, select **Manage > Provisioning**. 1. For **Provisioning Status** select **On** to enable provisioning. 1. Click **Save**.
Provisioning status 1. Select **Overview**. 1. Select **Provision on demand**.
Provision on demand 1. Users assigned the app will be provisioned into Sumo Logic. As long as the app's provisioning status is on, the app runs auto provisioning every 40 minutes. ### Step 6: Verify provisioning Users assigned to the app are provisioned into Sumo Logic. 1. Verify in Microsoft Entra ID: 1. In the app, select **Provisioning** and then select the **Monitoring** tab. 1. The tab should show provisioning status. Click **View Provisioning Logs** for details. 1. Verify in Sumo Logic: 1. Log in to the Sumo Logic instance that you linked to the provisioning app in [Step 2](#step-2-set-up-single-sign-on) when you provided the Assertion Consumer URL and entity ID. 1. [**New UI**](/docs/get-started/sumo-logic-ui). In the main Sumo Logic menu select **Administration**, and then under **Users and Roles** select **Users**. You can also click the **Go To...** menu at the top of the screen and select **Users**.
[**Classic UI**](/docs/get-started/sumo-logic-ui-classic). In the main Sumo Logic menu, select **Administration > Users and Roles > Users**. 1. Search for the users provisioned from Microsoft Entra ID. 1. You should see the users listed, and with the role given to them when you assigned them to the app in Microsoft Entra ID. ## Syncing between Microsoft Entra ID and Sumo Logic When you modify the name, email, or role of a user assigned the app in Microsoft Entra ID, the changes will be synced to the corresponding user in Sumo Logic. If you unassign a user from the app in Microsoft Entra ID, the corresponding user is deactivated in Sumo Logic. (If you later try to reassign that same user to the app, it will result in an error in Sumo Logic. You must delete the old user from Sumo Logic first so that the user can be provisioned once again from Microsoft Entra ID.)