Organization Policy audit logging

This document describes audit logging for Organization Policy Service. Google Cloud services generate 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 see VPC Service Controls.

Service name

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

    protoPayload.serviceName="orgpolicy.googleapis.com"
  

Methods by permission type

Each IAM permission has a type property, whose value is an enum that can be one of four values: ADMIN_READ, ADMIN_WRITE, DATA_READ, or DATA_WRITE. When you call a method, Organization Policy Service generates an audit log whose category is dependent on the type property of the permission required to perform the method. Methods that require an IAM permission with the type property value of DATA_READ, DATA_WRITE, or ADMIN_READ generate Data Access audit logs. Methods that require an IAM permission with the type property value of ADMIN_WRITE generate Admin Activity audit logs.

Permission type Methods
ADMIN_READ google.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_WRITE google.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 to google.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"