Add or Remove group members

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

This API allows you to update a group by adding or removing members. Use this API when a user is added to or removed from a group in your identity provider, and you need to reflect that change in Intouch. When a member is added, they are automatically assigned the role the group maps to in Intouch. When a member is removed, that role is revoked, keeping your identity provider and Intouch in sync.

Example request

curl --location --request PATCH 'https://eu.api.capillarytech.com/launchpad/api/v2/Groups/group-b4ca8dbc-5a46-4946-bda9-cf1d7284f80e' \
--header 'Authorization: Bearer cf20eaf1a6e55a88560270461932efdad1f407ed3ba201c12f9dc097fa5cf35c' \
--header 'Content-Type: application/scim+json' \
--data '{
      "schemas": ["urn:ietf:params:scim:api:messages:2.0:PatchOp"],
      "Operations": [
        {
          "op": "add",
          "path": "members",
          "value": [
            { "value": "scim-1780487313052" }
          ]
        }
      ]
    }'
curl --location --request PATCH 'https://eu.api.capillarytech.com/launchpad/api/v2/Groups/group-b4ca8dbc-5a46-4946-bda9-cf1d7284f80e' \
--header 'Authorization: Bearer cf20eaf1a6e55a88560270461932efdad1f407ed3ba201c12f9dc097fa5cf35c' \
--header 'Content-Type: application/scim+json' \
--data '{
      "schemas": ["urn:ietf:params:scim:api:messages:2.0:PatchOp"],
      "Operations": [
        {
          "op": "add",
          "path": "members",
          "value": [
            { "value": "scim-1780487682307" },
            { "value": "scim-1780555209515" }
          ]
        }
      ]
    }'
curl --location --request PATCH 'https://eu.api.capillarytech.com/launchpad/api/v2/Groups/group-b4ca8dbc-5a46-4946-bda9-cf1d7284f80e' \
--header 'Authorization: Bearer cf20eaf1a6e55a88560270461932efdad1f407ed3ba201c12f9dc097fa5cf35c' \
--header 'Content-Type: application/scim+json' \
--data '{
    "schemas": ["urn:ietf:params:scim:api:messages:2.0:PatchOp"],
    "Operations": [
      {
        "op": "remove",
        "path": "members",
        "value": [
          { "value": "scim-1780487313052" }
        ]
      }
    ]
  }'
curl --location --request PATCH 'https://eu.api.capillarytech.com/launchpad/api/v2/Groups/group-b4ca8dbc-5a46-4946-bda9-cf1d7284f80e' \
--header 'Authorization: Bearer cf20eaf1a6e55a88560270461932efdad1f407ed3ba201c12f9dc097fa5cf35c' \
--header 'Content-Type: application/scim+json' \
--data '{
    "schemas": ["urn:ietf:params:scim:api:messages:2.0:PatchOp"],
    "Operations": [
      {
        "op": "remove",
        "path": "members",
        "value": [
          { "value": "scim-1780487682307" },
          { "value": "scim-1780555209515" }
        ]
      }
    ]
  }'

Prerequisites

  • A valid SCIM bearer token for your organization, generated using the Create SCIM Token API. Pass it in the request header as Authorization: Bearer {token}.

Path parameters

FieldTypeRequiredDescription
idStringYesThe unique SCIM ID of the group to update. This is returned when the group is created. For example, group-56b8332d-3145-42e1-a28c-99e13005aa1f.

Request body parameters

FieldTypeRequiredDescription
schemasArrayYesIdentifies this request as a SCIM partial update. Must be urn:ietf:params:scim:api:messages:2.0:PatchOp.
OperationsArrayYesList of operations to apply to the group. Multiple operations can be sent in a single request.
Operations.opStringYesThe action to perform. Use add to add members to the group, remove to remove members, or replace to update the group name or replace the members list entirely. Case-insensitive.
Operations.pathStringYesThe field on the group to apply the operation to. Use members to add or remove users, or displayName to update the group name.
Operations.valueArrayYesThe members to add or remove. Each entry represents a user to be added or removed from the group.
Operations.value.valueStringYesThe SCIM user ID of the member being added or removed from the group.

Example response

{
    "schemas": [
        "urn:ietf:params:scim:schemas:core:2.0:Group"
    ],
    "id": "group-b4ca8dbc-5a46-4946-bda9-cf1d7284f80e",
    "displayName": "Group Name",
    "members": [
        {
            "value": "scim-1780487313052"
        }
    ],
    "externalId": null,
    "roleId": 18519,
    "orgId": 1231
}
{
    "schemas": [
        "urn:ietf:params:scim:schemas:core:2.0:Group"
    ],
    "id": "group-b4ca8dbc-5a46-4946-bda9-cf1d7284f80e",
    "displayName": "Group Name",
    "members": [
        {
            "value": "scim-1780487682307"
        },
        {
            "value": "scim-1780555209515"
        }
    ],
    "externalId": null,
    "roleId": 18519,
    "orgId": 1231
}
{
    "schemas": [
        "urn:ietf:params:scim:schemas:core:2.0:Group"
    ],
    "id": "group-b4ca8dbc-5a46-4946-bda9-cf1d7284f80e",
    "displayName": "Group Name",
    "members": [],
    "externalId": null,
    "roleId": 18519,
    "orgId": 1231
}
{
    "schemas": [
        "urn:ietf:params:scim:schemas:core:2.0:Group"
    ],
    "id": "group-b4ca8dbc-5a46-4946-bda9-cf1d7284f80e",
    "displayName": "Group Name",
    "members": [],
    "externalId": null,
    "roleId": 18519,
    "orgId": 1231
}

Response parameters

FieldTypeDescription
schemasArrayIdentifies the SCIM resource type of the updated group. Returns urn:ietf:params:scim:schemas:core:2.0:Group.
idStringThe unique SCIM ID of the group that was updated.
displayNameStringThe name of the group, which maps to a role in Intouch.
membersArrayThe current list of members in the group after the patch operations were applied.
members.valueStringThe user ID of the member remaining in the group.
externalIdStringThe external identifier for the group from the identity provider. Returns null if not set.
roleIdNumberThe ID of the Intouch role this group is mapped to. Members added to the group are assigned this role; members removed have it revoked.
orgIdNumberThe ID of the organization this group belongs to.

Error codes

CodeTypeDescription
400ErrorOrganization context is missing from the SCIM token.
400ErrorThe group's displayName does not map to a valid role in Intouch.
404ErrorNo group found for the provided id.

Path Params
string
required
Body Params
schemas
array of strings
schemas
Operations
array of objects
Operations
Headers
string
Response

Language
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json