CmdID / aws / aws cognito-idp
aws cognito-idp admin-set-user-mfa-preference
Sets the user's multi-factor authentication (MFA) preference, including which MFA options are activated, and if any are preferred. AWS CLI reference
6 options Its page in the AWS CLI reference
Options
--email-mfa-settingsUser preferences for email message MFA.--sms-mfa-settingsUser preferences for SMS message MFA.--software-token-mfa-settingsUser preferences for time-based one-time password (TOTP) MFA.--user-pool-idThe ID of the user pool where you want to set a user's MFA preferences.--usernameThe name of the user that you want to query or modify.--web-authn-mfa-settingsUser preferences for passkey MFA.