0

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 'google\appengine\api\cloud_storage\CloudStorageException' 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?

A.M.N.Bandara
  • 1,490
  • 15
  • 32

1 Answers1

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

radia
  • 1,456
  • 1
  • 13
  • 18