How do i give access to the cloud storage bucket to a specific user?

0 votes
How can I give someone access to my bucket?
Oct 23, 2019 in GCP by anonymous
• 5,840 points
756 views

1 answer to this question.

0 votes
  1. Use the gsutil iam ch command to give a specific email address permission to read and write objects in your bucket:

    gsutil iam ch user:jane@gmail.com:objectCreator,objectViewer gs://my-awesome-bucket

    The command is successful if no error is returned.

    Now someone else can put things into and view what's in your bucket.

  2. To remove this permission, use the command:

    gsutil iam ch -d user:jane@gmail.com:objectCreator,objectViewer gs://my-awesome-bucket

    The command is successful if no error is returned.

    You have removed the user's access to this bucket.

answered Oct 23, 2019 by Sirajul
• 54,080 points

Related Questions In GCP

0 votes
1 answer

How do I change the default storage class of a bucket?

Use the gsutil defstorageclass set command: gsutil defstorageclass set [STORAGE_CLASS] ...READ MORE

answered Oct 25, 2019 in GCP by Sirajul
• 54,080 points
58 views
+1 vote
1 answer
0 votes
1 answer
0 votes
1 answer

GCP Error: 403: Access Denied

Check that your credentials are correct. For ...READ MORE

answered Oct 9, 2019 in GCP by Sirajul
• 54,080 points
344 views
0 votes
1 answer

Permissions issue with Google Cloud Storage Bucket.

You can regain access to the object by assigning an applicable role, like roles/storage.objectAdmin, to ...READ MORE

answered Oct 10, 2019 in GCP by Sirajul
• 54,080 points
1,019 views
0 votes
1 answer
0 votes
1 answer

Can I give a user access to cloud storage who doesn't have a GCP account?

Yes, you could certainly do this.  You can ...READ MORE

answered Nov 5, 2019 in GCP by Sirajul
• 54,080 points
136 views
0 votes
1 answer

How do I change the object storage class within a bucket using console?

No,Individual object storage classes cannot be set ...READ MORE

answered Oct 24, 2019 in GCP by Sirajul
• 54,080 points
97 views