Audit policy tags
This document describes how to use Cloud Logging to audit activities related to policy tags. For example, you can determine:
The email address for the principal that grants or removes access on a policy tag
The email address for whom the access was granted or removed
The policy tag whose access was changed
Access to logs
For information about the permission you need to view logs, see the Cloud Logging access control guide.
Viewing logs for policy tag events
Go to the Logs Explorer page in the Google Cloud console.
In the resources drop-down list, click Audited Resource, click Audited Resources again, and then click datacatalog.googleapis.com. You will see recent audit log entries of Data Catalog resources.
To view the log entries, select the Data Catalog
SetIamPolicymethod.Click the log entry to see details about the call to the
SetIamPolicymethod.Click the log entry fields to see details for the
SetIamPolicyentry.Click
protoPayload, then clickauthenticationInfoto see theprincipalEmailfor the entity that set the IAM policy.Click
protoPayload, clickrequest, clickpolicy, and then clickbindingsto see the bindings, including principals and roles, that were changed.
What's next
Learn about best practices for policy tags.