hardgcloud

View all IAM bindings on a service account resource itself

command

gcloud iam service-accounts get-iam-policy SA_EMAIL

also accepted

gcloud iam service-accounts get-iam-policy

Command breakdown

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

gcloudiamservice-accountsget-iam-policySA_EMAIL

Test your recall — not just your reading.

Practice with interactive quiz →