Hey! I'm using a program that requires googles API, it takes data from a clinical trials site and puts it into a csv: https://github.com/ebmdatalab/clinicaltrials-act-tracker
I'm running it in command line and have opened up a service account a bucket for the program to use and I've attached the two.
However I get an error that says my service account requires storage.buckets.get access I found out how to add permissions and roles from another post here.
however I still get the error even with the role containing the permission. I added a custom role with Storage.buckets.get permission and added it to my service account.
Please can someone help me fix this error?
"google.api_core.exceptions.Forbidden: 403 GET storage.googleapis.com/storage/v1/b/…: ripley@clinical-trial-354713.iam.gserviceaccount.com does not have storage.buckets.get access to the Google Cloud Storage bucket." That's the error.
You need to assign the role ‘roles/storage.admin’ that has the ‘storage.buckets.get’ permission to the ‘ripley@clinical-trial-354713.iam.gserviceaccount.com’ service account, in the project(s) related to your implementation.
I am guessing that you added the role to a different service account, or several projects are related to your implementation, so depending on the workflow of your implementation, you might need this service account to have the role on various projects.