Search code examples
google-cloud-storage

Not able to access GCP bucket even when SA has storageAdmin on that bucket level


My service account has storage.admin role on particular bucket but still not able to access the bucket. That service account does not have any other role though. What could be the reason.?

getting error : storage.bucket.access permission is required. Thanks


Solution

  • Posting this as a community wiki for other's sake:

    As for @John Hanley said:

    Which IAM Roles are assigned to your identity? The document lists the Cloud Storage IAM Roles. Search the page for IAM Roles that include the permission storage.bucket.list, such as roles/storage.admin. Note: It is important that you provide details on what you are doing that generated the error. The reason is that you might need another permission and by being clear upfront, you will save time trying to figure out the next issue. For example, you need to list buckets, what will you do next with a bucket?

    Additional reference: