Skip to main content
Microsoft Entra ID can create, update, deactivate and delete Console accounts for you over SCIM 2.0. Setup takes about 20 minutes and needs an Entra administrator and a Console company admin. Entra provisions groups too by default: every group you assign to the application is created in Console with its members. SCIM group provisioning from Microsoft Entra ID explains that side; step 5 below says how to turn it off if you only want users. The steps at a glance:
  1. Before you start (Console admin): check that SCIM is enabled, then create a dedicated Company Admin account and an API key for it.
  2. Create the enterprise application (Entra admin): a non-gallery application, or reuse the one you use for SSO.
  3. Connect Entra to Console (Entra admin): enter the tenant URL and the API key, then test the connection.
  4. Map the user attributes (Entra admin): keep six rows, change externalId to objectId, delete the rest.
  5. Choose who is provisioned and start (Entra admin): assign users or groups, test one user, start provisioning.
If people already sign in to Console with SSO, read Users who already sign in with SSO at the end of this guide before you start provisioning. A mismatched attribute creates a second account for each of them.

1. Before you start (Console side)

  1. Check that SCIM is enabled. It is on by default, at two levels:
    • the instance, through the SCIM_INSTANCE_ACTIVATION config key;
    • your company, through the Activate SCIM setting of the company in the Django admin.
  2. Create a dedicated account for Entra, for example scim-entra@your-company.com, with the Company Admin role. Entra acts as this account: it needs to create, edit and delete users and groups. Use a dedicated account so that nobody deactivates it by accident.
  3. Create an API key for that account. Sign in as the account and create the key from the API keys page. Do not restrict the key to workspaces. Copy the key: you paste it into Entra in step 3.
Users are always created in the company of the account that owns the API key.

2. Create the enterprise application in Entra

  1. In the Microsoft Entra admin center, go to Identity > Applications > Enterprise applications.
  2. Click New application, then Create your own application.
  3. Enter a name (for example Console), select Integrate any other application you don’t find in the gallery (Non-gallery), then click Create.
If you already use an enterprise application for Console SSO, add provisioning to that one instead of creating a new one.
Entra Application Creation

3. Connect Entra to Console

  • In the application, open Provisioning and click + New configuration.
Entra Provisioning
Entra Scim New Config
  • Fill in the admin credentials:
FieldValue
Tenant URLhttps://<console-domain>/scim/v2/?aadOptscim062020
Secret tokenThe API key created in step 1
  • <console-domain> is api.lighton.ai on the LightOn SaaS, or your own domain on-premise.
  • Keep the ?aadOptscim062020 suffix: it makes Entra send updates in the standard SCIM format. Microsoft documentation
Entra Scim Credentials 1
  • Click Test connection. A success means Console is reachable, the key is valid and SCIM is on.
  • Click Create.
Entra Scim Connection Test 1
On the LightOn SaaS, ask LightOn support if the connection test in step 3 returns 403.

4. Map the user attributes

Entra’s default mapping sends attributes Console does not store. Console rejects any update that contains one of them, including the supported changes sent in the same request. Keep only the six rows below.
  1. Open Provisioning > Attribute mapping > Provision Microsoft Entra ID Users.
  2. Make sure the mapping holds exactly these rows:
Source Attribute (Microsoft Entra ID)Console attribute (target)Notes
userPrincipalNameuserNameEntra’s default. Required.
Matching Precedence = 1
givenNamename.givenName
mail or Coalesce([mail], [userPrincipalName]) if some users have no mail and your UPNs are real email addresses.emails[type eq "work"].valueRequired.
objectIdexternalIdRequired. Entra’s default is mailNickname: change it to objectId.
surnamename.familyName
Switch([IsSoftDeleted], , "False", "True", "True", "False")activeEntra’s default. Keep it.
  1. Delete every other row, in particular:displayName, title, preferredLanguage, name.formatted, phoneNumbers[...], addresses[...], roles and every urn:ietf:params:scim:schemas:extension:enterprise:2.0:User:... row (employeeNumber, department, manager…).
  2. Click Save.
Entra Scim User Attributes
Console needs an email to create an account, and an email can belong to only one Console account.

5. Choose who is provisioned and start

  1. Open Provisioning > Settings and set Scope to Sync only assigned users and groups.
Entra Scim Only Assigned
  1. Open Users and groups and assign the users, or the groups whose members should get a Console account. Assigning groups requires Entra ID P1 or P2.
Entra Scim Users Groups Assignment
An assigned group is also created in Console, because group provisioning is on by default.
Entra’s default group mapping already suits Console; check it holds only the three rows listed in step 2 of the group guide.
To provision users only, open Provisioning > Attribute mapping > Provision Microsoft Entra ID Groups and set Enabled to No.Members of assigned groups still get their accounts.
  1. Test with one user: Provisioning > Provision on demand, pick a user, click Provision. Check that every step is green and that the account appears in Console.
  2. Back on the Overview, click Start provisioning.
The first cycle provisions everyone in scope. Entra then sends changes about every 40 minutes.The first cycle provisions can take some time to be triggered (up to 40 minutes), use Provision on demand to push some users immediately if needed.
Entra Scim Successfull Overview 1

What happens in Console

In Entra IDIn Console
User assigned to the application (directly or through a group)Account created in the API key owner’s company, active if the Entra account is enabled. The user receives a welcome email. An existing account is taken over instead (see Users who already sign in with SSO).
Name, email or userName changedAccount updated at the next cycle.
Account disabled (Block sign in)Account deactivated: the user cannot sign in. Their data is kept.
Account enabled againAccount reactivated.
User unassigned, or removed from the assigned groupAccount deactivated (Entra’s default for users leaving the scope).
User deleted (moved to Deleted users)Account deactivated. Restoring the user in Entra reactivates it.
User permanently deleted (or 30 days after deletion)Account anonymized and deactivated. This cannot be undone; provisioning the person again creates a new, empty account.
Manage provisioned users in Entra. An edit made in the Console admin panel to a synced field is overwritten the next time Entra sends that field.

Troubleshooting

Errors appear in Provisioning > Provisioning logs. Filter on Status: Failure and open the entry. If Entra puts the application in quarantine after repeated failures, fix the cause, then click Restart provisioning on the Overview.

Users who already sign in with SSO

Console may already hold accounts for some of your users: SSO creates one at a person’s first sign-in when auto-provisioning is on, and an admin may have created others by hand. Before creating anyone, Entra looks for an existing account in your company whose username equals the user’s userName, ignoring case. An account created by SSO has, as username, the email SSO sent at that first sign-in. With the mapping of step 4, an SSO account is in the first row when its username is the person’s UPN, and in the second row otherwise, never the third. The second row happens when SSO sends mail and it differs from the UPN, or when the UPN changed after the person’s first SSO sign-in. Fix it once: a Console admin sets those accounts’ username to their current UPN, then Provision on demand takes them over. The other direction needs nothing: when a provisioned user signs in with SSO for the first time, Console links the sign-in to their account by email, as long as SSO sends the same email. Check before you start. Run Provision on demand (step 5) on a person who already signs in with SSO. The provisioning log must show an Update of the existing account, not a Create. If duplicates were already created: fix the mapping (step 4), delete the duplicate accounts in the Console admin panel, then click Restart provisioning on the application’s Overview so that Entra looks every user up again.