Reset a vault user password and unsuspend via REST API call

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
PAM Self-Hosted Articles
2 min read
L0 Member
No ratings

When components user passwords get out of sync, the component disconnects from the vault, and a "re-cred" process is required in order to fix the component's connection to the vault.

 

The re-cred process begins with unsuspending the component user in the vault and resetting its password, followed by re-creating the component credential files.

The first part of the process is traditionally done via PA Client.

 

The script provided in this KB uses PVWA RESET API calls instead of using the PA-Client or PACLI.

This is script is relevant for on-premises deployment when re-creding the following components:

PVWA, CPM, PSM/PSMP, CP/CCP, DR, ENE, EVD, PAReplicate

 

NOTES

  • The script requires the PVWA website to be up and running, hence it will not be useful if all PVWA's in the environment are disconnected.
  • This script is provided as an example only. Idira support will not be able to troubleshoot issues with the script code.

Steps

Script Usage:

  1. Download the attached 'ResetUserPassword.ps1' file from the KB
  2. Run the script on any machine that has network access to the PVWA website
  3. When prompted, enter the URL to the PVWA site. For example: https://pvwa.cybr.com
  4. When prompted, enter the vault administrator credentials
  5. When prompted, enter the component user username. For example: PasswordManager
  6. When prompted, enter the component user new password. Make sure to meet the password policy requirements

 

Script Flow:
The script will authenticate to the PVWA with the provided administrator credentials, it will then query for the component user's user ID. Once the component user information is gathered, it will continue to unsuspend the user (works also if the user is not suspended), and set the user's new password. Then it will log off the session.

 

Next Actions:

Once the script execution is complete, recreate the component's user credential files as you normally would, using the new password that was set for the user by the script.

For complete instructions per component, please visit the KB below:
Cred File Reset Article List 

Rate this article: