hardgsutil

Grant a user the Storage Object Viewer role on a Cloud Storage bucket

command

gsutil iam ch user:USER@example.com:roles/storage.objectViewer gs://BUCKET_NAME

also accepted

gsutil iam chgsutil iam ch user:

Command breakdown

Part of the Cloud Storage CLI (gsutil) — Cloud Storage gsutil category.

gsutiliamchuser:USER@example.com:roles/storage.objectViewergs://BUCKET_NAME

Test your recall — not just your reading.

Practice with interactive quiz →