Provisionnement SCIMDépend de la configuration d’IvyNécessite une offre avec SCIM
With SCIM 2.0, your identity provider (IdP) creates, updates and deactivates people in Ivy, and its groups give them access to spaces. You manage people in one place, and someone who leaves loses access to Ivy as soon as your IdP deactivates them.
SCIM is part of the Enterprise plan. On other plans, organisation admins see the SCIM settings with an upgrade prompt, and SCIM requests are refused. A self-hosted Ivy without billing has SCIM included.
There are step-by-step guides for Okta and Microsoft Entra ID. Any other IdP that speaks SCIM 2.0 (RFC 7643 and 7644) works with the details on this page.
Base URL
Each organisation has its own SCIM base URL:
https://<your Ivy host>/api/scim/v2/organisations/<organisation id>
Settings → SCIM in the Ivy app shows it, ready to copy. SCIM lives beside the REST API’s /v1, not under it, because SCIM has its own versioning.
| Resource | Supported |
|---|---|
/ServiceProviderConfig |
yes |
/ResourceTypes, /Schemas |
yes |
/Users, /Users/{id} |
GET, POST, PUT, PATCH, DELETE |
/Groups, /Groups/{id} |
GET, POST, PUT, PATCH, DELETE |
Bulk, /Me, sorting, /.search |
no (ServiceProviderConfig says so) |
Requests and responses use application/scim+json; application/json is accepted too.
Turn SCIM on and create a token
Organisation owners and admins do this in Settings → SCIM:
- Turn SCIM on. While it’s off, SCIM requests are refused with
403. Turning it off later keeps your tokens, the people SCIM created and the access groups gave them. - Create a token. Give it a name, such as the IdP it’s for, and optionally an expiry date. Ivy asks you to confirm it’s you if you last signed in more than 10 minutes ago. The token is shown once: paste it into your IdP straight away. Ivy keeps only a SHA-256 hash of it.
- Paste the base URL and the token into your IdP. It sends the token as a bearer token:
Authorization: Bearer ivy_sk_…
A SCIM token has the same format as an API key, so your secret scanner finds it with the same pattern, but it only works on the SCIM routes of its own organisation, and nothing else works on them. A person’s session or an ordinary API key gets 401 or 403 there.
- Rotate a token to replace it without downtime: the old token keeps working for an overlap you choose (24 hours by default, at most 7 days). Rotating needs the same confirmation as creating.
- Revoke a token to stop it on the next request.
- An organisation can have up to 5 live tokens; two during a rotation is the usual case.
- The SCIM page shows when each token was last used, from which IP address (shortened to the network), the time and outcome of the last sync, and recent provisioning activity: the operation, the resource type and ID, and the result. It never shows names or email addresses.
Everything SCIM changes is recorded in the organisation’s activity log with the ID of the token that made the change.
Users
| SCIM attribute | In Ivy |
|---|---|
id |
the Ivy user ID |
externalId |
stored; unique in the organisation; matches the person at first sign-in in external mode |
userName |
stored; unique in the organisation, ignoring case |
name.givenName, name.familyName, name.formatted |
stored |
displayName |
the name shown in Ivy; else name.formatted, else given and family name |
emails |
the primary one, else type eq "work", else the first, is the person’s Ivy email |
active |
the person’s status: active or deactivated |
preferredLanguage, locale |
the person’s language when it is one Ivy offers (en, de, fr, es, it, el or hu) |
enterprise employeeNumber, department, manager.value |
stored and returned; Ivy doesn’t use them |
meta.version |
a weak ETag; If-Match is honoured on PUT, PATCH and DELETE |
Ivy needs userName. A family name isn’t required, so service accounts and meeting rooms that your IdP sends without one are accepted. Attributes Ivy doesn’t support are ignored.
Creating a person. A userName that is already provisioned gets 409 with scimType: "uniqueness". Someone already in your organisation with the same email address, for example invited by hand, is linked to the SCIM record instead of being created twice. People created by SCIM get no invitation email: your IdP owns onboarding, and they sign in through your organisation’s identity provider. Each new active person takes a seat.
Filters
GET /Users and GET /Groups accept a filter with a single eq comparison on these attributes:
- Users:
userName,externalId,id,emails.value,emails[type eq "work"].value - Groups:
displayName,externalId,id
Attribute names ignore case, and so do the values of userName, email addresses and displayName. Other operators (and, or, pr, co, sw and the rest) get 400 with scimType: "invalidFilter".
GET /api/scim/v2/organisations/<organisation id>/Users?filter=userName eq "ada@example.com"
Lists are paged with startIndex (from 1) and count (100 by default, at most 200).
PATCH
Ivy accepts the variations that Okta, Microsoft Entra ID and other IdPs send:
add,replaceandremove, in any letter case;- paths with or without the schema URN prefix, and sub-paths such as
name.givenNameandemails[type eq "work"].value; - operations without a path, whose value holds the attributes to change, such as
{"op": "Replace", "value": {"active": false}}; activeas a boolean or as the strings"True"and"False".
Deactivation
When your IdP sets active to false, with PUT or PATCH:
- the person is deactivated in Ivy and at the sign-in service;
- their sessions end at once, in every browser;
- their running agent turns, code runs and sandboxes are cancelled.
The organisation keeps their files and chats. The member list shows a “Deprovisioned by SCIM” badge. Setting active back to true reactivates them, which needs a free seat.
Deletion is erasure
DELETE /Users/{id} erases the person, as an admin’s GDPR erasure in the app does: they are deactivated and disappear from SCIM at once; then Ivy removes their sign-in identity, their space memberships and group grants and their SCIM record, pseudonymises them as the creator of service identities and API keys, and deletes their account. Content that belongs to the organisation stays. If you only want to remove someone’s access, deactivate them instead.
Owners
SCIM never deactivates or deletes an organisation owner: such a request gets 409 with scimType: "mutability". This keeps at least one owner who can always manage the organisation. An owner’s name and language still follow your identity provider. Manage owners in the Ivy app.
Groups and mappings
SCIM groups have a displayName (unique in the organisation, ignoring case), an externalId and members. Members are people; nested groups are refused. GET returns the members unless you add excludedAttributes=members. PATCH adds and removes members in batches, removes them with a path filter such as members[value eq "…"], and replaces the whole member list.
A group on its own grants nothing. Organisation admins decide what it grants, in Settings → SCIM, never the IdP:
- any number of spaces, each with a space role:
viewer,editororadmin; - optionally the organisation role
memberoradmin. Mapping a group toadminneeds the same confirmation as making someone admin by hand. SCIM never grants the owner role.
Changing a mapping, a group’s members or a person’s status updates that person’s access at once.
A group-granted organisation admin still sees a space’s content only after joining it, like any admin, and a group-granted space admin is an ordinary member of that space.
Grants add up
Access granted by hand and access granted by groups add up, and removing a group never removes access that was granted by hand.
- A person’s role in a space, or in the organisation, is the highest role any source gives them.
- When a group first grants access to someone who already had it, their existing role is kept as granted by hand.
- When their last group grant goes, they return to the role granted by hand. Without one, they leave the space; in the organisation, they return to
member. - Raising a group-granted role by hand records the higher role as granted by hand. Lowering it below what a group grants, or removing the person from the space, is refused, because the next sync would undo it. Ivy names the groups that grant the access.
What’s locked while SCIM is on
For people SCIM manages, your IdP is the source of truth. While SCIM is on, these can’t be changed in Ivy, because the IdP would overwrite them:
- their name and email address;
- deactivating and reactivating them;
- revoking their invitation;
- their organisation role while a group grants one.
You can still invite people by hand, for example contractors or guests who aren’t in your IdP, and change space roles granted by hand under the rules above. People provisioned by SCIM show a “SCIM” badge in the member list.
First sign-in with your own identity provider
How people sign in after SCIM created them depends on how your Ivy is set up:
- With Ivy’s sign-in service (the hosted service, and self-hosted Ivy with the bundled Zitadel), SCIM creates the sign-in identity too, with a verified email address and no password. People sign in through your organisation’s identity provider.
- With an external OpenID Connect issuer (self-hosted Ivy that trusts your IdP directly), Ivy can’t create identities at the issuer. It links the person at their first sign-in when the ID token’s
suboroidclaim equals the SCIMexternalId, or itspreferred_usernameequalsuserName(ignoring case). MapexternalIdto the IdP’s user ID (Okta) or object ID (Microsoft Entra ID), as the provider guides do.
Rate limit
Each token can make 600 requests a minute. A request over the limit gets 429 with a Retry-After header that gives the seconds to wait; Okta and Entra ID wait and retry on their own. A self-hosted Ivy sets the limit with the API_KEY_RATE_LIMIT_PER_MINUTE environment variable (600 by default). See Rate limits.
Errors
Errors on SCIM routes use the SCIM error schema, never the REST API’s {"error": …} shape. This includes authentication, rate-limit and routing errors:
{
"schemas": ["urn:ietf:params:scim:api:messages:2.0:Error"],
"status": "409",
"scimType": "uniqueness",
"detail": "userName is already provisioned"
}
| Status | scimType |
When |
|---|---|---|
| 400 | invalidFilter, invalidValue, invalidSyntax |
The filter or body isn’t supported or valid. |
| 401 | none | The token is missing, mistyped, expired or revoked. |
| 403 | none | SCIM is off, the plan doesn’t include SCIM, or the token belongs to another organisation. |
| 404 | none | The user or group doesn’t exist, or was deleted. |
| 409 | uniqueness |
The userName, externalId or group name is taken. |
| 409 | mutability |
The request would change an organisation owner. |
| 412 | none | If-Match doesn’t match the current meta.version. |
| 429 | none | Too many requests with this token. |
detail is an English explanation for people; don’t parse it.
Limitations
- When your IdP changes someone’s email address, Ivy updates its own copy, but the sign-in service keeps the old address until it’s changed there too.
- Ivy doesn’t offer SCIM bulk requests,
/Me, sorting orPOST /.search.