Can´t access google cloud storage with service account. Service account does not have storage.objects.list access


Problem:

I want to access Goolge play reports on the command line with gsutil and a service account. There is a Cloud Storage URI for that with the form gs://bucket_name, and I can list and download reports with my user account but not with the service account I created. The error is always the same:

AccessDeniedException: 403 "service-account-name" does not have storage.objects.list access to the Google Cloud Storage bucket.

I have asign all the required permissions to the service account, so I do not understand why with the user account works and fails with the service account.

enter image description here

So if you know how to help me, i will thank you a lot.


Solution:

Cloud Storage buckets will only appear in the developer console under the project that they were created with. This bucket was not created under the project you have permissions, so it won't appear in any list in the developers console for you.

In order to grant access to the service account that you created, you can just add it as an additional user to the console with read-only permissions, which will give that service account access to the bucket. For more information about this matter, please follow this Help Center article.

Something to keep in mind is that depends on the task you want to accomplish, it could be necessary to add more roles to the Service Account. For example, if you want to view financial data, may be you need a "Financial" role for the SA.

Recent Tips

  1. link error to build caffe in osx 10.9
  2. How to use CSS to give a circle a "partial border"
  3. BasicNetwork.performRequest: Unexpected response code 500 for http://192.168.1.195:85/tranxavApi/public/api/signup
  4. Laravel 5.1 Authentication without password
  5. django-bootstrap-v5 DecimalField Throwing Errors in ModelForm Class
  6. update and delete in realm xamarin
  7. Grabbing text between Processing Instructions in XSLT
  8. Foreign key refering to multiple tables
  9. Run a visual studio 2010 Windows7 project on a Windows XP machine
  10. How to apply groupname to HTML radio buttons in asp.net?
  11. What is the most stable modal dialog implementation across browsers to use from javascript for a web app?
  12. Move, Remove, and Replace information from Google Sheets with new entries using Google Script
  13. How can I get rid of jerkiness in WinForms scrolling animation?
  14. Update MySQL table column from another table entities
  15. Shoot fireball once in unity C#
  16. Adding a table of contents to a Microsoft Word Document using vbs
  17. Change locale in android app (onto Hindi)
  18. How do I stop selenium automation if 20% or 1st 20 test cases test methods are failed?
  19. Sharepoint with silverlight app
  20. What's the best way to write robots.txt for github pages using multiple repos?
  21. Biopython: Cant use .count() for biopython
  22. How can I find out the token balance of an address?
  23. ref value is undefined in vue (modal, textarea, $refs)
  24. Azure - HDInsight Hbase Data Insertion Failed
  25. SignalR overwriting OnConnected(), OnDisconnected()
  26. DatePickerDialog displays with two borders
  27. "type 'double' is not a subtype of type 'int' in type cast" error in flutter. What should i do?
  28. hiding the autocomplete list when user click outside the textbox is not working as expected
  29. JSF IceFaces basic problem with redisplaying input value
  30. How to validate material ui TextField in reactjs?