LEXolution Permissions for Exchange Online in Microsoft Entra
This guide describes how an administrator must configure Microsoft Entra
so that LEXolution can access calendars and user profiles via the new
Exchange integration. These steps apply regardless of whether a new app
registration is created or the existing app registration from the previous
SIS Exchange integration is reused.
Prerequisites
- The administrator must have a Microsoft 365 account with sufficient permissions in the Microsoft Entra Admin Center (at minimum, Application Administrator; Global Administrator may be required for admin consent).
- The administrator must have write access to the configuration file
STP.Kms.Server.exe.configof theLEXolutionserver service. - The administrator should have a password manager or another secure location ready for storing the client secret.
Step-by-Step Guide
Sign in to the Microsoft Entra Admin Center
First, sign in at https://entra.microsoft.com using your Microsoft 365 administrator account.
If you are reusing the existing app registration from the previous SIS Exchange integration, you can skip ahead to the "Add API Permissions" step.
Create a New App Registration or Use an Existing One
Navigate to Entra ID, then to
App registrations, and create a
New registration.
Enter a meaningful name, e.g.
LEXolution.
All other settings (supported account types, redirect URI) can be left at their default values.
Click Register when done.
After registration, Entra displays a summary of the new app registration,
including the Application (client) ID
and Directory (tenant) ID. These values will be needed later
for configuring LEXolution.
Create a Client Secret
In the app registration, open the
Certificates & secrets menu item and, under the
Client secrets tab, click
New client secret.
Enter a description and set an expiration period. The maximum is 2 years.
Click Add when done.
🛈 Note
Make sure to create a new secret before the current one expires, otherwise the connection will stop working.
Save the Client Secret Value
After creation, Entra displays the client secret value once in the
Value column. This value will be needed later for
configuring LEXolution.
🛈 Note
Use the
Value, not theSecret ID.The value is only visible immediately after creation and cannot be retrieved again afterward. Save it to a password manager right away.
Add API Permissions for Microsoft Graph
This step is also required if you are reusing the existing app registration from the SIS Exchange integration.
In the app registration, open the
API permissions menu item, click
Add a permission, and under
Microsoft APIs select Microsoft Graph.
In the next dialog, select Application permissions
(not Delegated permissions), since
LEXolution runs as a background service without a signed-in user.
Search for and enable the following two permissions, then click
Add permissions:
| Permission | Type | Purpose |
|---|---|---|
User.ReadBasic.All |
Application permission | Read the basic profiles of all users (for employee assignment). |
Calendars.ReadWrite |
Application permission | Read and write the calendars of all mailboxes (for appointments). |
Grant Admin Consent
In the API permissions overview, the administrator must click
Grant admin consent for [tenant] and confirm the dialog.
The administrator should verify that both permissions show a green checkmark
with the status Granted for [tenant].
Enter the Values in the LEXolution Configuration File
Enter the values into the configuration file
STP.Kms.Server.exe.config as follows:
| Key | Value | Source / Note |
|---|---|---|
Ms365IsEnabled |
true | Enables the MS 365 integration. |
Ms365TenantId |
Directory (tenant) ID of the app registration | From the app registration summary. |
Ms365ClientId |
Application (client) ID of the app registration | From the app registration summary. |
Ms365IsConfidentialClient |
true | Marks the KMS server as a confidential client. |
Ms365ClientSecret |
Client secret value | Use the Value, not the Secret ID. Only visible immediately after creation. |
🛈 Note
The configuration file can be encrypted.
Restart the LEXolution KMS Server
The LEXolution server service
(STP.Kms.Server.exe) must be restarted so that it can
reconnect to Microsoft 365 using the new credentials and permissions.
Test the Connection
In LEXolution, users can open the Employees
view under the Firm section in the navigation.
In the Exchange Calendar ribbon group, use the
Test mailboxes button to check the connection for the selected employees.
This article has been automatically translated by an AI and may therefore contain errors.
Related to