How to extract the Remote Machines List via REST API for Domain Accounts
Objective
There are cases where users are unable to identify the Remote Machines that various accounts have access to when generating Reports via PVWA. Therefore, this article uses REST API to identify the Remote Machines List of each Domain Account.
Environment
12.6;13.2;14.0;14.2;14.4 Privileged Access Manager (PAM, self-hosted) Cyber-Ark API/SDK
Procedure
The Remote Machines List configured in the domain account UI can be extracted via REST API:
V10 Interface:
Classic (V9) Interface:
Step 1:
Ensure that the user is authenticated to PVWA before performing the REST API query. More information via the following link:
https://docs.cyberark.com/pam-self-hosted/latest/en/content/webservices/api-logon-lp.htm
Step 2:
Get the list of accounts using the Get Account REST API method (https://docs.cyberark.com/pam-self-hosted/latest/en/content/sdk/getaccounts.htm):
- Specify the following URL:
- https://<PVWA_Server_Address>/PasswordVault/API/Accounts
- Use the 'GET' HTTP method
- The authorization token gathered in Step 1 after authenticating to the PVWA should be specified in the Header parameter
Example in Bruno API tool:
** The following shows how the extracted information of the Remote Machines List is displayed when it is configured for the domain accounts: