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 24, 2019 in GCP by anonymous
• 6,260 points
4,544 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.

Hope it works!!

To find out more about Google Cloud, join Google Cloud training today.

Thanks!

answered Oct 24, 2019 by Sirajul
• 59,230 points

Related Questions In GCP

+1 vote
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
• 59,230 points
851 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
• 59,230 points
3,984 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
• 59,230 points
4,915 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
• 59,230 points
992 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 25, 2019 in GCP by Sirajul
• 59,230 points
1,011 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP