Patch SCIM user
/scim/v2/Users/{id}
add and replace operations on active, userName, externalId and name.formatted, or with no path and those keys in value. active set to false removes the user from the team.
Path Parameters
Request Body
add, replace or remove (case-insensitive).
replaceactive["urn:ietf:params:scim:api:messages:2.0:PatchOp"]Response Body
Whether the user is an active member of the team.
The identity provider's ID for the user.
The Truto user ID.
UserGroup
The user's name, or their email address when no name is set.
["urn:ietf:params:scim:schemas:core:2.0:User"]The user's email address, lowercased.
jane@example.comcurl -X PATCH 'https://api.truto.one/scim/v2/Users/{id}' \
-H 'Authorization: Bearer <your_api_token>' \
-H 'Content-Type: application/json' \
-d '{
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:PatchOp"
],
"Operations": []
}'const body = {
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:PatchOp"
],
"Operations": []
};
const response = await fetch('https://api.truto.one/scim/v2/Users/{id}', {
method: 'PATCH',
headers: {
'Authorization': 'Bearer <your_api_token>',
'Content-Type': 'application/json',
},
body: JSON.stringify(body),
});
const data = await response.json();
console.log(data);import requests
url = "https://api.truto.one/scim/v2/Users/{id}"
headers = {
"Authorization": "Bearer <your_api_token>",
"Content-Type": "application/json",
}
params = {
}
payload = {
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:PatchOp"
],
"Operations": []
}
response = requests.patch(url, headers=headers, params=params, json=payload)
print(response.json())