Any user that is allowed to edit his/her profile has also the option to reset/change a password. Sometimes there is a need to restrict this option and force a user to contact the website administrator for the password change.
This policy restricts the user to change his/her password on the Profile editing screen.
Note! User still will be able to reset the password if he/she goes through the Lost Password wizard.
{
"Version": "1.0.0",
"Dependency": {
"wordpress": ">=4.8",
"advanced-access-manager": ">=6.0.0"
},
"Statement": [
{
"Effect": "deny",
"Resource": "Capability:aam_change_own_password"
}
]
}