devopslife
devopslife

Reputation: 668

Update BigQuery access policy using golang

The documentation doesn't mention any options: https://cloud.google.com/bigquery/docs/table-access-controls#update_an_access_policy

Are there any ways to achieve this (similar to https://cloud.google.com/bigquery/docs/dataset-access-controls#granting_access_to_a_dataset)?

Upvotes: 1

Views: 40

Answers (1)

devopslife
devopslife

Reputation: 668

https://pkg.go.dev/cloud.google.com/go/bigquery#hdr-Querying - this works not only with SELECT statements. So running a "GRANT" through that solves my issue.

Upvotes: 1

Related Questions