hardgcloud

Disable a service account to prevent it from authenticating without deleting it

command

gcloud iam service-accounts disable SA_EMAIL

also accepted

gcloud iam service-accounts disable

Command breakdown

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

gcloudiamservice-accountsdisableSA_EMAIL

Test your recall — not just your reading.

Practice with interactive quiz →