doc/api/scim.md
{{< details >}}
{{< /details >}}
{{< history >}}
{{< /history >}}
Use this API to manage SCIM identities in groups.
Prerequisites:
This API differs from the internal group SCIM API and the internal instance SCIM API which both require a SCIM token.
{{< history >}}
{{< /history >}}
Retrieves SCIM identities for a group.
GET /groups/:id/scim/identities
Supported attributes:
| Attribute | Type | Required | Description |
|---|---|---|---|
id | integer or string | Yes | The ID or URL-encoded path of the group |
If successful, returns 200 and the following
response attributes:
| Attribute | Type | Description |
|---|---|---|
extern_uid | string | External UID for the user |
user_id | integer | ID for the user |
active | boolean | Status of the identity |
Example response:
[
{
"extern_uid": "be20d8dcc028677c931e04f387",
"user_id": 48,
"active": true
}
]
Example request:
curl --location --request GET \
--url "https://gitlab.example.com/api/v4/groups/33/scim/identities" \
--header "PRIVATE-TOKEN: <PRIVATE-TOKEN>"
{{< history >}}
{{< /history >}}
Retrieves a single SCIM identity.
GET /groups/:id/scim/:uid
Supported attributes:
| Attribute | Type | Required | Description |
|---|---|---|---|
id | integer | yes | The ID or URL-encoded path of the group |
uid | string | yes | External UID of the user. |
Example request:
curl --location --request GET \
--url "https://gitlab.example.com/api/v4/groups/33/scim/be20d8dcc028677c931e04f387" \
--header "PRIVATE-TOKEN: <PRIVATE TOKEN>"
Example response:
{
"extern_uid": "be20d8dcc028677c931e04f387",
"user_id": 48,
"active": true
}
extern_uid field for a SCIM identity{{< history >}}
{{< /history >}}
Updates extern_uid field for a SCIM identity.
Fields that can be updated are:
| SCIM/IdP field | GitLab field |
|---|---|
id/externalId | extern_uid |
PATCH /groups/:groups_id/scim/:uid
Parameters:
| Attribute | Type | Required | Description |
|---|---|---|---|
id | integer or string | yes | The ID or URL-encoded path of the group |
uid | string | yes | External UID of the user. |
Example request:
curl --location --request PATCH \
--url "https://gitlab.example.com/api/v4/groups/33/scim/be20d8dcc028677c931e04f387" \
--header "PRIVATE-TOKEN: <PRIVATE TOKEN>" \
--form "extern_uid=yrnZW46BrtBFqM7xDzE7dddd"
{{< history >}}
{{< /history >}}
Deletes a single SCIM identity.
DELETE /groups/:id/scim/:uid
Supported attributes:
| Attribute | Type | Required | Description |
|---|---|---|---|
id | integer | yes | The ID or URL-encoded path of the group. |
uid | string | yes | External UID of the user. |
Example request:
curl --location --request DELETE \
--url "https://gitlab.example.com/api/v4/groups/33/scim/yrnZW46BrtBFqM7xDzE7dddd" \
--header "PRIVATE-TOKEN: <your_access_token>"
Example response:
{
"message" : "204 No Content"
}