Skip to main content
Trailblazer
June 11, 2025
Question

Password rotation through API user

  • June 11, 2025
  • 5 replies
  • 211 views

Hello All,

I am looking for guidance for API script which used for password rotation of any managed account.

We are currently using shell script for password rotation, but it seems failing for Invalid user/Password event though password fetch script is working fine for same user.

If anyone has sample script, please share or if anyone knows pointer to develop new script for this requirement please help.

 

Thanks,

Prasad

 

5 replies

BeyondTrust Employee
June 12, 2025

If your API for password retrieval is working then your Password rotation API is likely the issue. You can take reference on this KB and there are some pointers to look at the error code or which logs to see what the issue is.

https://beyondtrustcorp.service-now.com/csm?id=kb_article_view&sysparm_article=KB0017018

Trailblazer
June 12, 2025

@prasadp87  ​@Howard 

I have the same problem.
What would be the script to search for passwords for users? Please

 

BeyondTrust Employee
June 13, 2025

In the KB0017018 that I have provided there is a sample powershell script (API retrieve Password.ps1).

prasadp87Author
Trailblazer
June 15, 2025

Hello ​@Howard ,

Do you have any sample script to rotate credentials? or any KBA that can guide for this.

Thanks,

Prasad

BeyondTrust Employee
June 16, 2025

Please take a look at the end point listed below in our API Guide (linked below as well):

POST ManagedAccounts/{managedAccountID}/Credentials/Change

https://docs.beyondtrust.com/bips/docs/password-safe-apis