CmdID

CmdID / aws / aws iam

aws iam update-login-profile

Changes the password for the specified IAM user. AWS CLI reference

1 example 3 options Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

To update the password for an IAM user

The following update-login-profile example creates a new password for the IAM user named Bob.

aws iam update-login-profile --user-name Bob --password <password>Identify
--user-nameThe name of the user whose password you want to update.
--passwordThe new password for the specified IAM user.

This command produces no output.

To set a password policy for the account, use the update-account-password-policy command. If the new password violates the account password policy, the command returns a PasswordPolicyViolation error.

If the account password policy allows them to, IAM users can change their own passwords using the change-password command.

Store the password in a secure place. If the password is lost, it cannot be recovered, and you must create a new one using the create-login-profile command.

For more information, see Managing passwords for IAM users in the AWS IAM User Guide.

Options

3 in the AWS CLI reference
--password-reset-requiredAllows this new password to be used only once by requiring the specified IAM user to set a new password on next sign-in.
--passwordThe new password for the specified IAM user.
--user-nameThe name of the user whose password you want to update.