BigQuery Data Policy audit logging
This document describes audit logging for BigQuery Data Policy. Trusted Cloud by S3NS services
generate audit logs that record administrative and access activities within your Trusted Cloud by S3NS resources.
For more information about Cloud Audit Logs, see the following:
Service name
BigQuery Data Policy audit logs use the service name bigquerydatapolicy.googleapis.com
.
Filter for this service:
protoPayload.serviceName="bigquerydatapolicy.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,
BigQuery Data Policy 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.bigquery.datapolicies.v1.DataPolicyService.GetDataPolicy
google.cloud.bigquery.datapolicies.v1.DataPolicyService.GetIamPolicy
google.cloud.bigquery.datapolicies.v1.DataPolicyService.ListDataPolicies
google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.GetDataPolicy
google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.GetIamPolicy
google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.ListDataPolicies |
ADMIN_WRITE |
google.cloud.bigquery.datapolicies.v1.DataPolicyService.CreateDataPolicy
google.cloud.bigquery.datapolicies.v1.DataPolicyService.DeleteDataPolicy
google.cloud.bigquery.datapolicies.v1.DataPolicyService.RenameDataPolicy
google.cloud.bigquery.datapolicies.v1.DataPolicyService.SetIamPolicy
google.cloud.bigquery.datapolicies.v1.DataPolicyService.UpdateDataPolicy
google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.CreateDataPolicy
google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.DeleteDataPolicy
google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.SetIamPolicy
google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.UpdateDataPolicy |
API interface audit logs
For information about how and which permissions are evaluated for each method,
see the Identity and Access Management documentation for BigQuery Data Policy.
google.cloud.bigquery.datapolicies.v1.DataPolicyService
The following audit logs are associated with methods belonging to
google.cloud.bigquery.datapolicies.v1.DataPolicyService
.
CreateDataPolicy
- Method:
google.cloud.bigquery.datapolicies.v1.DataPolicyService.CreateDataPolicy
- Audit log type: Admin activity
- Permissions:
bigquery.dataPolicies.create - ADMIN_WRITE
datacatalog.taxonomies.get - ADMIN_READ
- Method is a long-running or streaming operation:
No.
- Filter for this method:
protoPayload.methodName="google.cloud.bigquery.datapolicies.v1.DataPolicyService.CreateDataPolicy"
DeleteDataPolicy
- Method:
google.cloud.bigquery.datapolicies.v1.DataPolicyService.DeleteDataPolicy
- Audit log type: Admin activity
- Permissions:
bigquery.dataPolicies.delete - ADMIN_WRITE
- Method is a long-running or streaming operation:
No.
- Filter for this method:
protoPayload.methodName="google.cloud.bigquery.datapolicies.v1.DataPolicyService.DeleteDataPolicy"
GetDataPolicy
- Method:
google.cloud.bigquery.datapolicies.v1.DataPolicyService.GetDataPolicy
- Audit log type: Data access
- Permissions:
bigquery.dataPolicies.get - ADMIN_READ
- Method is a long-running or streaming operation:
No.
- Filter for this method:
protoPayload.methodName="google.cloud.bigquery.datapolicies.v1.DataPolicyService.GetDataPolicy"
GetIamPolicy
- Method:
google.cloud.bigquery.datapolicies.v1.DataPolicyService.GetIamPolicy
- Audit log type: Data access
- Permissions:
bigquery.dataPolicies.getIamPolicy - ADMIN_READ
- Method is a long-running or streaming operation:
No.
- Filter for this method:
protoPayload.methodName="google.cloud.bigquery.datapolicies.v1.DataPolicyService.GetIamPolicy"
ListDataPolicies
- Method:
google.cloud.bigquery.datapolicies.v1.DataPolicyService.ListDataPolicies
- Audit log type: Data access
- Permissions:
bigquery.dataPolicies.list - ADMIN_READ
- Method is a long-running or streaming operation:
No.
- Filter for this method:
protoPayload.methodName="google.cloud.bigquery.datapolicies.v1.DataPolicyService.ListDataPolicies"
RenameDataPolicy
- Method:
google.cloud.bigquery.datapolicies.v1.DataPolicyService.RenameDataPolicy
- Audit log type: Admin activity
- Permissions:
bigquery.dataPolicies.update - ADMIN_WRITE
- Method is a long-running or streaming operation:
No.
- Filter for this method:
protoPayload.methodName="google.cloud.bigquery.datapolicies.v1.DataPolicyService.RenameDataPolicy"
SetIamPolicy
- Method:
google.cloud.bigquery.datapolicies.v1.DataPolicyService.SetIamPolicy
- Audit log type: Admin activity
- Permissions:
bigquery.dataPolicies.setIamPolicy - ADMIN_WRITE
- Method is a long-running or streaming operation:
No.
- Filter for this method:
protoPayload.methodName="google.cloud.bigquery.datapolicies.v1.DataPolicyService.SetIamPolicy"
UpdateDataPolicy
- Method:
google.cloud.bigquery.datapolicies.v1.DataPolicyService.UpdateDataPolicy
- Audit log type: Admin activity
- Permissions:
bigquery.dataPolicies.update - ADMIN_WRITE
- Method is a long-running or streaming operation:
No.
- Filter for this method:
protoPayload.methodName="google.cloud.bigquery.datapolicies.v1.DataPolicyService.UpdateDataPolicy"
google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService
The following audit logs are associated with methods belonging to
google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService
.
CreateDataPolicy
- Method:
google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.CreateDataPolicy
- Audit log type: Admin activity
- Permissions:
bigquery.dataPolicies.create - ADMIN_WRITE
datacatalog.taxonomies.get - ADMIN_READ
- Method is a long-running or streaming operation:
No.
- Filter for this method:
protoPayload.methodName="google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.CreateDataPolicy"
DeleteDataPolicy
- Method:
google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.DeleteDataPolicy
- Audit log type: Admin activity
- Permissions:
bigquery.dataPolicies.delete - ADMIN_WRITE
- Method is a long-running or streaming operation:
No.
- Filter for this method:
protoPayload.methodName="google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.DeleteDataPolicy"
GetDataPolicy
- Method:
google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.GetDataPolicy
- Audit log type: Data access
- Permissions:
bigquery.dataPolicies.get - ADMIN_READ
- Method is a long-running or streaming operation:
No.
- Filter for this method:
protoPayload.methodName="google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.GetDataPolicy"
GetIamPolicy
- Method:
google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.GetIamPolicy
- Audit log type: Data access
- Permissions:
bigquery.dataPolicies.getIamPolicy - ADMIN_READ
- Method is a long-running or streaming operation:
No.
- Filter for this method:
protoPayload.methodName="google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.GetIamPolicy"
ListDataPolicies
- Method:
google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.ListDataPolicies
- Audit log type: Data access
- Permissions:
bigquery.dataPolicies.list - ADMIN_READ
- Method is a long-running or streaming operation:
No.
- Filter for this method:
protoPayload.methodName="google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.ListDataPolicies"
SetIamPolicy
- Method:
google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.SetIamPolicy
- Audit log type: Admin activity
- Permissions:
bigquery.dataPolicies.setIamPolicy - ADMIN_WRITE
- Method is a long-running or streaming operation:
No.
- Filter for this method:
protoPayload.methodName="google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.SetIamPolicy"
UpdateDataPolicy
- Method:
google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.UpdateDataPolicy
- Audit log type: Admin activity
- Permissions:
bigquery.dataPolicies.update - ADMIN_WRITE
- Method is a long-running or streaming operation:
No.
- Filter for this method:
protoPayload.methodName="google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.UpdateDataPolicy"
Methods that don't produce audit logs
A method might not produce audit logs for one or more of the following
reasons:
- It is a high volume method involving significant log generation and storage
costs.
- It has low auditing value.
- Another audit or platform log already provides method coverage.
The following methods don't produce audit logs:
google.cloud.bigquery.datapolicies.v1.DataPolicyService.TestIamPermissions
google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.TestIamPermissions
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-25 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-25 UTC."],[[["\u003cp\u003eBigQuery Data Policy audit logs record administrative and data access activities, using \u003ccode\u003ebigquerydatapolicy.googleapis.com\u003c/code\u003e as the service name.\u003c/p\u003e\n"],["\u003cp\u003eMethods requiring \u003ccode\u003eADMIN_WRITE\u003c/code\u003e permissions generate Admin Activity audit logs, while \u003ccode\u003eDATA_READ\u003c/code\u003e, \u003ccode\u003eDATA_WRITE\u003c/code\u003e, or \u003ccode\u003eADMIN_READ\u003c/code\u003e permissions result in Data Access audit logs.\u003c/p\u003e\n"],["\u003cp\u003eMethods such as \u003ccode\u003eCreateDataPolicy\u003c/code\u003e, \u003ccode\u003eDeleteDataPolicy\u003c/code\u003e, \u003ccode\u003eRenameDataPolicy\u003c/code\u003e, \u003ccode\u003eSetIamPolicy\u003c/code\u003e, and \u003ccode\u003eUpdateDataPolicy\u003c/code\u003e produce Admin Activity logs, while methods such as \u003ccode\u003eGetDataPolicy\u003c/code\u003e, \u003ccode\u003eGetIamPolicy\u003c/code\u003e, and \u003ccode\u003eListDataPolicies\u003c/code\u003e produce Data Access audit logs.\u003c/p\u003e\n"],["\u003cp\u003eThe methods \u003ccode\u003egoogle.cloud.bigquery.datapolicies.v1.DataPolicyService.TestIamPermissions\u003c/code\u003e and \u003ccode\u003egoogle.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.TestIamPermissions\u003c/code\u003e do not generate audit logs due to reasons like high volume, low auditing value, or existing log coverage.\u003c/p\u003e\n"]]],[],null,["# BigQuery Data Policy audit logging\n==================================\n\nThis document describes audit logging for BigQuery Data Policy. Google Cloud services\ngenerate audit logs that record administrative and access activities within your Google Cloud resources.\nFor more information about Cloud Audit Logs, see the following:\n\n- [Types of audit logs](/logging/docs/audit#types)\n- [Audit log entry structure](/logging/docs/audit#audit_log_entry_structure)\n- [Storing and routing audit logs](/logging/docs/audit#storing_and_routing_audit_logs)\n- [Cloud Logging pricing summary](/stackdriver/pricing#logs-pricing-summary)\n- [Enable Data Access audit logs](/logging/docs/audit/configure-data-access)\n\n\u003cbr /\u003e\n\nService name\n------------\n\nBigQuery Data Policy audit logs use the service name `bigquerydatapolicy.googleapis.com`.\nFilter for this service: \n\n```gdscript\n protoPayload.serviceName=\"bigquerydatapolicy.googleapis.com\"\n \n```\n\n\u003cbr /\u003e\n\nMethods by permission type\n--------------------------\n\nEach IAM permission has a `type` property, whose value is an enum\nthat can be one of four values: `ADMIN_READ`, `ADMIN_WRITE`,\n`DATA_READ`, or `DATA_WRITE`. When you call a method,\nBigQuery Data Policy generates an audit log whose category is dependent on the\n`type` property of the permission required to perform the method.\n\nMethods that require an IAM permission with the `type` property value\nof `DATA_READ`, `DATA_WRITE`, or `ADMIN_READ` generate\n[Data Access](/logging/docs/audit#data-access) audit logs.\n\nMethods that require an IAM permission with the `type` property value\nof `ADMIN_WRITE` generate\n[Admin Activity](/logging/docs/audit#admin-activity) audit logs.\n\nAPI interface audit logs\n------------------------\n\nFor information about how and which permissions are evaluated for each method,\nsee the Identity and Access Management documentation for BigQuery Data Policy.\n\n### `google.cloud.bigquery.datapolicies.v1.DataPolicyService`\n\nThe following audit logs are associated with methods belonging to\n`google.cloud.bigquery.datapolicies.v1.DataPolicyService`.\n\n#### `CreateDataPolicy`\n\n- **Method** : `google.cloud.bigquery.datapolicies.v1.DataPolicyService.CreateDataPolicy` \n- **Audit log type** : [Admin activity](/logging/docs/audit#admin-activity) \n- **Permissions** :\n - `bigquery.dataPolicies.create - ADMIN_WRITE`\n - `datacatalog.taxonomies.get - ADMIN_READ`\n- **Method is a long-running or streaming operation** : No. \n- **Filter for this method** : `\n protoPayload.methodName=\"google.cloud.bigquery.datapolicies.v1.DataPolicyService.CreateDataPolicy\"\n ` \n\n#### `DeleteDataPolicy`\n\n- **Method** : `google.cloud.bigquery.datapolicies.v1.DataPolicyService.DeleteDataPolicy` \n- **Audit log type** : [Admin activity](/logging/docs/audit#admin-activity) \n- **Permissions** :\n - `bigquery.dataPolicies.delete - ADMIN_WRITE`\n- **Method is a long-running or streaming operation** : No. \n- **Filter for this method** : `\n protoPayload.methodName=\"google.cloud.bigquery.datapolicies.v1.DataPolicyService.DeleteDataPolicy\"\n ` \n\n#### `GetDataPolicy`\n\n- **Method** : `google.cloud.bigquery.datapolicies.v1.DataPolicyService.GetDataPolicy` \n- **Audit log type** : [Data access](/logging/docs/audit#data-access) \n- **Permissions** :\n - `bigquery.dataPolicies.get - ADMIN_READ`\n- **Method is a long-running or streaming operation** : No. \n- **Filter for this method** : `\n protoPayload.methodName=\"google.cloud.bigquery.datapolicies.v1.DataPolicyService.GetDataPolicy\"\n ` \n\n#### `GetIamPolicy`\n\n- **Method** : `google.cloud.bigquery.datapolicies.v1.DataPolicyService.GetIamPolicy` \n- **Audit log type** : [Data access](/logging/docs/audit#data-access) \n- **Permissions** :\n - `bigquery.dataPolicies.getIamPolicy - ADMIN_READ`\n- **Method is a long-running or streaming operation** : No. \n- **Filter for this method** : `\n protoPayload.methodName=\"google.cloud.bigquery.datapolicies.v1.DataPolicyService.GetIamPolicy\"\n ` \n\n#### `ListDataPolicies`\n\n- **Method** : `google.cloud.bigquery.datapolicies.v1.DataPolicyService.ListDataPolicies` \n- **Audit log type** : [Data access](/logging/docs/audit#data-access) \n- **Permissions** :\n - `bigquery.dataPolicies.list - ADMIN_READ`\n- **Method is a long-running or streaming operation** : No. \n- **Filter for this method** : `\n protoPayload.methodName=\"google.cloud.bigquery.datapolicies.v1.DataPolicyService.ListDataPolicies\"\n ` \n\n#### `RenameDataPolicy`\n\n- **Method** : `google.cloud.bigquery.datapolicies.v1.DataPolicyService.RenameDataPolicy` \n- **Audit log type** : [Admin activity](/logging/docs/audit#admin-activity) \n- **Permissions** :\n - `bigquery.dataPolicies.update - ADMIN_WRITE`\n- **Method is a long-running or streaming operation** : No. \n- **Filter for this method** : `\n protoPayload.methodName=\"google.cloud.bigquery.datapolicies.v1.DataPolicyService.RenameDataPolicy\"\n ` \n\n#### `SetIamPolicy`\n\n- **Method** : `google.cloud.bigquery.datapolicies.v1.DataPolicyService.SetIamPolicy` \n- **Audit log type** : [Admin activity](/logging/docs/audit#admin-activity) \n- **Permissions** :\n - `bigquery.dataPolicies.setIamPolicy - ADMIN_WRITE`\n- **Method is a long-running or streaming operation** : No. \n- **Filter for this method** : `\n protoPayload.methodName=\"google.cloud.bigquery.datapolicies.v1.DataPolicyService.SetIamPolicy\"\n ` \n\n#### `UpdateDataPolicy`\n\n- **Method** : `google.cloud.bigquery.datapolicies.v1.DataPolicyService.UpdateDataPolicy` \n- **Audit log type** : [Admin activity](/logging/docs/audit#admin-activity) \n- **Permissions** :\n - `bigquery.dataPolicies.update - ADMIN_WRITE`\n- **Method is a long-running or streaming operation** : No. \n- **Filter for this method** : `\n protoPayload.methodName=\"google.cloud.bigquery.datapolicies.v1.DataPolicyService.UpdateDataPolicy\"\n ` \n\n### `google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService`\n\nThe following audit logs are associated with methods belonging to\n`google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService`.\n\n#### `CreateDataPolicy`\n\n- **Method** : `google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.CreateDataPolicy` \n- **Audit log type** : [Admin activity](/logging/docs/audit#admin-activity) \n- **Permissions** :\n - `bigquery.dataPolicies.create - ADMIN_WRITE`\n - `datacatalog.taxonomies.get - ADMIN_READ`\n- **Method is a long-running or streaming operation** : No. \n- **Filter for this method** : `\n protoPayload.methodName=\"google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.CreateDataPolicy\"\n ` \n\n#### `DeleteDataPolicy`\n\n- **Method** : `google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.DeleteDataPolicy` \n- **Audit log type** : [Admin activity](/logging/docs/audit#admin-activity) \n- **Permissions** :\n - `bigquery.dataPolicies.delete - ADMIN_WRITE`\n- **Method is a long-running or streaming operation** : No. \n- **Filter for this method** : `\n protoPayload.methodName=\"google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.DeleteDataPolicy\"\n ` \n\n#### `GetDataPolicy`\n\n- **Method** : `google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.GetDataPolicy` \n- **Audit log type** : [Data access](/logging/docs/audit#data-access) \n- **Permissions** :\n - `bigquery.dataPolicies.get - ADMIN_READ`\n- **Method is a long-running or streaming operation** : No. \n- **Filter for this method** : `\n protoPayload.methodName=\"google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.GetDataPolicy\"\n ` \n\n#### `GetIamPolicy`\n\n- **Method** : `google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.GetIamPolicy` \n- **Audit log type** : [Data access](/logging/docs/audit#data-access) \n- **Permissions** :\n - `bigquery.dataPolicies.getIamPolicy - ADMIN_READ`\n- **Method is a long-running or streaming operation** : No. \n- **Filter for this method** : `\n protoPayload.methodName=\"google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.GetIamPolicy\"\n ` \n\n#### `ListDataPolicies`\n\n- **Method** : `google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.ListDataPolicies` \n- **Audit log type** : [Data access](/logging/docs/audit#data-access) \n- **Permissions** :\n - `bigquery.dataPolicies.list - ADMIN_READ`\n- **Method is a long-running or streaming operation** : No. \n- **Filter for this method** : `\n protoPayload.methodName=\"google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.ListDataPolicies\"\n ` \n\n#### `SetIamPolicy`\n\n- **Method** : `google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.SetIamPolicy` \n- **Audit log type** : [Admin activity](/logging/docs/audit#admin-activity) \n- **Permissions** :\n - `bigquery.dataPolicies.setIamPolicy - ADMIN_WRITE`\n- **Method is a long-running or streaming operation** : No. \n- **Filter for this method** : `\n protoPayload.methodName=\"google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.SetIamPolicy\"\n ` \n\n#### `UpdateDataPolicy`\n\n- **Method** : `google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.UpdateDataPolicy` \n- **Audit log type** : [Admin activity](/logging/docs/audit#admin-activity) \n- **Permissions** :\n - `bigquery.dataPolicies.update - ADMIN_WRITE`\n- **Method is a long-running or streaming operation** : No. \n- **Filter for this method** : `\n protoPayload.methodName=\"google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.UpdateDataPolicy\"\n ` \n\nMethods that don't produce audit logs\n-------------------------------------\n\nA method might not produce audit logs for one or more of the following\nreasons:\n\n- It is a high volume method involving significant log generation and storage costs.\n- It has low auditing value.\n- Another audit or platform log already provides method coverage.\n\n\u003cbr /\u003e\n\nThe following methods don't produce audit logs:\n\n- `google.cloud.bigquery.datapolicies.v1.DataPolicyService.TestIamPermissions`\n- `google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.TestIamPermissions`"]]