Path parameters
-
Identifier of the group to modify
Body Required
-
Value is
urn:ietf:params:scim:api:messages:2.0:PatchOp
.
PATCH
/Groups/{groupId}
Add member
curl --request PATCH \
--url 'https://setup.adra.com/api/organizations/your-org-id/scim/Groups/group-id' \
--header 'Authorization: Bearer YOUR_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
"schemas": ["urn:ietf:params:scim:api:messages:2.0:PatchOp"],
"Operations": [{
"op": "add",
"path": "members",
"value": [{ "value": "user-id" }]
}]
}'
curl --request PATCH \
--url 'https://setup.adra.com/api/organizations/your-org-id/scim/Groups/group-id' \
--header 'Authorization: Bearer YOUR_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
"schemas": ["urn:ietf:params:scim:api:messages:2.0:PatchOp"],
"Operations": [{
"op": "remove",
"path": "members",
"value": [{ "value": "user-id" }]
}]
}'
Request examples
Add a member to group
{
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:PatchOp"
],
"Operations": [
{
"op": "add",
"path": "members",
"value": [
{
"value": "user-id-123"
}
]
}
]
}
{
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:PatchOp"
],
"Operations": [
{
"op": "remove",
"path": "members",
"value": [
{
"value": "user-id-123"
}
]
}
]
}
{
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:PatchOp"
],
"Operations": [
{
"op": "remove",
"path": "members"
}
]
}
{
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:PatchOp"
],
"Operations": [
{
"op": "replace",
"path": "members",
"value": [
{
"value": "user-id-1"
},
{
"value": "user-id-2"
}
]
}
]
}