How to trigger Vault audit action codes 214 215 216 ?
86
Created On 11/10/26 11:02 AM - Last Modified 11/10/26 16:05 PM
Objective
Our documentation "Vault Audit Action Codes" includes codes such as 214 215 216 which are marked as "Alert".
https://docs.cyberark.com/Product-Doc/OnlineHelp/PAS/latest/en/Content/PASREF/Vault%20Audit%20Action%20Codes.htm
Users may need to know how to trigger these codes.
Environment
12.0;12.6 Privileged Access Manager (PAM, self-hosted) Vault
Procedure
If you enable SYSLOG(1,2,3,4) logging on the Vault you can see in the Vault trace logs when these codes are triggered.
To trigger them via Private Ark client or PVWA is not possible during routine usage because they are only triggered when the corresponding actions are done by a user that has the missing permissions, but if the permissions are missing then the option to do it is not available via the interface of PrivateArk Client or PVWA.
If the permissions to perform the corresponding actions are there but half way through the action the permissions are revoked while they do have the option available in the respective interface, then the audit codes are triggered.
When they are triggered then they will appear like this in the Vault trace logs:
<syslog>
<audit_record>
......(more lines in logs)
<MessageID>214</MessageID>
......(more lines in logs)
</audit_record>
</syslog>
If the permissions are missing and the user is not able to trigger these codes using PrivateArk Client or PVWA, then another way to trigger them is by using PACLI or REST API to perform the relevant calls for the actions but with a user that does not have the permissions. These codes are specifically generated only when the respective actions are taken by a user which does not have the required permissions.
For example if a user without the needed permissions (Manage Directory Mapping) attempts to use PACLI for LDAPBranchDelete then this would trigger audit code 216
https://docs.cyberark.com/Product-Doc/OnlineHelp/PAS/Latest/en/Content/PACLI/User-Management-Functions.htm?Highlight=LDAPBRANCHDELETE#LDAPBranchDelete