Difference between revisions of "Iam:ChangePassword (Policy)"

From wikieduonline
Jump to navigation Jump to search
Line 2: Line 2:
 
  <code>[[iam]]:ChangePassword</code>
 
  <code>[[iam]]:ChangePassword</code>
  
Error:
+
== Errors ==
 
* <code>Either user is not authorized to perform iam:ChangePassword or entered password does not comply with account password [[policy]] set by administrator</code>
 
* <code>Either user is not authorized to perform iam:ChangePassword or entered password does not comply with account password [[policy]] set by administrator</code>
  

Revision as of 12:51, 1 November 2021

iam:ChangePassword

Errors

  • Either user is not authorized to perform iam:ChangePassword or entered password does not comply with account password policy set by administrator

Solution:


 An error occurred (AccessDenied) when calling the ChangePassword operation: User: arn:aws:iam::146910341356:user/MY_USERNAME is not authorized to perform: iam:ChangePassword on resource: user MY_USERNAME with an explicit deny


Examples

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": "iam:GetAccountPasswordPolicy",
      "Resource": "*"
    },
    {
      "Effect": "Allow",
      "Action": "iam:ChangePassword",
      "Resource": "arn:aws:iam::account-id-without-hyphens:user/${aws:username}"
    }
  ]
}

Related

See also

Advertising: