Modifies the multi-factor authentication (MFA) setting of a single user.
Operation description
If you call the UpdateMFAAuthenticationSettings operation to set the MFAAuthenticationSettings parameter to Byuser, user-specific settings are applied. Then, you must call the UpdateUserMFAAuthenticationSettings operation to configure MFA for each user.
By default, the MFAAuthenticationSettings parameter is set to Enabled for a new user.
This topic provides an example on how to enable MFA for the user named u-00q8wbq42wiltcrk****.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cloudsso:UpdateUserMFAAuthenticationSettings |
update |
*User
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| UserId |
string |
Yes |
The ID of the user. |
u-00q8wbq42wiltcrk**** |
| UserMFAAuthenticationSettings |
string |
Yes |
Specifies whether to enable MFA for the user. Valid values:
|
Enabled |
| DirectoryId |
string |
Yes |
The ID of the directory. |
d-00fc2p61**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
5E6C6049-E9B0-5F6F-A104-6150E3B1F4D7 |
Examples
Success response
JSON format
{
"RequestId": "5E6C6049-E9B0-5F6F-A104-6150E3B1F4D7"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.