Modifies information about a user.
Operation description
You can modify FirstName, LastName, DisplayName, Email, and Description for a user. You cannot modify UserName for a user.
If System for Cross-domain Identity Management (SCIM) synchronization is enabled, you cannot modify information about a user that is synchronized by using SCIM.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cloudsso:UpdateUser |
update |
*User
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DirectoryId |
string |
Yes |
The ID of the directory. |
d-00fc2p61**** |
| UserId |
string |
Yes |
The ID of the user. |
u-00q8wbq42wiltcrk**** |
| NewFirstName |
string |
No |
The new first name of the user. |
Alice |
| NewLastName |
string |
No |
The new last name of the user. |
Lee |
| NewDisplayName |
string |
No |
The new display name of the user. |
AliceLee |
| NewDescription |
string |
No |
The new description of the user. |
This is a user. |
| NewEmail |
string |
No |
The new email address of the user. |
AliceLee@example.com |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| User |
object |
The information about the user. |
|
| Status |
string |
The status of the user. Valid values:
|
Enabled |
| UserName |
string |
The username of the user. |
Alice |
|
string |
The email address of the user. |
AliceLee@example.com |
|
| Description |
string |
The description of the user. |
This is a user. |
| UserId |
string |
The ID of the user. |
u-00q8wbq42wiltcrk**** |
| FirstName |
string |
The first name of the user. |
Alice |
| CreateTime |
string |
The time when the user was created. The value is displayed in UTC. |
2021-10-26T03:03:42Z |
| ProvisionType |
string |
The type of the user. Valid values:
|
Manual |
| DisplayName |
string |
The display name of the user. |
Alice |
| UpdateTime |
string |
The time when the information about the user was modified. The value is displayed in UTC. |
2021-10-26T07:32:32Z |
| LastName |
string |
The last name of the user. |
Lee |
| RequestId |
string |
The request ID. |
F44F02EC-70D1-5E51-8E8E-FA9AC4EF952A |
Examples
Success response
JSON format
{
"User": {
"Status": "Enabled",
"UserName": "Alice",
"Email": "AliceLee@example.com",
"Description": "This is a user.",
"UserId": "u-00q8wbq42wiltcrk****",
"FirstName": "Alice",
"CreateTime": "2021-10-26T03:03:42Z",
"ProvisionType": "Manual",
"DisplayName": "Alice",
"UpdateTime": "2021-10-26T07:32:32Z",
"LastName": "Lee"
},
"RequestId": "F44F02EC-70D1-5E51-8E8E-FA9AC4EF952A"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.