AWS Identity and Access Management
CLI Reference (API Version 2010-05-08)
« PreviousNext »
View the PDF for this guide.Go to the AWS Discussion Forum for this product.Did this page help you?  Yes | No |  Tell us about it...

iam-userenablemfadevice

Description

Enables an MFA device for a user.

Syntax

iam-userenablemfadevice -u USERNAME -s SERIAL -c1 CODE 1 -c2 CODE 2

Options

Name Description Required

-u USERNAME

Name of the user to enable the MFA device for.

Type: String

Default: None

Yes

-s SERIAL

The serial number of the MFA device.

Type: String

Default: None

Yes

-c1 CODE 1

The first authentication code for the MFA device.

Type: String

Default: None

Yes

-c2 CODE 2

The second authentication code for the MFA device.

Type: String

Default: None

Yes

Output

If the command is successful, the output is empty.

Example

The following example enables an MFA device for a user called John, with a serial number GATTxxxx32X and authentication codes of 94xx49, and 97xx97, respectively.

PROMPT> iam-userenablemfadevice -u John -s GATTxxxx32X -c1 94xx49 -c2 97xx97