curl --request PATCH \
--url https://api.sandbox.tesouro.com/identity/v1/users/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"address1": "<string>",
"address2": "<string>",
"city": "<string>",
"country": "<string>",
"isExpenseApprover": true,
"jobTitle": "<string>",
"name": "<string>",
"permissions": {
"grant": [
"<string>"
],
"revoke": [
"<string>"
]
},
"phoneNumber": "<string>",
"postalCode": "<string>",
"reportingManagerUserId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"role": "ADMIN",
"stateOrProvince": "<string>"
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email": "<string>",
"isExpenseApprover": true,
"name": "<string>",
"organizationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"role": "ADMIN",
"status": "<string>",
"address1": "<string>",
"address2": "<string>",
"city": "<string>",
"country": "<string>",
"jobTitle": "<string>",
"phoneNumber": "<string>",
"postalCode": "<string>",
"reportingManagerUserId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"stateOrProvince": "<string>"
}Requires user:profile:write (own org) or user:profile:write:all (cross-org). A caller cannot update their own profile.
Token types: APP, USER
curl --request PATCH \
--url https://api.sandbox.tesouro.com/identity/v1/users/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"address1": "<string>",
"address2": "<string>",
"city": "<string>",
"country": "<string>",
"isExpenseApprover": true,
"jobTitle": "<string>",
"name": "<string>",
"permissions": {
"grant": [
"<string>"
],
"revoke": [
"<string>"
]
},
"phoneNumber": "<string>",
"postalCode": "<string>",
"reportingManagerUserId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"role": "ADMIN",
"stateOrProvince": "<string>"
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email": "<string>",
"isExpenseApprover": true,
"name": "<string>",
"organizationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"role": "ADMIN",
"status": "<string>",
"address1": "<string>",
"address2": "<string>",
"city": "<string>",
"country": "<string>",
"jobTitle": "<string>",
"phoneNumber": "<string>",
"postalCode": "<string>",
"reportingManagerUserId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"stateOrProvince": "<string>"
}Documentation Index
Fetch the complete documentation index at: https://docs.tesouro.com/llms.txt
Use this file to discover all available pages before exploring further.
Application (M2M) OAuth2 access token (client credentials).
The user ID to update.
Cancellation token.
Explicit grant/revoke deltas for the user's permissions. Permissions not listed in either array are left untouched, so a caller managing only a subset of permissions does not have to round-trip every permission the target already holds.
Show child attributes
The ID of the user's reporting manager. Three states: absent = leave unchanged, null = clear, value = set to the provided ID.
ADMIN, BOOKKEEPER, EMPLOYEE, TREASURY_MANAGER User updated successfully.
ADMIN, BOOKKEEPER, EMPLOYEE, TREASURY_MANAGER Was this page helpful?