Question

Accenture
AU
Last activity: 27 Feb 2025 9:38 EST
Operator ID password update not working
My requirement is to update the password for an admin operator in Pega using an API. For eg [email protected]. In my custom activity, I am setting the new password to pyPwdnew and after that validating it using pzValidateOperatorPassword Activity which will set the new password to current password in the last step (pyPwdCurrent =pyPwdNew)
After this, I am doing an Open-save and Commit. When I test the API, it has successfully updated the password, but when I try to login to the environment using the new password which I updated using API, it is throwing Invalid user id/password.
I even tested the API again by providing a different current password and it errored out " current password does not match" which means the new password is updated for the Operator record.
Not sure why it is not accepting the new password for login. Appreciate your thoughts and suggestions.
Also is there any way where we can programmatically use the username and password to login to the environment once we update the password in the custom activity?
Appreciate your suggestions.