【发布时间】:2020-05-06 13:11:02
【问题描述】:
尝试运行:
gcloud services enable cloudresourcemanager.googleapis.com —project=$GOOGLE_CLOUD_PROJECT
我收到授权错误:
Enabling the Cloud Resource Manager API for project xxxxxxxxx... ERROR: (gcloud.services.enable) User [joe.bloggs@googlemail.com] does not have permission to access project [xxxxxxxxx] (or it may not exist): Service '—project=xxxxxxxxx' not found or permission denied.
当我检查 GCP 政策疑难解答时,它显示我在项目 xxxxxxxxx 中拥有所有者角色。但是,您可以在 GCP 控制台中看到我的电子邮件地址为 joe.bloggs@gmail.com,但在我的 gcloud 配置中看到的是 joe.bloggs@googlemail.com。我尝试在 gcloud 配置中将其更改为 gmail.com,在项目所有者角色中将其更改为 googlemail.com,但似乎无法更改。
【问题讨论】:
标签: google-cloud-platform gcloud google-cloud-iam