403 while follow the tutorial for downloading reports from Google Play

1,795 views
Skip to first unread message

Nguyen Tuan Anh

unread,
Mar 15, 2022, 12:50:57 PM3/15/22
to Google Cloud Developers
Hi supporters,

I've trying to download new reports from cloud storage https://console.cloud.google.com/storage/pubsite_prod_9*********6
Using the service account which have role Owner

However my request always return 403 with this object:
                                                                                                                                                               
  {                                                                                                                                                                    
    "error": {                                                                                                                                                        
      "code": 403,                                                                                                                                                    
      "message": "****@pc-api-*****************-739.iam.gserviceaccount.com does not have storage.objects.list access to the Google Cloud Storage bucket.",      
      "errors": [                                                                                                                                                      
        {                                                                                                                                                              
          "message": "****@pc-api-***********************-739.iam.gserviceaccount.com does not have storage.objects.list access to the Google Cloud Storage bucket.",  
          "domain": "global",                                                                                                                                          
          "reason": "forbidden"                                                                                                                                        
        }                                                                                                                                                              
      ]                                                                                                                                                                
    }                                                                                                                                                                  
  }     

I've tried Project Owner, Editor, Storage Admin, Storage Objects Admin. The results were still the same. I've followed exactly every tutorials from Google Play to download the reports on this link:
Please help me on this issues.
Thanks.

Darrell (Cloud Platform Support)

unread,
Mar 16, 2022, 1:07:13 PM3/16/22
to Google Cloud Developers
Hi,
In Cloud console, can you try adding the service account to the bucket following these steps?
 - Click on the Bucket's overflow menu (triple dots)
 - Edit Access 
 - + Add principal 
 - Enter service account email 
 - Add the role (The guide doesn't specify the role, but since the error is about listing objects, try Storage Object Viewer)

These steps can also be done via gsutil or programmatically. To troubleshoot any permission issue, you can try using the Policy Troubleshooter.

I hope this helps!
Reply all
Reply to author
Forward
0 new messages