Organization Policy audit logging

This document describes audit logging for Organization Policy Service. Google Cloud servicesgenerate audit logs that record administrative and access activities within your Google Cloud resources.For more information about Cloud Audit Logs, see the following:

Notes

This document describes audit logging for the service which manages organization policies. For details on Policy Denied logs themselves seeVPC Service Controls.The v1 version of the Organization Policy API is hosted undercloudresourcemanager.googleapis.com, see theResource Manager audit logging page for more details.

Service name

Organization Policy Service audit logs use the service nameorgpolicy.googleapis.com.Filter for this service:

protoPayload.serviceName="orgpolicy.googleapis.com"

Methods by permission type

Each IAM permission has atype property, whose value is an enumthat can be one of four values:ADMIN_READ,ADMIN_WRITE,DATA_READ, orDATA_WRITE. When you call a method,Organization Policy Service generates an audit log whose category is dependent on thetype property of the permission required to perform the method.Methods that require an IAM permission with thetype property valueofDATA_READ,DATA_WRITE, orADMIN_READ generateData Access audit logs.Methods that require an IAM permission with thetype property valueofADMIN_WRITE generateAdmin Activity audit logs.

API methods in the following list that are marked with (LRO) are long-running operations (LROs).These methods usually generate two audit log entries: one when the operation starts andanother when it ends. For more information seeAudit logs for long-running operations.
Permission typeMethods
ADMIN_READgoogle.cloud.orgpolicy.v2.OrgPolicy.GetCustomConstraint
google.cloud.orgpolicy.v2.OrgPolicy.GetEffectivePolicy
google.cloud.orgpolicy.v2.OrgPolicy.GetPolicy
google.cloud.orgpolicy.v2.OrgPolicy.ListConstraints
google.cloud.orgpolicy.v2.OrgPolicy.ListCustomConstraints
google.cloud.orgpolicy.v2.OrgPolicy.ListPolicies
ADMIN_WRITEgoogle.cloud.orgpolicy.v2.OrgPolicy.CreateCustomConstraint
google.cloud.orgpolicy.v2.OrgPolicy.CreatePolicy
google.cloud.orgpolicy.v2.OrgPolicy.DeleteCustomConstraint
google.cloud.orgpolicy.v2.OrgPolicy.DeletePolicy
google.cloud.orgpolicy.v2.OrgPolicy.UpdateCustomConstraint
google.cloud.orgpolicy.v2.OrgPolicy.UpdatePolicy

API interface audit logs

For information about how and which permissions are evaluated for each method,see the Identity and Access Management documentation for Organization Policy Service.

google.cloud.orgpolicy.v2.OrgPolicy

The following audit logs are associated with methods belonging togoogle.cloud.orgpolicy.v2.OrgPolicy.

CreateCustomConstraint

  • Method:google.cloud.orgpolicy.v2.OrgPolicy.CreateCustomConstraint
  • Audit log type:Admin activity
  • Permissions:
    • orgpolicy.customConstraints.create - ADMIN_WRITE
  • Method is a long-running or streaming operation:No.
  • Filter for this method: protoPayload.methodName="google.cloud.orgpolicy.v2.OrgPolicy.CreateCustomConstraint"

CreatePolicy

  • Method:google.cloud.orgpolicy.v2.OrgPolicy.CreatePolicy
  • Audit log type:Admin activity
  • Permissions:
    • orgpolicy.policies.create - ADMIN_WRITE
  • Method is a long-running or streaming operation:No.
  • Filter for this method: protoPayload.methodName="google.cloud.orgpolicy.v2.OrgPolicy.CreatePolicy"

DeleteCustomConstraint

  • Method:google.cloud.orgpolicy.v2.OrgPolicy.DeleteCustomConstraint
  • Audit log type:Admin activity
  • Permissions:
    • orgpolicy.customConstraints.delete - ADMIN_WRITE
  • Method is a long-running or streaming operation:No.
  • Filter for this method: protoPayload.methodName="google.cloud.orgpolicy.v2.OrgPolicy.DeleteCustomConstraint"

DeletePolicy

  • Method:google.cloud.orgpolicy.v2.OrgPolicy.DeletePolicy
  • Audit log type:Admin activity
  • Permissions:
    • orgpolicy.policies.delete - ADMIN_WRITE
  • Method is a long-running or streaming operation:No.
  • Filter for this method: protoPayload.methodName="google.cloud.orgpolicy.v2.OrgPolicy.DeletePolicy"

GetCustomConstraint

  • Method:google.cloud.orgpolicy.v2.OrgPolicy.GetCustomConstraint
  • Audit log type:Data access
  • Permissions:
    • orgpolicy.customConstraints.get - ADMIN_READ
  • Method is a long-running or streaming operation:No.
  • Filter for this method: protoPayload.methodName="google.cloud.orgpolicy.v2.OrgPolicy.GetCustomConstraint"

GetEffectivePolicy

  • Method:google.cloud.orgpolicy.v2.OrgPolicy.GetEffectivePolicy
  • Audit log type:Data access
  • Permissions:
    • orgpolicy.policy.get - ADMIN_READ
  • Method is a long-running or streaming operation:No.
  • Filter for this method: protoPayload.methodName="google.cloud.orgpolicy.v2.OrgPolicy.GetEffectivePolicy"

GetPolicy

  • Method:google.cloud.orgpolicy.v2.OrgPolicy.GetPolicy
  • Audit log type:Data access
  • Permissions:
    • orgpolicy.policy.get - ADMIN_READ
  • Method is a long-running or streaming operation:No.
  • Filter for this method: protoPayload.methodName="google.cloud.orgpolicy.v2.OrgPolicy.GetPolicy"

ListConstraints

  • Method:google.cloud.orgpolicy.v2.OrgPolicy.ListConstraints
  • Audit log type:Data access
  • Permissions:
    • orgpolicy.constraints.list - ADMIN_READ
  • Method is a long-running or streaming operation:No.
  • Filter for this method: protoPayload.methodName="google.cloud.orgpolicy.v2.OrgPolicy.ListConstraints"

ListCustomConstraints

  • Method:google.cloud.orgpolicy.v2.OrgPolicy.ListCustomConstraints
  • Audit log type:Data access
  • Permissions:
    • orgpolicy.customConstraints.list - ADMIN_READ
  • Method is a long-running or streaming operation:No.
  • Filter for this method: protoPayload.methodName="google.cloud.orgpolicy.v2.OrgPolicy.ListCustomConstraints"

ListPolicies

  • Method:google.cloud.orgpolicy.v2.OrgPolicy.ListPolicies
  • Audit log type:Data access
  • Permissions:
    • orgpolicy.policies.list - ADMIN_READ
  • Method is a long-running or streaming operation:No.
  • Filter for this method: protoPayload.methodName="google.cloud.orgpolicy.v2.OrgPolicy.ListPolicies"

UpdateCustomConstraint

  • Method:google.cloud.orgpolicy.v2.OrgPolicy.UpdateCustomConstraint
  • Audit log type:Admin activity
  • Permissions:
    • orgpolicy.customConstraints.update - ADMIN_WRITE
  • Method is a long-running or streaming operation:No.
  • Filter for this method: protoPayload.methodName="google.cloud.orgpolicy.v2.OrgPolicy.UpdateCustomConstraint"

UpdatePolicy

  • Method:google.cloud.orgpolicy.v2.OrgPolicy.UpdatePolicy
  • Audit log type:Admin activity
  • Permissions:
    • orgpolicy.policies.update - ADMIN_WRITE
  • Method is a long-running or streaming operation:No.
  • Filter for this method: protoPayload.methodName="google.cloud.orgpolicy.v2.OrgPolicy.UpdatePolicy"

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-12-17 UTC.