跳至內容

IAM admin user unable to update profile password

0

Steps to reproduce:

  1. Have an account with 'password about to expire'
  2. Land anywhere and hit 'change password'
  3. You will be taken to https://us-east-1.console.aws.amazon.com/iam/home?region=us-east-1#/security_credentials?section=IAM_credentials
  4. Now hit 'Update Console Password'
  5. I got the error (see attached) - I got this in Firefox 141.0.3 (64-bit)
  6. Go back to users Home page - https://us-east-1.console.aws.amazon.com/iamv2/home?region=us-east-1#/users
  7. Go to your own profile -> Security Credentilals -> Manage Console Access -> Reset password -> Custom Password - Try changing the password (and it worked for me)
已提問 3 個月前檢視次數 70 次
1 個回答
0

This issue occurs when an IAM user doesn't have the necessary permissions to change their own password. Even if you're an admin user, you still need specific permissions to change your password through the console.

The error you encountered is likely due to missing the iam:ChangePassword permission in your IAM policy. This is a common issue where users receive the error message "You don't have permission to iam:ChangePassword" when trying to update their password.

The reason your second approach worked (going through the Users home page to your profile) is that this path might be using a different API action than the direct "Update Console Password" option. The second method might be using iam:UpdateLoginProfile instead of iam:ChangePassword.

To properly resolve this issue and ensure you can change your password from any path in the console, you should ensure your IAM user has a policy that includes at least these permissions:

  1. iam:GetAccountPasswordPolicy - To view the password requirements
  2. iam:ChangePassword - To change your own password
  3. iam:GetUser - To access your user information
  4. iam:UpdateLoginProfile - To update your login profile

The resource for these permissions should be scoped to your own user with something like: arn:aws:iam::*:user/${aws:username}

If you continue to experience issues, check if there are any Service Control Policies (SCPs) in AWS Organizations that might be restricting these actions, or if there are any explicit deny statements in other policies attached to your user or groups.
Sources
How do I change my password on the AWS Management Console | AWS re:Post
Resolve the IAM user password error "user is not authorized or password does not comply" | AWS re:Post
User(s) can't change their passwords - can't find any deny's | AWS re:Post

已回答 3 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。