Database Management

DPA REST API password rotation fails after upgrade (HTTP 500 with refresh token)

DPA REST API password rotation fails with HTTP 500 after upgrade when using refresh tokens.

First published date

3/25/2026 5:33 PM

Last published date

7/29/2026 4:40 PM

Overview

After upgrading DPA to 2025.2, existing automation that rotates the DPA SQL monitoring service account password via the DPA REST API stops working.

 

Product section

Database Performance Analyzer

Cause

This has been identified as a known issue in the DPA REST API handling of tokens when the refresh token is generated for an LDAP-authenticated user, leading to the server-side exception Cannot set this token to trusted and resulting HTTP 500.

 

Resolution

Workarounds / Mitigation

  • Option 1 – Use DPA local (non-LDAP) user for refresh token
    • Generate refresh and access tokens using a DPA local user instead of an LDAP user, then update scripts accordingly.
  • Option 2 – Manual operations until the fix is applied
    • Temporarily perform password rotation and/or annotation operations manually in DPA UI or via alternative methods while waiting for a fix.

Permanent fix:

  1. Upgrade DPA to 2025.4 or any later supported version following the standard DPA upgrade procedure documented in the product guides and release notes.