Reputation: 5031
our team create some data on google cloud storage so other team can copy/download/read it from there, but when they tried, they always got 403 forbidden message. I tried to edit the permission on that bucket and added new permission as 'Project', 'viewers-(other team's project id)', and 'Reader', but still they got the same error when they ran this command:
gsutil cp -R gs://our-bucket gs://their-bucket
i also tried with their client id and email account, still the same.
Upvotes: 1
Views: 1007
Reputation: 351
try:
gsutil acl ch -u [email protected]:R gs://your-bucket
This ch
:changes the permission on 'your-bucket' for u
:user [email protected]
to R
:Reader.
Upvotes: 0
Reputation: 1076
I'm not sure one can define another group's collection of users with a give access right (readers, in this case), and apply it to an object in a different project.
An alternative to this would be to control bucket access via Google Groups: simply set up a group for readers, adding the users you wish to grant this right to. Then you can use said Group to control access to the bucket and/or contents. Further information, and use case scenario, here https://cloud.google.com/storage/docs/collaboration#group
Upvotes: 1