Modify Users Console Access

Enable or disable AWS Management Console access for IAM users.

Source codePermissions

When enabling console access the passwords provided are temporary. Users will be prompted to change them upon first login.
Users will have the IAMUserChangePassword policy attached to allow the password change.

Usage

Input

Parameter Description Type Required Default value
user User with Username and Password(optional). Repeatable for multiple keys. Format: username password string Yes None
enable Enable console access bool If not disable False
disable Disable console access bool If not enable False
region Region for operation string No Session default
debug Increase log verbosity bool No False
silent Decrease log verbosity bool No False
output Output format
table
string No None
session Established session object No None

Output

Returns a list of users that failed the update:

['acme', 'foo']

Examples

Enable console access for users:

aaws iam modify_users_console_access --user acme P@ssw0rd123 --user foo P@ssw0rd112233 --enable

Disable console access for users:

aaws iam modify_users_console_access --user acme --user foo --disable