Provision members automatically with SCIM
SCIM lets your identity provider add people to your ProductEnv organization and remove them when they leave. ProductEnv supports SCIM 2.0 users on the Business plan, next to single sign-on. You need at least one verified domain before you can create a SCIM token.
Updated
- Set up single sign-on and verify at least one email domain.
- On the Single sign-on tab of Organization settings, find SCIM provisioning and choose Copy SCIM base URL.
- Choose Generate token and copy it from Your SCIM token. It is shown only once.
- In your identity provider's provisioning settings, paste the base URL and the token (authentication: HTTP header, bearer token), then turn on creating and deactivating users.
| Setting | Value |
|---|---|
| Base URL | https://api.product-env.com/v1/scim/v2/<organization id> (copy it from the dashboard) |
| Authentication | Authorization: Bearer scim_… |
| Unique identifier | userName, the person's email address |
| Resources | Users (groups aren't supported) |
Regenerate token replaces the token at once: the old one stops working immediately. Revoke stops provisioning until you set a new token. Removing single sign-on also deletes the SCIM token.
- Creating a user whose email is in one of your verified domains adds them to the organization with the Role of new members from your SSO settings, and no project access. People without a ProductEnv account get one.
- Setting
activetofalse, or deleting the user, removes them from the organization and from every project in it. Their ProductEnv account itself stays. - Setting
activeback totrueadds them to the organization again. - Names (
name.givenName,name.familyName) are updated for accounts in your verified domains. - The organization owner can't be deprovisioned.
Deprovisioning removes access, not open sessions
A removed person loses access to the organization's projects at once, because access is checked on every request. Their account and its sign-in sessions are not deleted: they can still sign in to their own account and any other organization they belong to.
| Method and path | What it does |
|---|---|
GET /ServiceProviderConfig, /ResourceTypes, /Schemas | Discovery |
GET /Users | Lists users, 100 per page by default (count up to 200, startIndex from 1); the only filter is userName eq "…" |
GET /Users/{id} | One user |
POST /Users | Creates or adds a user (email in a verified domain only) |
PUT /Users/{id} | Replaces names and active; userName can't change |
PATCH /Users/{id} | add, replace and remove on active and the name fields |
DELETE /Users/{id} | Removes the user from the organization (204) |
Errors use the SCIM error format (application/scim+json with status, scimType and detail). An unknown token answers 401, a missing Business plan 403, a person already in the organization 409, and a full organization 403 when no seat is left.
Does ProductEnv support SCIM groups?
- No, only users. Everyone provisioned joins with the role chosen under Role of new members and no project access; project access is given in ProductEnv.
Which users does the SCIM API list?
- The organization owner, its members, and accounts whose email is in one of your verified domains. A deprovisioned person still appears, with active set to false.
Is there a rate limit on the SCIM API?
- SCIM requests share the API's general limit of 200 requests per minute per IP address. Identity providers stay well under it during normal provisioning.