---
title: Entra ID
slug: entra-id
createdAt: 2025-10-15T03:12:58.449Z
---

# Overview

Your tenant can be configured to allow users to authenticate using their corporate Microsoft Entra ID credentials. This page will walk you through the configuration process.

***

# Create an Authorization Source

## Create App Registration

1. Log in to your Microsoft Entra admin portal.
2. From the left menu, click **App registrations**
3. From the top menu, Click **+ New registration**
4. Create a **Name** for your application (e.g. KorGrid SSO)
5. **Supported Account types**, select **Single tenant only**
6. **Redirect URI**, select **Web**
7. Enter the **URL** for your UI login
   (e.g., `https://contoso.west1.korgrid.com`)
8. Click **Register**

![Create App Registration](https://app.archbee.com/api/optimize/Oxlau0hCkAJAC6LaZfq2C/RzQTqjSKggp6NkBI8jqiX_image.png)

## Create Client Secret

1. From the left menu of the app registration you just created, click **Certificates & secrets**
2. From the top menu, Click **+ New client secret**
3. Enter a **Description** (e.g. KorGrid Secret)
4. **Expires**, select your desired expiration date
5. Click **Add**

![Create Client Secret](https://app.archbee.com/api/optimize/Oxlau0hCkAJAC6LaZfq2C/rHFSIkdpyd3j4uiSot1Ot_screenshot-2025-10-15-162034.png)

***

Save the following information from Microsoft Entra:

- **Tenant ID**
  - Overview -> Basic Information -> **Tenant ID**
- **Client ID**
  - App registrations -> All applications -> *KorGrid SSO* -> **Application (client) ID**
- **Client Secret**
  - App registrations -> All applications -> *KorGrid SSO* -> Certificates & secrets -> Client secrets -> *KorGrid Secret* -> **Value**

***

# Configure UI

1. From the **Top Menu**, click **System -> Auth Sources**
2. From the left menu, click **New**
3. Enter a **Name** for the source (e.g. Entra ID). This name will appear on the sign-in button on the login page
4. In the **Driver** field, select **Entra ID**
5. Enter the **Tenant ID** obtained from the previous section
6. The **Redirect URI** should be the URL of your management UI (e.g. `https://contoso.west1.korgrid.com`)
7. Enter **Endpoint URL for user to logout session token**
   - Set to **None** to disable redirecting for logout.
   - Otherwise, set to the **Entra logout URL**
     (e.g. `https://login.microsoft.com/<tenant-id>/oauth2/v2.0/logout`)
8. **Scope** should typically be left at the default value. (`openid profile email`)
9. **Group Scope** should be set to **groups** if you wish to auto-create users based on group membership.
10. Enter the **Client ID** obtained from the previous section
11. Enter the **Client Secret** obtained from the previous section
12. **Remote User Fields** defines the list of fields used to initially find the Entra ID user. This field is auto populated with (`sub,preferred_username,email nickname`). This default list is typically sufficient for most implementations.
13. To carry over group membership from Entra ID to KorGrid, check the **Update Group Membership** checkbox. Groups can be created manually using instructions in the next section.

<font color="#2166ae">**User Auto-Creation Features (optional)\:**</font>

Users can be auto created upon initial login to the UI. This can be enabled for all Entra ID users or limited to users in a specified Microsoft 365 group.

- **Auto-Create Users** - If all users should be auto-created, enter **\***.
- **Auto-Create Users in Group** - To only auto-create users that are members of a specified group enter the groups **Object ID**.

:::hint{type="info"}
* Microsoft 365 groups must first be created in the UI prior to users being auto created.
* Multiple group object ID's can be entered using the format: (ObjectID)|(ObjectID)|(ObjectID)
:::

<font color="#2166ae">**Options (recommended)\:**</font>

- **Update Remote User** - once the user is located in Entra ID, update the KorGrid user *Remote Username* field to the corresponding Entra unique ID.

:::hint{type="success"}
Enabling the *Update Remote User* option will allow the system to store the user's unique object ID in the UI's user record so the unique identifier can subsequently be used for finding the Entra ID user; this is typically recommended since fields such as email address can sometimes change.
:::

- **Update User Email Address** - Update user email address to match email address within Entra ID.
- **Update User Display Name** - Update user display name to match display name within Entra ID.
- **Update Group Membership&#x20;**- Update the groups that a user is a member of. (A Group Scope is required for this to function.)

![Create Authorization Source](https://app.archbee.com/api/optimize/Oxlau0hCkAJAC6LaZfq2C/RjG0vuDiKKIeG9ELhUZFm_auth-source.jpg)

***

# Add Microsoft 365 Groups to UI

Interfacing with Microsoft 365 groups requires a token on the Entra ID app registration and creation of groups within the UI.

## Set up a Token Configuration in Entra ID

1. Navigate to the **App registration** page for the application created in the previous section
2. Click on **Token Configuration** on the left menu
3. Click **+ Add groups claim**
4. Select all the **group types** boxes
5. Set the **ID**, **Access**, and **SAML** tokens properties to **sAMAccountName**
6. Click **Add**

![Edit Groups Claim](https://app.archbee.com/api/optimize/Oxlau0hCkAJAC6LaZfq2C/0KlZN77MVbZNFsKE4fn-3_groups-claim.jpg)



## Add Microsoft 365 Groups

1. From the UI's Main Dashboard, click **System** from the left menu
2. From the left menu, click **Groups**
3. From the left menu, click **New**
4. Enter the group **Name** to match the group name from Microsoft 365
5. (Optional), You can specify an **Email** for the group. This email address will be used for sending subscription alerts and/or reports assigned to the group.
6. Set the **Identifier** to the **Object ID** of the Microsoft 365 group
7. Click **Submit**

***

# Manually Add Users from Entra ID

1. From the **Top Menu**, click **System -> Users**
2. From the left menu, click **New**
   - **Authorization Source -&#x20;**&#x53;elect **Entra ID** as the source from the dropdown list.
   - **Username -&#x20;**&#x75;nique name; typically recommended to use the Entra ID user principal name.
   - **Remote Username -&#x20;**&#x72;ecommended to use the user's Entra ID object ID.
   - **Display Name -&#x20;**(optional) If **Update User Display Name** is enabled on the Entra ID auth source, the display name will automatically synchronize from Entra ID.
   - **Email Address -&#x20;**(optional) If **Update User Email Address** is enabled on the Entra ID auth source, the email address will automatically synchronize from Entra ID.
3. Click **Submit**

