I created a user "UserExample" with a password
"123456".
POST scim/v2/Users
```json
{
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:User"
],
"password": "123456",
"userName": "UserExample",
"roles": [
{
"value": "data_collection",
"type": "operator"
}
]
}
```
Response
```json
{
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:User"
],
"id": "44a6f912-a58d-4103-a8f2-867ddf794b3b",
"meta": {
"resourceType": "User",
"created": "2019-10-31T21:31:37.980Z",
"lastModified": "2019-10-31T21:31:37.980Z",
"location": "https://sso.local/identity/restv1/scim/v2/Users/44a6f912-a58d-4103-a8f2-867ddf794b3b"
},
"userName": "UserExample",
"roles": [
{
"value": "data_collection",
"type": "operator"
}
]
}
```
Try get access-token use password "123456", fine, work.
After, I decided to change the user’s name, lastname, role.
PUT scim/v2/Users/44a6f912-a58d-4103-a8f2-867ddf794b3b
```json
{
"name": {
"familyName": "LasNameExampleUser",
"givenName": "FirstNameExampleUser"
},
"active": true,
"roles": [
{
"value": "data_collection",
"type": "operator"
},
{
"value": "management_processes",
"type": "operator"
}
]
}
```
Response
```json
{
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:User"
],
"id": "44a6f912-a58d-4103-a8f2-867ddf794b3b",
"meta": {
"resourceType": "User",
"created": "2019-10-31T21:31:37.980Z",
"lastModified": "2019-10-31T21:34:52.543Z",
"location": "https://sso.local/identity/restv1/scim/v2/Users/44a6f912-a58d-4103-a8f2-867ddf794b3b"
},
"userName": "UserExample",
"name": {
"familyName": "LasNameExampleUser",
"givenName": "FirstNameExampleUser",
"formatted": "FirstNameExampleUser LasNameExampleUser"
},
"active": true,
"roles": [
{
"value": "data_collection",
"type": "operator"
},
{
"value": "management_processes",
"type": "operator"
}
]
}
```
After sending the request, the password is "123456" does not work anymore.
**!!! now I need to reassign the password**
PUT scim/v2/Users/44a6f912-a58d-4103-a8f2-867ddf794b3b
```json
{
"password": "123456"
}
```