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 in GCP by anonymous
• 3,920 points
21 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 by Sirajul
• 37,930 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 in GCP by Sirajul
• 37,930 points
17 views
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 in GCP by Sirajul
• 37,930 points
23 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 in GCP by Sirajul
• 37,930 points
49 views
0 votes
1 answer
0 votes
1 answer