← IAM422 / 640
hardgcloud

View the IAM policy that controls who can act as or impersonate a service account

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 category.

gcloudiamservice-accountsget-iam-policySA_EMAIL

Test your recall — not just your reading.

Practice with interactive quiz →