I'm resurrecting this dead thread because I have the need to audit changes to arbitrary LREL tables and I can't be the only one. grpmem is a good example of this and one of the actual LREL tables I need to audit, so I'll use it as an example.
Building on Brett.Zipkin's trigger I managed to fire the trigger on insert, update and delete. He got it almost right, there was only two minor changes I made to his trigger and it started firing:
PRE_VALIDATE audit_fields_site(persistent_id, audit_userid, manager_flag, notify_flag, member) 52 FILTER( EVENT("INSERT UPDATE DELETE") );
So I changed the evaluation phase from POST_CI to PRE_VALIDATE and removed the NX_AUDIT_INS/NX_AUDIT_UPD/NX_AUDIT_DEL from the filter.
The error comes form the fact that the trigger calls a method that doesn't exist. One must either implement it or call an existing method. Didn't explore the options yet so at this time I don't know whether there is a generic audit method that can be called or if I just need to implement it myself, but at least when editing the manager/notify flag on the group details the audit_userid is not defined, so it'll require some special love.
I'll reply to this thread if I have more findings to share.