v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-14101465558.4 KB

The user's multi-factor authentication (MFA) preference, including which MFA options are activated, and if any are preferred. Only one factor can be set as preferred. The preferred MFA factor will be used to authenticate a user if multiple factors are activated. If multiple options are activated and no preference is set, a challenge to choose an MFA option will be returned during sign-in.

post/#X-Amz-Target=AWSCognitoIdentityProviderService.AdminSetUserMFAPreference

Headers

X-Amz-Target'AWSCognitoIdentityProviderService.AdminSetUserMFAPreference' required

Request body

Usernamestring password required

The user pool username or alias.

UserPoolIdstring required

The user pool ID.

Response

Success

AdminSetUserMFAPreferenceResponse required