Hi,
Please find the PUT request JSON payload and response payload below.
**User update Request:**
URL : https://test-oauth.com/identity/restv1/scim/v2/Users/@!3A4B.9D8B.14EC.FEC7!0001!9C14.1138!0000!1331.8BED.C70B.B7BF
Method: PUT
{
"schemas": [
"urn:ietf:params:scim:schemas:extension:gluu:2.0:User",
"urn:ietf:params:scim:schemas:core:2.0:User"
],
"name": {
"givenName": "tempcall",
"familyName": "tempcall"
},
"displayName": "tempcall testup",
"roles": [
{
"operation": null,
"value": "enterpriseadmin",
"display": null,
"primary": true,
"type": null
}
]
}
**Response:**
{
"schemas": [
"urn:ietf:params:scim:schemas:extension:gluu:2.0:User",
"urn:ietf:params:scim:schemas:core:2.0:User"
],
"id": "@!3A4B.9D8B.14EC.FEC7!0001!9C14.1138!0000!1331.8BED.C70B.B7BF",
"externalId": "1553",
"meta": {
"resourceType": "User",
"created": "2019-03-20T07:43:11.365Z",
"lastModified": "2019-03-26T09:07:51.480Z",
"location": "https://test-oauth.com/identity/restv1/scim/v2/Users/@!3A4B.9D8B.14EC.FEC7!0001!9C14.1138!0000!1331.8BED.C70B.B7BF"
},
"userName": "test02@virtual-email.com",
"name": {
"familyName": "tempcall",
"givenName": "tempcall",
"formatted": "tempcall tempcall"
},
"displayName": "tempcall testup",
"active": true,
"emails": [
{
"value": "test02@virtual-email.com"
}
],
"phoneNumbers": [
{
"value": "9966332255"
}
],
"roles": [
{
"value": "enterpriseadmin",
"primary": true
}
],
"urn:ietf:params:scim:schemas:extension:gluu:2.0:User": {
"roomNumber": "websiteid",
"mail": "test02@virtual-email.com",
"oxTrustRole": ""{\"value\":\"enterpriseuser\",\"display\":null,\"type\":null,\"primary\":null}"",
"countryCode": "91",
"street": "websitename",
"mobile": "9966332255",
"customerId": "tempcall9966222211555",
"company": "tempcall",
"oxTrustExternalId": "1553",
"uniqueUserId": "1553"
}
}
**User info response:**
Url : https://test-oauth.com/oxauth/restv1/userinfo
{
"role": "{\"operation\":null,\"value\":\"enterpriseuser\",\"display\":null,\"primary\":false,\"type\":null}",
"sub": "blZegGcK0_AyTW9kTsPyuounesNJwgEW_NkEMHK9bpU",
"externalId": "1553",
"phone_mobile_number": "9966332255",
"given_name": "tempcall",
"inum": "@!3A4B.9D8B.14EC.FEC7!0001!9C14.1138!0000!1331.8BED.C70B.B7BF",
"uniqueUserId": "1553",
"updated_at": 1552986608561,
"countryCode": "91",
"name": "tempcall tempcall",
"customerId": "tempcall9966222211555",
"company": "tempcall",
"family_name": "tempcall",
"status": "unlocked",
"email_verified": false,
"email": "test02@virtual-email.com"
}
I tried to update enterpiseuser as enterpriseadmin, but it is not updating, after PUT request to update user info, still the user info response showing role as enterpriseuser.
we need to update user role. please check.
Thanks,