简体   繁体   English

Google Cloud 项目到服务帐户到用户角色的映射创建

[英]Google cloud project to service account to user roles mapping creation

I have a Google cloud project created.我创建了一个谷歌云项目。
I created a service account with project editor role.我创建了一个具有项目编辑器角色的服务帐户。
Now, if I give a user, serviceAccountUser role to the service account, it doesn't automatically gives the user permission on the project.现在,如果我为服务帐户授予用户 serviceAccountUser 角色,它不会自动授予用户对该项目的权限。
If I login using that user to Google cloud console, I'm unable to see the project itself.如果我使用该用户登录 Google 云控制台,则无法看到项目本身。
It says in the documentation - "Users granted the Service Account User role on a service account can use it to indirectly access all the resources to which the service account has access."它在文档中说 - “在服务帐户上授予服务帐户用户角色的用户可以使用它来间接访问服务帐户有权访问的所有资源。”
So, I thought I would be able to access all the projects as well.所以,我想我也可以访问所有项目。 Does the above statement mean something else?上面的说法还有别的意思吗?

On GCP you have user accounts and service accounts.在 GCP 上,您有用户帐户和服务帐户。 The main purpose of the service accounts is to consume GCP services via API calls, the documentation says: " A service account is a special type of Google account intended to represent a non-human user that needs to authenticate and be authorized to access data in Google APIs .".服务帐户的主要目的是通过 API 调用使用 GCP 服务,文档说:“ 服务帐户是一种特殊类型的 Google 帐户,旨在代表需要进行身份验证并被授权访问数据的非人类用户谷歌 API 。”。 For login and interact with the GUI and resources you need a user account, if you want to see the resources the account need the viewer role, if you need perform operations on the resources you need admin role, review the documentation for more information ( How IAM works ).为了登录和交互 GUI 和资源,您需要一个用户帐户,如果您想查看该帐户需要查看者角色的资源,如果您需要对需要管理员角色的资源执行操作,请查看文档以获取更多信息(如何IAM 工作)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用服务帐户创建 Google API 用户 - Google API user creation with service account Google Cloud Platform (GCP):如何为服务帐户提供额外的角色? - Google Cloud Platform (GCP): How to give additional roles to service account? 具有“roles/container.admin”的 Google 云服务帐户 - Google Cloud Service Account with 'roles/container.admin' 如何创建具有多个角色的服务帐户? 谷歌云部署管理器 - How to create a service account with multiple roles? Google Cloud Deployment Manager Google云服务帐户VS. 最终用户帐户 - Google Cloud Service Account VS. End User Account 如何授予服务帐户访问 Google Cloud 上的用户帐户的权限 - How to grant service account access to a user account on google cloud 谷歌云平台服务帐号无法访问项目 - Google Cloud Platform Service Account is Unable to Access Project Google Cloud - 如何在应用程序代码中对用户而不是服务帐户进行身份验证? - Google Cloud - How to authenticate USER instead of a service account in app code? 想要通过 terraform 将多个 Google 云 IAM 角色分配给服务帐户 - Want to assign multiple Google cloud IAM roles to a service account via terraform Google Cloud Service帐户具有Translate API访问权限,无需分配任何角色 - Google Cloud Service Account has Translate API access without any roles assigned
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM