【问题标题】:Unable to Query External BigQuery Tables无法查询外部 BigQuery 表
【发布时间】:2021-07-16 20:27:04
【问题描述】:

当尝试查询访问由 Google 表格支持的外部表的视图时,我收到此错误。 googleapi: Error 403: Access Denied: BigQuery BigQuery: Permission denied while getting Drive credentials., accessDenied

我已经申请了 Drive 的范围,还有什么我遗漏的吗?

    client, err := bigquery.NewClient(ctx, "projectID", option.WithScopes("https://www.googleapis.com/auth/drive"))
    if err != nil {
        return nil, err
    }

【问题讨论】:

标签: go google-cloud-platform google-bigquery


【解决方案1】:

确保运行查询的用户或服务帐户已被授予sufficient permissions 阅读 Google 表格的权限。

【讨论】:

  • 好的,如何将 Oauth 角色授予服务帐户,我看不到,找到。
猜你喜欢
  • 2020-08-18
  • 1970-01-01
  • 1970-01-01
  • 2018-08-23
  • 2017-07-15
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2019-12-19
相关资源
最近更新 更多