Update an existing user
- Zuletzt aktualisiert2020/04/15
Update an existing user
Use the Update User Details API to update an existing user information in the Control Room.
Prerequisites
- Edit Users permission
- Users who have
edit users
permission can update a specific user details. - JSON Web Token (JWT)
- All Control Room APIs require a JSON Web Token (JWT) to access the APIs. Generate an authentication token using the Authentication API. See Enterprise 11 Authentication API.
- URL:
http://<your_control_room_url>/v1/usermanagement/users/{ID}
.Replace the content in the angle brackets with your Control Room URL.
- Method: PUT.
- Use the Swagger definition files installed with your Control Room to test the APIs. View the available Swagger
APIs at:
http://<your_control_room_url>/swagger/
. - You can also use a REST client to complete this task.
Procedure
Note: You can also run REST requests from a command terminal. The following is a curl
request example. This example is formatted for readability. Replace the text inside
the angle brackets,
<authentication_token>
, with your
authentication token.curl -X PUT "http://<your_control_room_url>/v1/usermanagement/users/27"
-H "accept: application/json"
-H "X-Authorization: <authentication_token>"
-H "Content-Type: application/json" -d "'{
"username": "docsusermd2",
"domain": "",
"firstName": "DocsUserMHD1",
"lastName": "DocUserMHD2",
"version": 2,
"principalId": 27,
"email": "aamd@aa.com",
"description": "Created a user to create other roles and users",
"createdOn": "2019-11-26T23:44:12.937Z",
"updatedOn": "2019-11-26T23:51:39.163Z",
"roles": [{
"id": 27,
"name": "RoleBotDocsMD6",
"version": "0"
}],
"deleted": false
}'