What is IdP provisioning?
IdP provisioning is a feature that automatically reflects user and group information from the Identity Provider (IdP) used within your company to LegalOn.
By integrating with Microsoft Entra ID, you can synchronize user registration, updates to names and email addresses, suspension/reactivation of use, and changes in group membership to LegalOn. This reduces administrative workload associated with onboarding, transfers, and off-boarding, and prevents oversight in revoking access.
The integration uses SCIM 2.0, a standard protocol for exchanging user and group information. Synchronization flows one-way from Microsoft Entra ID to LegalOn.
⚠️ Note:
Account creation triggered by initial user login (JIT provisioning) is not supported.
Difference from Single Sign-On (SSO)
IdP provisioning is a feature for managing accounts and groups. SSO is a feature for logging into LegalOn using Entra ID authentication.
To use SSO, set it up separately. See How to Set Up Single Sign-On (SSO) for setup steps.
What you can sync
Target | What syncs |
User Registration | Creates a new target user in LegalOn or links to an existing user with the same email address. |
User Information | Updates display name and email address. |
Usage Status | Suspends or reactivates accounts. |
Group Registration | Creates a new group or links to an existing group with the same name. |
Group Information | Updates group names. |
Group Members | Adds or removes direct group members. |
Group Deletion | When a group itself is deleted in Microsoft Entra ID, the linked LegalOn group is deleted. |
⚠️ Notes:
LegalOn doesn't send invitation emails when new users are created through sync. If you haven't set up SSO, users can set their password by clicking [Forgot password?] on the sign-in screen. For detailed steps, see Change or reset your password.
User types, roles, IT Administrator and Module Administrator permissions, and group descriptions aren’t synced. Set these directly in LegalOn.
Requirements
LegalOn requirements:
Microsoft Entra ID requirements:
To assign users to an application using groups, Microsoft Entra ID P1 or P2 is required. For details, please check the Microsoft Official Help "Assign users and groups". * If you wish to apply for this option, please contact your sales representative. |
Before you begin
Screens and labels in the Microsoft Entra admin center may vary over time.
You can use scoping filters to limit who gets synced. When expanding your sync scope, always keep existing users included, and add several hundred users at a time after confirming completion and lack of errors in each sync cycle. For setup instructions, check the Microsoft Official Help "Define scoping filters".
Determine the users and groups to synchronize. When linking to existing users, verify email addresses registered in LegalOn. When linking to existing groups, verify group names, members, and sharing settings of the matching groups.
Test sync with a small number of users first. Keep previously synced users in the app assignment so their accounts aren't accidentally suspended. After the initial sync completes, Microsoft Entra ID automatically syncs target users and groups every 40 minutes.
Integrating with Microsoft Entra ID
Obtain the tenant URL and secret token in LegalOn
Obtain the tenant URL and secret token required for connecting with Microsoft Entra ID in LegalOn, and enable IdP provisioning.
1. Open [Admin settings].
2. Open [Security] → [Provisioning].
3. Copy the displayed Tenant URL.
4. Click [Generate token] (or [Regenerate token] if updating an existing token). In [Create secret token], choose an [Expiration] period, then click [Create].
5. Copy the secret token immediately after it is created. The full token is shown only once; the provisioning screen masks it afterward.
6. Turn on [Enable automatic sync with Microsoft Entra ID] in LegalOn.
⚠️ Note:
You can only view the full secret token once when it's created. Make sure to copy and store it securely before closing this window.
Create and connect an app in Microsoft Entra ID
Create an integration application in Microsoft Entra ID, register the LegalOn URL and token, and test the connection.
1. Sign in to the Microsoft Entra admin center.
2. Open [Entra ID] → [Enterprise apps].
3. Click [New application] → [Create your own application].
4. Enter a manageable name in the application name field.
5. Select [Integrate any other application you don't find in the gallery (Non-gallery)] and click [Create].
6. Open [Provisioning] from the app menu. For an existing configuration, this opens the provisioning [Overview].
7. Change [Provisioning Mode] to [Automatic].
8. Under [Admin Credentials], click [Click here to switch to the new admin credentials experience.]
9. In the connection setup screen, enter the URL copied from LegalOn into [Tenant URL]. For an existing configuration, open [Connectivity].
10. Enter the token issued by LegalOn into [Secret token].
11. Click [Test connection] and confirm that the connection succeeds. Click [Create] for a new configuration, or [Save] when updating an existing configuration.
💡 Info:
Do not use your LegalOn sign-in URL or SSO configuration URL here.
Testing the connection does not start synchronization.
Assign users and groups to the app
Assign users or groups to the application to set the scope of provisioning.
When assigning a group, check the number of directly assigned members in that group.
1. Open [Users and groups] in the app.
2. Click [Add user/group].
3. Select users or groups and assign them.
4. Open provisioning [Overview] → [Properties]. Confirm that [Provisioning scope] is [Sync only assigned users and groups].
Nested groups aren't supported. Only users who belong directly to the assigned group will sync. For details, see Microsoft’s guide Manage user and group assignment to an application.
Map user attributes
Configure user identifier, display name, email address, and usage status to reflect in LegalOn.
Under [Attribute mapping], configure user attributes as follows:
Open [Attribute mapping] in the app and select the [Users] tab.
Open the edit screen for [userName].
Change [Matching precedence] to [2] and click [Apply].
* You must temporarily set this to 2 before changing externalId to 1, as Entra ID requires unique matching precedence values.
Open the edit screen for [externalId].
Confirm [Mapping type] is [Direct].
Set [Source attribute] to [objectId] and [Target attribute] to [externalId].
Under [Match objects using this attribute], select the [Yes] checkbox.
Set [Matching precedence] to [1] and click [Apply]. Then click [Save] to confirm changes.
Reopen the edit screen for [userName]. Under [Match objects using this attribute], clear the [Yes] checkbox. Confirm that [Matching precedence] is blank.
Click [Apply] and confirm changes with [Save].
Map [displayName] to [displayName].
Map the attribute used for the LegalOn email address to [userName].
Confirm [active] contains the default expression "Switch([IsSoftDeleted], , "False", "True", "True", "False")".
14. If attributes were modified, click [Save] to confirm changes.
Microsoft Entra ID Side | Attribute Sent to LegalOn | Purpose |
objectId | externalId | Unique User Identification |
displayName | displayName | Display Name |
Attribute used as LegalOn email address | userName | Email Address |
Expression reflecting usage status | active | Active / Suspended |
💡 Info:
externalId: The unique identifier that links an Entra ID user to LegalOn. This keeps the user linked even if their name or email changes later.
userName: The email address used in LegalOn. During initial sync, LegalOn uses this to match existing accounts. If your userPrincipalName doesn't match the user's actual email, make sure to select the attribute that does.
active: Controls whether an account is active or suspended in LegalOn. The default expression automatically updates LegalOn when an account is disabled in Entra ID. Do not replace this with a fixed "True" value.
For attribute setup steps, see Microsoft's guide Customize application attribute mappings.
Map group attributes
Configure group identifier, name, and directly assigned members to reflect in LegalOn.
Enable group synchronization and set up the following attributes.
Microsoft Entra ID Side | Attribute Sent to LegalOn | Purpose |
objectId | externalId | Unique Group Identification |
displayName | displayName | Group Name |
members | members | Directly Assigned Users |
1. Open [Provisioning] in the app, then open [Attribute mapping].
2. Select the [Groups] tab.
3. Click [Edit mapping] for [displayName], change [Matching precedence] to [2] and click [Apply].
* You must temporarily set this to 2 before changing externalId to 1, as Entra ID requires unique matching precedence values.
4. Click [Edit] for [externalId], set the following values and click [Apply].
[Mapping type]: [Direct]
[Source attribute]: [objectId]
[Target attribute]: [externalId]
[Match objects using this attribute]: [Yes]
[Matching precedence]: [1]
5. Click [Edit] for [displayName] again, under [Match objects using this attribute], clear the [Yes] checkbox, and click [Apply].
6. Click [Click here to switch to the legacy experience.] at the top of the [Attribute mapping] screen.
7. Expand [Mappings] under [Provisioning].
8. Click [Provision Microsoft Entra ID Groups].
9. Set [Enabled] to [Yes].
10. Confirm [members] is mapped to [members] and the checkboxes for [Create], [Update], and [Delete] under [Target Object Actions] are checked.
11. Click [Save].
Assigning groups to the app and synchronizing groups themselves are separate settings. To sync group names and members, ensure group mapping is also enabled.
Start synchronization and verify results
Verify synchronization results with a small number of users before starting full sync, then check Microsoft Entra ID logs and LegalOn screens for results.
1. Verify sync targets in app [Users and groups], sync scope in [Overview] → [Properties], and user attribute settings in [Attribute mapping].
2. Open [Provision on demand] in the app, then search for and select a test user or group. For a group, select up to five directly assigned members per request.
3. Click [Provision] and verify the displayed results.
4. Open provisioning [Overview] and click [Start provisioning]. If provisioning is already running, this button is disabled and [Pause provisioning] is available.
5. Open app [Provisioning logs] and verify the target [Action] and [Status].
6. In LegalOn, verify user information, usage status, group names, and direct members.
7. If there are no issues, add sync targets in batches of several hundred in app [Users and groups].
8. Verify synchronization completion and check for errors in logs and LegalOn, repeating until all targets complete sync.
⚠️ Note:
After initial sync completes, Microsoft Entra ID automatically syncs users and groups every 40 minutes. Initial sync or large directories take longer to sync. To learn how to check logs, see Microsoft’s guide Check provisioning status.
Managing users and groups after sync
Verify user information changes and usage suspension
Display name and email address should be changed in Microsoft Entra ID. Values modified in LegalOn will be overwritten upon synchronization from Microsoft Entra ID.
When user disable or deletion requests are received from Microsoft Entra ID, the LegalOn user account is not deleted, but suspended. Data is retained. When usage is resumed, LegalOn usage status is also updated.
Verify existing group sharing settings and members
When linked to an existing group with a matching name during initial sync, sharing settings are inherited. Added members will gain access to shared targets, so verify group names, existing members, and sharing settings before sync.
When linked to existing LegalOn groups during initial sync, users originally belonging to that group will not automatically be removed even if absent from the matching Microsoft Entra ID group. If unnecessary, remove them manually in LegalOn. When a user account itself is deleted in Microsoft Entra ID, their LegalOn account is suspended rather than deleted.
Only users directly assigned to groups are synchronized. Child group members and hierarchies are not synchronized. Manage post-sync member changes in Microsoft Entra ID.
Impact of group deletion and assignment removal
Operation in Microsoft Entra ID | Result in LegalOn |
Delete group itself | Linked group and its sharing settings are deleted. |
Unassign group from app | LegalOn group remains, but falls out of sync scope. |
⚠️ Notes:
Re-creating a deleted group does not automatically restore former sharing settings.
Deleting a group does not delete LegalOn accounts of member users. They remain sync targets. Users assigned to the app solely through that group will fall out of sync scope. When suspension is reflected from Microsoft Entra ID, their LegalOn account will be suspended.
Group sync limitations
Group names are limited to 100 characters.
LegalOn user group maximum limit is 500 per tenant.
All-company groups cannot be synced or linked.
Ensure target group names do not conflict. Sync may fail if there is a naming conflict with an existing group.
Reissue a secret token
Reissuing a token invalidates the previous token. Register the new token in Microsoft Entra ID and perform a test connection. If an expiration date is configured, renew before expiration. If the token expires or IdP provisioning is turned off in LegalOn, automatic sync will stop.
To reissue, perform operations in the following order:
1. Open LegalOn [Security] → [Provisioning].
2. Click [Regenerate token]. In [Create secret token], choose [Expiration] and click [Create]. Copy the new token immediately.
3. Open the target app [Provisioning] → [Connectivity] in Microsoft Entra ID.
4. Enter the new token in [Secret token], then click [Save].
5. Click [Test connection] to confirm that the connection works.
Troubleshooting sync errors
If user or group sync fails, check the cause in the Microsoft Entra ID logs. After resolving the cause, restart provisioning if necessary to re-attempt sync.
In Microsoft Entra ID [Provisioning logs], verify the failed target and error details.
To re-verify specific users, use [Provision on demand].
To re-evaluate all targets, perform operations in the following order:
1. Open the target Enterprise Application in Microsoft Entra ID.
2. Open the [Provisioning] overview screen.
3. Select [Restart provisioning].
4. Review the confirmation prompt and execute.
5. Verify results in provisioning logs and LegalOn.
💡 Info:
Connection error: Check the LegalOn tenant URL, secret token, expiration date, and IdP provisioning enablement.
User sync error: Check attribute mapping and email address conflicts.
Group sync error: Check attribute mapping and group name conflicts.
Restarting re-evaluates target users/groups under current settings. Verify targets and attribute mappings are intended prior to restarting. If the error cause remains, the same error will recur. For restart and retry mechanisms, check Microsoft Official Help "Provisioning cycles and error handling".
