Public routes: SCIM
SCIM 2.0 provisioning of a workspace’s members by its single sign-on provider, with the workspace’s SCIM token.
| What it does | Route |
|---|---|
| What the SCIM server offers | GET /public/v1/scim/v2/ServiceProviderConfig |
| List the workspace’s members | GET /public/v1/scim/v2/Users |
| Make a member | POST /public/v1/scim/v2/Users |
| Remove a member | DELETE /public/v1/scim/v2/Users/{user_id} |
| Read a member | GET /public/v1/scim/v2/Users/{user_id} |
| Change a member | PATCH /public/v1/scim/v2/Users/{user_id} |
| Replace a member’s name and status | PUT /public/v1/scim/v2/Users/{user_id} |
What the SCIM server offers
Section titled “What the SCIM server offers”GET /public/v1/scim/v2/ServiceProviderConfig
SCIM 2.0’s service provider configuration: users, filtering by userName and PATCH; no groups, bulk or sorting. Send the workspace’s SCIM token as a bearer token.
Needs: nothing: no credential.
Answers
| Status | Body | Meaning |
|---|---|---|
| 200 | application/scim+json | OK |
| 401 | problem | No credential, or one that is not right. |
| 429 | problem | Too many requests: wait for Retry-After. |
List the workspace’s members
Section titled “List the workspace’s members”GET /public/v1/scim/v2/Users
A SCIM ListResponse of the workspace’s members, a page at a time (startIndex, count), or the one filter=userName eq “address” names.
Needs: nothing: no credential.
Parameters
| Name | In | Description |
|---|---|---|
filter | query | |
startIndex | query | |
count | query |
Answers
| Status | Body | Meaning |
|---|---|---|
| 200 | application/scim+json | OK |
| 400 | problem | The request could not be read: the problem names the field. |
| 401 | problem | No credential, or one that is not right. |
| 429 | problem | Too many requests: wait for Retry-After. |
Make a member
Section titled “Make a member”POST /public/v1/scim/v2/Users
A new account, with an address of one of the workspace’s single sign-on domains, made a member in the role the workspace gives people new (a viewer when it names none). They sign in with single sign-on.
Needs: nothing: no credential.
Answers
| Status | Body | Meaning |
|---|---|---|
| 201 | application/scim+json | Made |
| 400 | problem | The request could not be read: the problem names the field. |
| 401 | problem | No credential, or one that is not right. |
| 409 | problem | Refused as things stand: the problem says why. |
| 429 | problem | Too many requests: wait for Retry-After. |
Remove a member
Section titled “Remove a member”DELETE /public/v1/scim/v2/Users/{user_id}
Takes them out of the workspace and turns their account off.
Needs: nothing: no credential.
Parameters
| Name | In | Description |
|---|---|---|
user_id (required) | path |
Answers
| Status | Body | Meaning |
|---|---|---|
| 204 | none | Done, with nothing to say |
| 401 | problem | No credential, or one that is not right. |
| 403 | problem | Refused: the app is switched off, or this is not allowed. |
| 404 | problem | Not found, or the part is switched off. |
| 409 | problem | Refused as things stand: the problem says why. |
| 429 | problem | Too many requests: wait for Retry-After. |
Read a member
Section titled “Read a member”GET /public/v1/scim/v2/Users/{user_id}
Needs: nothing: no credential.
Parameters
| Name | In | Description |
|---|---|---|
user_id (required) | path |
Answers
| Status | Body | Meaning |
|---|---|---|
| 200 | application/scim+json | OK |
| 401 | problem | No credential, or one that is not right. |
| 404 | problem | Not found, or the part is switched off. |
| 429 | problem | Too many requests: wait for Retry-After. |
Change a member
Section titled “Change a member”PATCH /public/v1/scim/v2/Users/{user_id}
A SCIM PatchOp replacing active or displayName.
Needs: nothing: no credential.
Parameters
| Name | In | Description |
|---|---|---|
user_id (required) | path |
Answers
| Status | Body | Meaning |
|---|---|---|
| 200 | application/scim+json | OK |
| 400 | problem | The request could not be read: the problem names the field. |
| 401 | problem | No credential, or one that is not right. |
| 403 | problem | Refused: the app is switched off, or this is not allowed. |
| 404 | problem | Not found, or the part is switched off. |
| 409 | problem | Refused as things stand: the problem says why. |
| 429 | problem | Too many requests: wait for Retry-After. |
Replace a member’s name and status
Section titled “Replace a member’s name and status”PUT /public/v1/scim/v2/Users/{user_id}
Their name, and whether their account is on: off, every session of theirs ends. Only an account that belongs to this workspace alone, and is no owner, is changed.
Needs: nothing: no credential.
Parameters
| Name | In | Description |
|---|---|---|
user_id (required) | path |
Answers
| Status | Body | Meaning |
|---|---|---|
| 200 | application/scim+json | OK |
| 400 | problem | The request could not be read: the problem names the field. |
| 401 | problem | No credential, or one that is not right. |
| 403 | problem | Refused: the app is switched off, or this is not allowed. |
| 404 | problem | Not found, or the part is switched off. |
| 409 | problem | Refused as things stand: the problem says why. |
| 429 | problem | Too many requests: wait for Retry-After. |