0

I'm using Ruby and the google-api-client gem to create a simple script that lists all datasets in a project and then deletes them. The script is using Service Account credentials and the BigQuery API is enabled. I am using v2 of the API.

The listing of the datasets works fine and I get the list (so it's not the credentials or the scope that has a problem) but when I try and delete that dataset I get a Access Denied: Dataset pppppppppp:foofoofoo: DELETE_DATASET.

When I look at the ACL on the dataset it is set to the defaults, namely group: Project Viewers Can View, group Project Editors Can Edit and group: Project Owners Is Owner. If I try and delete the dataset from the console by logging in with the project owner credentials, it all works fine.

Any help would be appreciated. Thx Enis

4

1 回答 1

1

听起来您使用的服务帐户不在 Project Writers 组中。删除项目拥有的数据集需要 Writer 或 Owner 权限。

数据集权限可以在这里找到:https ://cloud.google.com/bigquery/access-control#datasetroles

于 2014-12-08T19:01:30.970 回答