Zum Inhalt springen

User provisioning with Microsoft Entra ID (SCIM)

With user provisioning (SCIM 2.0), Microsoft Entra ID manages your Diktiro users: people you assign in Entra are created in your Diktiro company and receive a licence. People who lose the assignment, or whose Entra account is disabled or deleted, lose access to Diktiro.

The steps below are the same as in the Connect Entra ID assistant in the Diktiro portal. How your staff then sign in is described in Sign in with Microsoft.

CapabilitySupported
Create peopleYes
Update people (first name, last name, display name, address)Yes
Deactivate people (assignment removed, account disabled or deleted in Entra)Yes. Diktiro deactivates the membership, signs the person out on all devices and keeps their data.
Reactivate peopleYes, when a licence is free
Groups as objects of their ownNot used; the assistant turns them off (step 4). People in an assigned group are still provisioned.
Provision on demandYes
How Entra authenticates to DiktiroSecret token or OAuth2 client credentials grant

Microsoft Entra ID

  • To create the application and set up provisioning: the role Application Administrator or Cloud Application Administrator.
  • To assign groups: Microsoft Entra ID P1 or P2. With Microsoft Entra ID Free, you assign people individually.

Diktiro

  • The Enterprise plan. Without it, the portal shows: “Microsoft Entra needs the Enterprise plan. Please contact Diktiro to switch.”
  • The role Super-Admin or Admin in the Diktiro portal.
  • Your tenant ID registered with Diktiro, ideally your e-mail domains too (next section).

Licences

  • Every provisioned person takes one of your company’s licences at once.
  • With a fixed number of licences, Diktiro refuses further people once all are taken. With per-person billing, a maximum agreed with you applies.
  • When a person is removed, their licence becomes free for someone else. Periods already paid are not refunded.

Preparation: domains and tenant ID at Diktiro

Section titled “Preparation: domains and tenant ID at Diktiro”

Diktiro creates every person you assign in Entra, whatever the domain of their address. In Entra, the address is the user principal name (UPN).

Diktiro registers for your company:

  • Your e-mail domains, for example yourcompany.com and yourcompany.de. Diktiro does not need them to create people. But when a person’s address changes in Entra, Diktiro takes the new address only if both the previous and the new domain are registered. So tell Diktiro support every domain that occurs as a user principal name in your Entra. Free-mail domains such as gmail.com are excluded, and each domain belongs to one Diktiro company only. Domains your people have proved they use are also offered by the portal itself on the Team page; one click on Domain hinzufügen (add domain) is enough.
  • Your Microsoft tenant ID (Entra admin center > Overview > Tenant ID). With it, Diktiro links every provisioned person firmly to their Microsoft account, and sign-in with Microsoft finds them reliably. The tenant ID connects your company to your tenant permanently and cannot be changed afterwards.

Send both to support@diktiro.ai before you switch provisioning on.

Sign in to the portal at admin.diktiro.ai/portal, open Team and select Connect Entra ID at the top right. A window opens next to the portal with the six steps and the values to copy. Open the Entra admin center opens Microsoft’s admin center at the enterprise applications. If the browser blocks the window, the assistant shows: “Allow pop-ups here, and it opens by itself next time.”

  • Select New application, and then Create your own application
  • Name it Diktiro AI Provisioning, and select the Non-gallery option
  • Click Create

In Entra, the non-gallery option reads “Integrate any other application you don’t find in the gallery (Non-gallery)”. The name has no technical effect. It tells the application apart from Diktiro AI, which your staff sign in with.

  • In the new app, under the Manage tab, select Provisioning and provide the following URL and token:
    • Tenant URL: https://api.diktiro.ai/scim/v2
    • Secret token: copy it from the assistant
  • Click Test Connection and Save

If Entra first asks for the Provisioning Mode, choose Automatic. When the connection works, the assistant shows: “Connection tested ✓”.

With a client secret instead of a token. In the assistant, switch the Authentication method from With token to With client secret (OAuth2). The step then reads: “In the new app, under the Manage tab, select Provisioning, choose OAuth2 Client Credentials Grant as Authentication Method and provide the following values:“

Field in the assistantValue
Tenant URLhttps://api.diktiro.ai/scim/v2
Token endpointhttps://api.diktiro.ai/scim/oauth/token
Client identifiercopy it from the assistant
Client secretcopy it from the assistant. The assistant shows it once: “Shown only now: copy it right away. Valid until …”

A client secret is valid for two years. With it, Entra fetches access tokens from the token endpoint itself; each is valid for 60 minutes.

  • Under Mappings (or Attribute mapping on the left), select Provision Microsoft Entra ID Users
  • Click the externalId row, set Source attribute to objectId, and click OK
  • Click Save

Entra suggests mailNickname for externalId. Diktiro needs the objectId to link the person to their Microsoft account. Without this change, Diktiro refuses people with “Map Entra objectId to SCIM externalId and configure the tenant ID”.

  • Select Provision Microsoft Entra ID Groups, set Enabled to No, and click Save

This only stops groups from being sent as objects of their own. Provisioning people through an assigned group still works.

  • Under Users and groups, add the people or groups who should use Diktiro

Use the same group as for sign-in with Diktiro AI. Entra provisions only direct members of an assigned group, not members of nested groups. Under Provisioning > Settings, keep the scope Sync only assigned users and groups.

Tip: under Properties, set Visible to users? to No. Otherwise, assigned people see a second Diktiro tile in My Apps that they do not need.

  • To test, use Provision on demand with one person
  • Then set Provisioning Status to On and click Save

As soon as Entra has provisioned the first person, the assistant reports “Connected ✓ — first person provisioned” and closes. At the top right of the Team page, the portal then shows Entra connected.

What Diktiro does with each provisioned person

Section titled “What Diktiro does with each provisioned person”

Diktiro accepts a person when

  • externalId is mapped from objectId (step 3), and
  • a licence is free.

The domain of their address does not matter. The person becomes a member of your company and receives a licence at once. In the portal, they are listed under Team with the note “Managed in Entra”. They do not need an invitation e-mail. They sign in to the app with Sign in with Microsoft; password and Google sign-in are blocked for people from Entra. The only exception is your company’s Super-Admin, who keeps a password as an emergency key.

If the address already has a Diktiro account of its own outside your company, Diktiro does not simply take it over. Instead, the person receives your company’s normal invitation by e-mail, and until then Entra reports a conflict (409). Once they accept the invitation, the next cycle links them to your company.

Provisioning cycles and “Provision on demand”

Section titled “Provisioning cycles and “Provision on demand””

Entra sends changes in cycles. The first cycle after you switch provisioning on reads all assigned people and can take longer when there are many. After that, a cycle runs about every 40 minutes and sends only changes. Newly assigned or removed people therefore reach Diktiro with a delay of up to about 40 minutes.

Provision on demand (under Provisioning in the provisioning app) sends a single person at once. Entra then shows each step, including Diktiro’s response. The person must be assigned, directly or as a direct member of the group.

  • Remove the person from the group, remove their assignment, or disable or delete their account in Entra. Entra reports the change to Diktiro in the next cycle.
  • Diktiro then deactivates the membership and signs the person out on all devices at once. Their licence becomes free; their existing data is kept. In the portal, they are listed under Team in Removed.
  • If the person is assigned again, Diktiro reactivates them, provided a licence is free.
  • People from Entra are removed and restored only in Entra, not in the portal.

Test: create a person and remove them again

Section titled “Test: create a person and remove them again”
  1. Assign a test user to the provisioning app.
  2. Under Provisioning, run Provision on demand for them. Entra shows each step and Diktiro’s response.
  3. In the portal under Team, check that the test user is listed with “Managed in Entra”.
  4. On a test device, sign in to the Diktiro app as the test user with Sign in with Microsoft.
  5. Remove the test user’s assignment and run Provision on demand for them again, or wait for the next cycle. In the portal, the test user is then listed in Removed, and the app on the test device is signed out.
  6. When both work, assign your group and set Provisioning Status to On.

Once your company is connected, open Entra connected at the top right of the Team page in the portal. The window shows the Tenant URL and the credentials.

  • Create new token: “The current token stops working at once, and so does the current client secret. Paste the new one into Entra (Provisioning → Admin credentials), otherwise provisioning stops.”
  • Create new client secret: “A new client identifier and secret are created; the current ones stop working at once. Paste the new ones into Entra (Provisioning → Admin credentials), otherwise provisioning stops. The token stays as it is.”

Enter the new values in Entra right away, then select Test Connection and Save. A client secret is valid for two years; the window shows “Valid until …”. Once it has expired, it shows: “Expired on …. Create a new client secret.”

ItemValue
SCIM endpoint (Tenant URL)https://api.diktiro.ai/scim/v2
Token endpoint (OAuth2)https://api.diktiro.ai/scim/oauth/token
Resources/Users, /Groups, /Schemas, /ResourceTypes, /ServiceProviderConfig
Maximum per query200 results
Diktiro (SCIM)Source in EntraNotes
userNameuserPrincipalNameRequired. Diktiro uses it as the person’s address. When the address changes, both the previous and the new domain must be registered.
externalIdobjectId (step 3)Required. Links the person to their Microsoft account.
activedefault mapping (IsSoftDeleted)false deactivates the person in Diktiro.
displayNamedisplayName
name.givenNamegivenName
name.familyNamesurname
emails[type eq "work"].valuemailUsed only if userName is empty.

Diktiro ignores other attributes that Entra sends.

Check the Provisioning logs of the provisioning app, or run Provision on demand for the person. Both show Diktiro’s response.

What you seeCause and fix
A person does not arriveNo cycle has run yet: wait up to about 40 minutes, or use Provision on demand. Or the person is out of scope: Provisioning Status is On, the scope is Sync only assigned users and groups, and the person is a direct member of the assigned group.
”Email domain is not verified for this organization” (403)A person’s address was changed in Entra to a domain that is not registered with Diktiro. Send the domain to Diktiro support.
”The person’s current address is not on a domain verified for this organization” (403)Entra wants to change the address of a person whose previous domain is not registered with Diktiro. Send the domain to Diktiro support.
”Map Entra objectId to SCIM externalId and configure the tenant ID” (400)externalId is not mapped from objectId. Change the mapping as in step 3.
”userName must be an e-mail address” (400)The user principal name is not an e-mail address. Check that userName is mapped from userPrincipalName.
”Seat limit reached” or “Licence maximum for Entra provisioning reached” (409)All of your company’s licences are taken. Contact Diktiro for more licences.
”The e-mail address belongs to another account” (409)A person’s new address already belongs to another Diktiro account. Diktiro support helps.
”This address already has a Diktiro account outside this company. Diktiro e-mailed the person an invitation …” (409)The person already has a Diktiro account of their own. They received an invitation to your company by e-mail; once they accept, the next cycle links them. Until then Entra reports this conflict.
”This address already has a Diktiro account outside this company. Invite the person in the Diktiro portal …” (409)As above, except that Diktiro could not send an invitation because your company has no Super-Admin or Admin. Invite the person in the portal under Team.
”Microsoft identity is already linked to another account” or “This user already has a different Microsoft identity” (409)The person signed in before provisioning with a different address, or two accounts exist. Diktiro support helps.
Test Connection fails, or the logs show 401The token, client identifier, client secret or token endpoint is wrong, or was replaced in the portal, or has expired. Copy the values from the portal again, or create new ones.
Provisioning is in quarantineEntra pauses provisioning after many failures. Fix the cause, then restart provisioning.
A person appears twice or outside your companyThey usually signed in before they were provisioned and use a private account. With the same address they receive an invitation to your company; once they accept, the next cycle links them. If they signed in with a different address, contact Diktiro support.

Provisioning runs directly between Microsoft and Diktiro; your firewall is not involved.

  • E-mail: support@diktiro.ai
  • Support page: diktiro.ai/support
  • Please include your tenant ID, the affected user principal name, the time, and the entry from the provisioning logs. Never send tokens or client secrets.

Deutsche Fassung: Benutzer-Synchronisation mit Microsoft Entra ID (SCIM)