Skip to main content

Retrieve a managed local-account password from history

GET 

/computers/:computerId/managed-sids/:adminSid/password-history/:passwordHistoryId/password

Returns the decrypted password recorded under passwordHistoryId for a local account that is, or was, managed by Netwrix Privilege Secure for Discovery.

The body is a JSON string, for example "s3cret". Each retrieval is written to the audit log with the optional comment.

Who can call it

  • superadmin and admin tokens that belong to a directory user always.
  • user only if the computer's Offline Access Management policy has jita_or_persistent_users_can_access_passwords set to true (403 otherwise) and the user is a system administrator of the computer (403 otherwise).
  • The built-in secureone account gets a 500 error (generic {error} body) because the audit log needs a directory user record; the password is not returned.

comment is required (422 Comment required to access password) when the feature setting password_comments is enabled. Not supported on domain controllers (422 PasswordManagementNotSupportedError).

An unknown or malformed passwordHistoryId, or an entry with no stored password, is 409 Invalid Admin Password. An adminSid that is a current administrator but not a managed SID is 422 Invalid Admin ID. An adminSid that is neither a managed SID nor a current administrator returns 500 (generic {error} body); send an adminSid that is a managed SID.

Required role: superadmin or admin; user only with the OAM policy flag and system-administrator status.

Request​

Responses​

The decrypted password as a JSON string.