CPM: <IAM user account> is not authorized to perform: iam:ChangePassword on resource: user <user ID> with an explicit deny

CPM: <IAM user account> is not authorized to perform: iam:ChangePassword on resource: user <user ID> with an explicit deny

153
Created On 11/10/26 10:59 AM - Last Modified 11/10/26 13:02 PM


Symptom


 
CPM is unable to change password for AWS IAM accounts. The following error is shown in CPM third party logs:

Info -> Change :: changepass() -> Start
ERROR -> BaseAction :: handleException() -> Got Amazon.IdentityManagement.AmazonIdentityManagementServiceException message = User: <IAM user account> is not authorized to perform: iam:ChangePassword on resource: user <user ID) with an explicit deny
ERROR -> BaseAction :: handleException() -> User is not authorized to perform password change
Info -> Change :: changepass() -> End


Environment


11.5;11.6;11.7;12.0;12.1;12.2;11.9;11.8;12.4;12.3;12.5;12.6;12.7;13.0;13.2 Privileged Access Manager (PAM, self-hosted);Privilege Cloud Central Policy Manager (CPM) CPM
AWS


Cause


1. The effected IAM user is not allowed to change his/her own password
2. The password policy for IAM account does not match the password policy in the AWS platform


Resolution


1. "Allow users to change their own password" is not enabled in AWS IAM Console and the effected user is not added to an IAM group for users who are allowed to change their passwords. Request the AWS administrator to add the effect user to the IAM group which they have created.

2. Verify that the password policy matched the password policy in the AWS platform.

In AWS:
a) Sign in to the AWS Management Console and navigate to IAM console
b) Click Account Settings.
c) In the Password Policy section, take note of the password policy -
Example:
image.png

In PVWA:
a) Sign in to PVWA and navigate to Platform settings
b) Select the AWS platform and click on Edit
c) Navigate to Automatic Password Management > Generate Password
Example:
image.png



















Match the password policy to that of the AWS password policy. (in this example the password length is shorter than the AWS policy)
d) Update the policy and safe the changes
e) Restart the CPM service for the policy to take immediate effect.
f) Perform password and verify status.  


Additional Information


Details

SYMPTOM:
 
CPM is unable to change password for AWS IAM accounts. The following error is shown in CPM third party logs:
 
Info -> Change :: changepass() -> Start
ERROR -> BaseAction :: handleException() -> Got Amazon.IdentityManagement.AmazonIdentityManagementServiceException message = User: <IAM user account> is not authorized to perform: iam:ChangePassword on resource: user <user ID) with an explicit deny
ERROR -> BaseAction :: handleException() -> User is not authorized to perform password change
Info -> Change :: changepass() -> End
 
PROBLEM:
 
1. The effected IAM user is not allowed to change his/her own password
2. The password policy for IAM account does not match the password policy in the AWS platform
 
SOLUTION:
 
1. "Allow users to change their own password" is not enabled in AWS IAM Console and the effected user is not added to an IAM group for users who are allowed to change their passwords. Request the AWS administrator to add the effect user to the IAM group which they have created.
 
2. Verify that the password policy matched the password policy in the AWS platform.
 
In AWS:
a) Sign in to the AWS Management Console and navigate to IAM console
b) Click Account Settings.
c) In the Password Policy section, take note of the password policy -
Example:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
In PVWA:
a) Sign in to PVWA and navigate to Platform settings
b) Select the AWS platform and click on Edit
c) Navigate to Automatic Password Management > Generate Password
Example:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Match the password policy to that of the AWS password policy. (in this example the password length is shorter than the AWS policy)
d) Update the policy and safe the changes
e) Restart the CPM service for the policy to take immediate effect.
f) Perform password and verify status.  
 
 



Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000001IFuCAM&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail