PVWA API - PASWS031E - Error Message: Safe [SafeName] was not found
117
Created On 11/10/26 10:57 AM - Last Modified 11/10/26 15:58 PM
Symptom
When performing an API call such as add accounts to a safe, you get the following error:
Error:
{
"Details": [
{
"ParameterName": "safeName",
"ErrorCode": "PASWS031E",
"ErrorMessage": "Safe [SafeName] was not found"
}
],
"ErrorCode": "PASWS167E",
"ErrorMessage": "There are some invalid parameters"
}
But the safe specified does exist, and the user running the script has sufficient safe permissions
Environment
10.10;11.6;12.2 Privileged Access Manager (PAM, self-hosted) Password Vault Web Access;Cyber-Ark API/SDK PVWA API
Cause
The safe does not have the correct sharing settings.
Resolution
Make sure the safe has the correct sharing settings in PrivateArk Client:
After sharing the safe, make sure to generate a new authorization token, to mimic a re-logon event.