Your organization has a dedicated person who creates and manages all service accounts for Google Cloud projects.
You need to assign this person the minimum role for projects.
What should you do?
Click on the arrows to vote for the correct answer
A. B. C. D.C.
https://cloud.google.com/iam/docs/creating-managing-service-accountsThe correct answer is C. Add the user to roles/iam.serviceAccountUser role.
Here's why:
Google Cloud Identity and Access Management (IAM) allows you to manage access control by defining who (identity) has what access (role) for a particular resource. When it comes to Service Accounts in Google Cloud, you need to assign a role that determines the level of permissions that a person or application can have when interacting with that service account.
To manage all service accounts in a project, the minimum role that should be assigned is roles/iam.serviceAccountUser. This role allows the user to manage and use the service accounts in a project, without having the ability to create or delete them. This role is the minimum required to create and manage all service accounts in a project.
Let's look at the other answer options:
A. Add the user to roles/iam.roleAdmin role. This role provides complete control over roles and permissions in a project, including the ability to create, modify, and delete them. Assigning this role to a user who only needs to manage service accounts is not appropriate as it grants excessive permissions.
B. Add the user to roles/iam.securityAdmin role. This role provides access to security-related tasks such as managing security policies, managing keys, and managing SSL certificates. Assigning this role to a user who only needs to manage service accounts is not appropriate as it grants excessive permissions.
D. Add the user to roles/iam.serviceAccountAdmin role. This role allows the user to create, modify, and delete service accounts. Assigning this role to a user who only needs to manage service accounts is not appropriate as it grants excessive permissions.
In conclusion, the minimum role that should be assigned to the person who creates and manages all service accounts for a Google Cloud project is roles/iam.serviceAccountUser.