hardgcloud
Remove a specific IAM role from a service account on a project
command
gcloud projects remove-iam-policy-binding PROJECT_ID --member serviceAccount:SA_EMAIL --role ROLEalso accepted
gcloud projects remove-iam-policy-bindingcommand
gcloud projects remove-iam-policy-binding PROJECT_ID --member serviceAccount:SA_EMAIL --role ROLEalso accepted
gcloud projects remove-iam-policy-bindingPart of the Google Cloud CLI (gcloud) — IAM & Service Accounts category.
| Flag | Purpose |
|---|---|
--member | Boolean flag |
--role | Boolean flag |
Test your recall — not just your reading.
Practice with interactive quiz →