← Auth249 / 640
hardgcloud

Configure gcloud to impersonate a service account for all commands

command

gcloud config set auth/impersonate_service_account SA_EMAIL

also accepted

gcloud config set auth/impersonate_service_account

Command breakdown

Part of the Google Cloud CLI (gcloud) — Auth category.

gcloudconfigsetauth/impersonate_service_accountSA_EMAIL

Test your recall — not just your reading.

Practice with interactive quiz →