Update User - PATCH
Changed onThis API updates user details and returns the updated user details using a PATCH operation.
-
<b>Scope(Permission) required:</b> internal_user_mgt_update
-
<b>Supported Operations:</b>add, replace, remove
-
<b>Flow type:</b> Client Credentials OAuth Flow
Request
- Base URLhttps://api.asgardeo.io/t//scim2
- AuthOAuth 2Client credentials
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Unique id of the resource type.
Query parameters
SCIM defined attributes parameter.
SCIM defined excludedAttribute parameter.
Request body
Example request
{
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:PatchOp"
],
"Operations": [
{
"value": {
"nickName": "shaggy"
}
}
]
}Response
Valid user is found
Example response
{
"meta": {
"created": "2018-08-17T10:34:29.000Z",
"location": "https://api.asgardeo.io/t/{org-name}/scim2/Users/008bba85-451d-414b-87de-c03b5a1f4217",
"lastModified": "2018-08-17T10:34:29.000Z",
"resourceType": "User"
},
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:User",
"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"
],
"username": "DEFAULT/kim@gmail.com",
"id": "008bba85-451d-414b-87de-c03b5a1f4217",
"name": {
"givenName": "Kim",
"familyName": "Berry"
},
"emails": [
"kim@gmail.com"
],
"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User": {
"manager": {
"value": "Taylor"
}
},
"roles": [
{
"type": "default",
"value": "Internal/everyone"
}
]
}Changes
- breaking
the
/request property type changed fromobjecttostring - breaking
response property
emails/items/list-of-types was widened by adding typesstringto media typeapplication/scim+jsonof response200 - breaking
the
response's property type changed fromobjecttoarrayfor status - breaking
the
response's property type changed fromobjecttoarrayfor status
- breaking
- breaking
the
/request property type changed fromstringtoobject - breaking
the
response's property type changed fromarraytoobjectfor status - breaking
the
response's property type changed fromarraytoobjectfor status - info
response property
emails/items/list-of-types was narrowed by removing typesstringfrom media typeapplication/scim+jsonof response200
- breaking