Changes the status of a user.
Operation description
This topic provides an example on how to change the status of the user whose ID is u-00q8wbq42wiltcrk**** to Disabled. Users in the Disabled state cannot log on to the CloudSSO user portal.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cloudsso:UpdateUserStatus |
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**** |
| NewStatus |
string |
No |
The new status of the user. Valid values:
|
Disabled |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
EE598602-AC67-56EF-B7CC-2927C30AA0A8 |
Examples
Success response
JSON format
{
"RequestId": "EE598602-AC67-56EF-B7CC-2927C30AA0A8"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.