The synchronization with Microsoft Entra synchronizes the following attributes: first name, last name, email address, login, department, manager, status (disabled), PreferredLanguage and Country. The synchronization works one-way only: from Microsoft Entra to 2LRN4 (not the other way around).
Please note:
- Azure import is the basic level, which allows departments to be changed in the future using all available options.
- CSV import is the next level, which restricts department changes made via Azure import.
- Administrator assignment is the highest level, which blocks changes via imports entirely. If a department is assigned by an administrator, it cannot be modified via imports.
Instructions
Step-by-step instructions to synchronize 2LRN4 with your Microsoft Entra ID (via the Azure Graph menu).
- You need at least a Microsoft Azure Premium P1 license.
- If you create new departments, you still need to enroll them in the appropriate categories and courses.
- Go to https://portal.azure.com/#home.
- Click Microsoft Entra ID.
-
Create a security group in Microsoft Entra containing all users who need access to 2LRN4.
- Navigate to Groups and select New Group.
- Enter the group name and properties.
- Add one test user to verify the connection later.
Preferably create separate groups per role (e.g. admin, manager, user). Start with one user and expand later.
- Return to Home and open More services.
- Select Identity from the left-hand menu.
- Open Enterprise applications and click New application.
-
Choose Create your own application, give the app a name, and select registration for Microsoft Entra ID.
- Select Multitenant (accounts in any organizational directory) and register the app (leave Redirect URI empty).
- Go to App registrations and open your newly created app.
- Open Certificates and secrets and create a New client secret.
- Copy the Secret value and store it securely (you will need it in 2LRN4).
- Copy the Application (client) ID.
- Add the required API permissions and grant Admin consent.
- Assign the previously created security group under Users and groups in the Enterprise application.
- Copy the Tenant ID from Microsoft Entra (you will need it in 2LRN4).
- Go to https://portal.2lrn4.com and open Azure Graph.
- Create a new Azure Graph configuration and enter the Tenant ID, Client ID and Client Secret.
- Test the synchronization via Users → Import from Azure AD.
- Warning: do not synchronize the admin group as “users”. This may lower permissions and lock you out.
Scheduling Azure AD synchronization
- Go to Azure Graph Schedules and create or edit a schedule.
- Create a separate schedule for each security group you want to synchronize (and per connection if you use multiple connections).
- Use the security group object ID as the Group ID, select the correct role and define the schedule.
Tip: schedule the admin group (customer/admin) last, for example 30 minutes after the other groups. This helps prevent and resolve permission conflicts.
Errors and solutions
| Error message | Possible solution |
|---|---|
| Invalid_client / unauthorized_client | Most likely the Secret ID was copied instead of the Secret value. Create a new client secret and use the secret value. |
| These users cannot be imported: invalid_client | Check whether the token (client secret) is still valid and whether the Group ID is correct. |
| Error 504 Gateway Time-out | Check whether the token is still valid and try again. |
| Azure client error | Verify that the correct Application permissions have been added and that admin consent has been granted. |
| Error 403: Action unauthorized | You may have locked yourself out by synchronizing the wrong group with the wrong role. Contact support and use scheduled synchronizations. |
| User(s) are not synchronized | Check that the user has a unique email address and is a member of the synchronized security group. |
| Disabled status is not synchronized | Verify that the user is disabled in AD, has a unique email address, and is a member of the security group. |
| Synchronization is not executed | After creating or modifying a schedule, it can take up to 24 hours before it runs. |
| Accounts are not removed after synchronization | This is not an error. This functionality is intentionally disabled to prevent mistakes. |
| Departments are not synchronized |
|