Hi Essa Alshaikh Ali and Sachin Marawar
As Essa said "Pattern" should be the best option for such use-case.
yesterday I designed this regex " ^(grant|revoke)\s+(SELECT|INSERT|UPDATE|DELETE|EXECUTE|REFERENCES|ALTER|CONTROL|TAKE OWNERSHIP|IMPERSONATE)(\s+(SELECT|INSERT|UPDATE|DELETE|EXECUTE|REFERENCES|ALTER|CONTROL|TAKE OWNERSHIP|IMPERSONATE))*(\s+\w+)+$"
and it's matching the queries like "grant select insert update on employee to moaz" or "grant delete on employee to moaz" or "revoke select insert update on employee from moaz"
I'm still trying to develop the regex to cover most queries options,
thanks a lot for your help Essa and Sachin,
Best regards,
------------------------------
Moaz Saadeldin
------------------------------
Original Message:
Sent: Mon February 17, 2025 06:17 AM
From: Moaz Saadeldin
Subject: Guardium Policy design
Dear experts,
we have a requirement to monitor "Any action that grants or revokes object privileges from a role or account".
the example of this Use-Case will be "Grant update on employee to moaz".
example:

so we need to design a use-case that can monitor above query.
as you know Guardium only understands "GRANT" as a "sql verb"
the question is: the permission "Update" should be parsed under which attribute?
------------------------------
Moaz Saadeldin
------------------------------