Gsutil setting All Authenticated Users permission

| | August 5, 2015

My google app engine application refers images in a storage bucket. I uploaded them using the Developer Console. Right now when I load my application and error occurs.

Fatal error: Uncaught exception 'googleappengineapicloud_storageCloudStorageException' with message 'Access denied to image.' in ...

I can fix this error by changing the "All Authenticated Users" for each object using the Developer Console. Practically this is a time consuming job since I have lot of images in my bucket.

Is there a way to set "All authenticated user" permission for all the objects in my storage bucket through gsutil?

One Response to “Gsutil setting All Authenticated Users permission”

  1. Yes it’s possible, you can use something like this:

    gsutil -m acl ch -R -g AllAuth:R gs://my-bucket/
    

    For more information : DOCUMENTATION

Leave a Reply