Newly created safe is not in the search results of the PVWA Gen 1 API
141
Created On 11/10/26 10:54 AM - Last Modified 11/10/26 15:55 PM
Symptom
A safe newly created using REST API is not immediately returned through the Search for Safe REST API call after the following workflow:-
- Create safe
- Add owners with LDAP groups (safe creator is a member of the group)
- Remove safe creator as an explicit member (creator is still a member of the LDAP group)
After a short period, the safe is returned in through the API
Environment
12.2;12.6;14.0;14.2 Privileged Access Manager (PAM, self-hosted) Password Vault Web Access
Password Vault Web Access
Cause
The Gen 1 API call does not always perform a direct real-time lookup against the Vault for every request.
Resolution
Use the Gen 2 'Get all safes' api call with query filters (https://docs.cyberark.com/pam-self-hosted/latest/en/content/sdk/safes%20web%20services%20-%20list%20safes.htm#URLparameters)