Queries the multi-factor authentication (MFA) setting of a user.
Operation description
The following example queries the MFA setting of the user u-00q8wbq42wiltcrk****. The response shows that MFA is enabled for the user.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cloudsso:GetUserMFAAuthenticationSettings |
get |
*User
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| UserId |
string |
Yes |
The ID of the user. |
u-00q8wbq42wiltcrk**** |
| DirectoryId |
string |
Yes |
The ID of the CloudSSO directory. |
d-00fc2p61**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The data returned. |
||
| RequestId |
string |
The request ID. |
5B598B62-85E6-5792-9DF1-246D251B07DA |
| UserMFAAuthenticationSettings |
string |
Indicates whether MFA is enabled for the user. Valid values:
|
Enabled |
Examples
Success response
JSON format
{
"RequestId": "5B598B62-85E6-5792-9DF1-246D251B07DA",
"UserMFAAuthenticationSettings": "Enabled"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.