Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Cannot access objects in buckets

Hello,

I have been trying to access my files that I have stored on the google cloud and I am unable to access them. Every time I click on an object I get the error "Additional permissions required to view this object's metadata: Ask an object owner to grant you 'storage.objects.get' permission (e.g. by giving your account the IAM Storage Admin role)."

I have created a custom role with this permission and added it to my principal, but it still won't work. I am not sure what I am doing wrong, and I need access to my files. I created these buckets and uploaded the files, so I should have access. Screenshot 2022-11-30 105408.png

0 6 4,349
6 REPLIES 6

Hello najwamajida

The error indicates that you don't have the correct access. You need to have Storage Admin role to view metadata.

 

 

I tried to add it and wasn't able to. Can you help me with how to do this? I tried to create a custom role that included storage.objects.get and add it to my principal, but it isn't working. 

 

https://docs.snowflake.com/en/user-guide/data-load-gcs-config.html 

I have all of these roles:

najwamajida_0-1669911485590.png

Pls try removing Storage 0bject Viewer role and reading it.

I am still getting the error

Hi @najwamajida,

Welcome to Google Cloud Community!

 

If you are the owner of the bucket and you have created a custom role with the storage.objects.get permission and added it to your account, you should be able to access the metadata for the objects in the bucket. If you are still unable to access the metadata for the objects, there are a few things you can try:
 
Make sure that you have granted the custom role to your account using the correct method. Depending on how your Google Cloud account is set up, you may need to use a specific method to grant a custom role to your account.
 
Check that you are using the correct credentials to access your Google Cloud account. If you are using a service account to access your Google Cloud account, make sure that you are using the correct service account key file.
 
Check that the storage.objects.get permission is included in the custom role that you created. If the permission is not included, you will not be able to access the metadata for the objects in the bucket.
 
If you are still unable to access the metadata for the objects, you can try deleting the custom role and recreating it with the storage.objects.get permission.
 
If you continue to have trouble accessing the metadata for the objects in your bucket, you may need to contact Google Cloud support for further assistance.
 
Thank you