Permitting IAM Users to Change their Own Passwords

 







To Allow All IAM Users Change Their Own Passwords

  • Firstly, sign-in to the AWS Management Console and open IAM Console at https://console.aws.amazon.com/iam/.

  • Choose Account Settings in the navigation pane.

  • If your account uses the default password policy, you have to select Change Password policy in the password policy section. However, if you use custom password policy, you have to choose Change.

  • Now, select Allow users to change their own password and then Save changes which allows all the users in the account access to the iam: ChangePassword action for only their user and to the iam: GetAccountPasswordPolicy action.

  • Provide the users with the instructions for changing their passwords. 

To Allow Selected IAM Users Change Their Own Passwords

  • First of all, sign-in to the AWS Management Console and open IAM Console at https://console.aws.amazon.com/iam/.

  • Choose Account Settings in the navigation pane.

  • Don't select Change Password policy in the password policy section as it will allow all the users to change their passwords.

  • If the users who are allowed to change their passwords doesn't exist, then, create them.

  • An IAM group of the users with permissions to change their passwords should be created and then the users from the previous step should be added with them. (optional)

  • Now, assign a policy that can allow access to the ChangePassword action, letting the users to change only their own passwords from the console, the AWS CLI, Tools for Windows PowerShell, or the API. The access to the GetAccountPasswordPolicy action is also provided which helps the users to view the current password policy.

  • Provide the users with the instructions for changing their passwords. 

How an IAM User Changes Their Own Password?

If the permission for changing your own IAM user password is already given, then, a special page present in the AWS Management Console (along with the AWS CLI or AWS API) can be used to do this.

To Change Your Own IAM User Password (Console)

  1. Firstly, sign-in to the IAM console via your AWS account ID or account alias, IAM username, and password.
  2. Now, select a username, and then My Security Credentials in the upper right navigation bar.
  3. Choose Change password on the AWS IAM Credentials.
  4. After that, you can enter your current password for Current Password as well as New password for the new one and then Confirm it. Select Change Password.

How IAM Users Change Their Own Password (AWS CLI or AWS API)?

The following methods shows how IAM users can use the AWS CLI or AWS API to change their own password.

To Change Your Own IAM Password Use:

  1. AWS CLI: aws iam change-password.
  2. AWS API: ChangePassword
































Comments

Popular posts from this blog

Query, Visualize, & Monitor Data in Azure Sentinel

Planning for Implementing SAP Solutions on Azure (Part 2 of 5)

Work with String Data Using KQL Statements