내용으로 건너뛰기

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달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

관련 콘텐츠