Menú de la documentación

SCIM con Microsoft Entra IDDepende de cómo esté configurado IvyRequiere un plan con SCIM

This guide connects a Microsoft Entra ID tenant to Ivy so that Entra ID creates, updates and deactivates people in Ivy and syncs groups that you map to spaces. Read SCIM provisioning first for how Ivy treats what Entra ID sends.

You need:

  • an Ivy organisation on the Enterprise plan, and an owner or admin in it;
  • an Entra ID role that can configure provisioning for enterprise applications, such as Application Administrator or Cloud Application Administrator.

1. In Ivy: turn SCIM on and create a token

  1. Open Settings → SCIM and turn SCIM on.
  2. Copy the base URL: https://<your Ivy host>/api/scim/v2/organisations/<organisation id>.
  3. Create a token named, for example, “Entra ID”, and copy it. It’s shown only once.

2. In Entra ID: create the enterprise application

If you already have an enterprise application for signing in to Ivy with single sign-on, you can add provisioning to it and skip to step 3. Otherwise:

  1. In the Microsoft Entra admin center, go to Enterprise applications (under Identity → Applications) and select New application.
  2. Select Create your own application, enter a name such as “Ivy”, choose Integrate any other application you don’t find in the gallery (Non-gallery) and select Create.

3. Connect Entra ID to Ivy

  1. In the application, open Provisioning and start the setup (Get started, or New configuration, depending on your admin center’s version).
  2. Set Provisioning Mode to Automatic, if the page asks for it.
  3. Under Admin Credentials, enter:
    • Tenant URL: the base URL from Ivy;
    • Secret Token: the token from Ivy, without Bearer.
  4. Select Test Connection. Entra ID sends a request with the token and a filter for a user that doesn’t exist; Ivy answers with an empty list, and the test succeeds.
  5. Save.

You don’t need the ?aadOptscim062020 feature flag on the tenant URL: Ivy handles both the older and the current Entra ID SCIM behaviour.

4. Mappings

Under Mappings, Entra ID has two sets: Provision Microsoft Entra ID Users and Provision Microsoft Entra ID Groups. Keep both enabled.

Users

Open Provision Microsoft Entra ID Users and check these attribute mappings:

Ivy (SCIM) attribute Entra ID source
userName userPrincipalName
active Switch([IsSoftDeleted], , "False", "True", "True", "False")
emails[type eq "work"].value mail
name.givenName givenName
name.familyName surname
displayName displayName
externalId objectId (change this from the default, mailNickname)

Most of these are Entra ID’s defaults. Change externalId to objectId: select the externalId mapping, set Source attribute to objectId and save. The object ID never changes and is unique in your tenant, while the mail nickname can change and be reused. It is also the oid claim in the ID tokens Entra ID issues, so a self-hosted Ivy that trusts Entra ID directly links each person to their SCIM record at their first sign-in (see First sign-in).

Leave userName as the matching attribute (Matching precedence 1). Entra ID’s other default mappings, such as job title, phone numbers and addresses, are ignored by Ivy; the enterprise attributes employeeNumber, department and manager are stored but not used. You can leave or delete them.

Groups

Open Provision Microsoft Entra ID Groups and check:

Ivy (SCIM) attribute Entra ID source
displayName displayName
externalId objectId
members members

Entra ID matches groups by displayName. Nested groups aren’t supported, by Entra ID provisioning or by Ivy: assign each group whose members need access.

5. Scope and start

  1. Under Settings, set Scope to Sync only assigned users and groups.
  2. Under Users and groups in the application, assign the people and groups who should use Ivy. Assigning a group provisions its members and the group itself.
  3. Back in Provisioning, set Provisioning Status to On and save.

Entra ID runs a first cycle, then syncs about every 40 minutes. Changes in Entra ID reach Ivy with the next cycle, not instantly; for one person, use Provision on demand.

Then, in Ivy, open Settings → SCIM, find each group under group mappings and choose the spaces and roles it grants. See Groups and mappings.

6. Test run with Provision on demand

  1. In Provisioning, select Provision on demand, search for one assigned test person, and select Provision. Entra ID shows each step and Ivy’s answer.
  2. In Ivy, check that they appear in the member list with a “SCIM” badge, with the right name and email address.
  3. Provision on demand a group that contains them (pick the group, then the member), and map the group to a space in Ivy. They become a member of that space with the role you chose.
  4. Remove their assignment in Entra ID. With the next cycle, or when you provision them on demand again, Entra ID deactivates them in Ivy: their status changes to deactivated with a “Deprovisioned by SCIM” badge, and any session they had ends at once.

When this works, wait for the regular cycle, or provision others on demand.

How Entra ID’s requests look to Ivy

Entra ID sends a few things in its own way, and Ivy accepts them as they are:

  • active as the strings "True" and "False" rather than booleans;
  • PATCH operations without a path, such as {"op": "Replace", "value": {"active": false}}, and operation names in any letter case;
  • users without a family name, such as shared mailboxes and rooms;
  • group member changes in batches, and removals with a filter such as members[value eq "…"].

When a user is permanently deleted in Entra ID (by default 30 days after they were deleted), Entra ID sends DELETE, which erases them in Ivy.

Troubleshooting

  • Test Connection fails with 401: the secret token is mistyped, expired or revoked.
  • 403: SCIM is turned off in Ivy, the organisation isn’t on Enterprise, or the tenant URL names a different organisation from the token’s.
  • A user is skipped or fails with 409 uniqueness: another SCIM user in the organisation already has that userName or externalId.
  • A user fails with 409 mutability: the person is an owner in Ivy, and SCIM never deactivates or deletes owners.
  • A provisioned person can’t sign in with single sign-on (sso_email_unverified): Ivy links a provisioned account to a single sign-on account only when the identity provider reports the email as verified, and Entra ID doesn’t report it. Until Ivy matches Entra ID accounts another way, people provisioned from Entra ID sign in with an email code or a password they set through a reset.
  • Provisioning logs in the application (under Monitor) show each request with Ivy’s SCIM detail message.