GCP Applying Policies to Groups of Users

(Also read this post on using groups and policies in GCP). A group, in GCP, is no different from any other identity. In practice, it looks like  an email address.

Assigning a group to a resource (like a project or a folder) is straightforward through the console. However, one can also do that through gCloud as shown below. In addition to adding it to the Folder or Project, the exact ROLE (permissions) are also represented as part of the gCloud command.

gcloud projects add-iam-policy-binding my-project-name –member='user:groupemail@blahblah' –role='roles/editor'

Need a hands-on, GCP Consultant?

Need help with your GCP journey? Start the conversation today.  

anuj

I am passionate about getting cloud solutions right the first time. I help customers transition to the public cloud with the appropriate security controls and guardrails. GCP, AWS and Azure Security Specialist. <a href="https://calendly.com/anujvarma/google-cloud-architect-initial-consultation">Initial Consultation</a>

Leave a reply

Your email address will not be published. Required fields are marked *