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 ROLE

also accepted

gcloud projects remove-iam-policy-binding

Command breakdown

Part of the Google Cloud CLI (gcloud) — IAM & Service Accounts category.

gcloudprojectsremove-iam-policy-bindingPROJECT_ID--memberserviceAccount:SA_EMAIL--roleROLE
FlagPurpose
--memberBoolean flag
--roleBoolean flag

Test your recall — not just your reading.

Practice with interactive quiz →