我正在尝试使用Google云API创建ServiceAccount。我是代表用户进行身份验证的Oauth客户端。我使用的是正确的范围。我仍然收到错误403: Permission iam.serviceAccounts.create is required to perform this operation on project projects/xyz
。
此代码以前可以工作。我看到新文档也提到了这一点; https://cloud.google.com/iam/reference/rest/v1/projects.serviceAccounts/create
我的问题是我在做什么错。如何解决此问题?
最佳答案
这确实很老,但是对于其他人,这可能是由先前的失败尝试引起的。该错误仍然存在,甚至一年后,以前的失败尝试似乎也传播了此错误。如果您更改服务帐户的名称,则通常可以使用。
关于google-cloud-platform - 403 : Permission iam. serviceAccounts.create需要在项目项目/xyz上执行此操作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45712527/