Enables or disables multi-factor authentication (MFA) for users in a directory.
Operation description
When a CloudSSO administrator enables username-password logon for users, CloudSSO enables MFA by default to enhance security. Administrators can also call this operation to disable or re-enable MFA as needed.
This example enables MFA for users.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cloudsso:SetMFAAuthenticationStatus |
update |
*Directory
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DirectoryId |
string |
Yes |
The ID of the directory. |
d-00fc2p61**** |
| MFAAuthenticationStatus |
string |
No |
The MFA status. Valid values:
|
Enabled |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
14E2B1A9-7713-5E6F-8409-8DE12DF51AF4 |
Examples
Success response
JSON format
{
"RequestId": "14E2B1A9-7713-5E6F-8409-8DE12DF51AF4"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.