EVD - SQL to list out all the Safes assigned with CPM

EVD - SQL to list out all the Safes assigned with CPM

81
Created On 11/10/26 11:03 AM - Last Modified 11/10/26 16:06 PM


Objective


This article demonstrates how customer can leverage on existing EVD - MSSQL deployment in their Idira environment to quickly verify the CPM assignment status across all the safes within the vault.

Environment


11.5;12.2;13.0;13.2 Privileged Access Manager (PAM, self-hosted) Export Vault Data

Procedure


To identify the full list of Safes with their assigned CPM(s), please run the following EVD SQL statement:
----------------------------------
Select CASSafeName, '' as CAOOwnerName from CASafes where CASSafeName not in ( Select distinct CAOSafeName from CAOwners where CAOOwnerName in (select CAUUserName from CAUsers where CAUUserTypeID=31)) UNION
SELECT distinct CAOSafeName,CAOOwnerName FROM CAOwners where CAOOwnerName in (select CAUUserName from CAUsers where CAUUserTypeID=31) order by 1
--------------------------------------
Note: For the safes where there is no corresponding CPM users assigned, an empty value will appear in CAOOwnerName column. For Safes with more than one CPM user assigned, you will see multiple records in the SQL result.
 


Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000001LYjCAM&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail