Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to enable additional users to create domain-named buckets in Google Cloud Storage?

I want to create domain-named buckets in Google Cloud Storage.

I verified the ownership of the domain, and now I can create buckets with the particular names using my own account.

However, I also need to give permissions to some other developers and some service accounts to do the same thing, so I added those users as verified owners of the domain.
They can be seen on the users screen.

Extra users in the list.

And on the page about the domain owners.

The domain users page.

Yet, if I try to create the domain-named bucket with any of the added accounts (either if it's a real person's account or a service account), I get the following error.

10:46:35.447 Creating gs://bucket.mydomain.com/...
10:46:35.697 AccessDeniedException: 403 The bucket you tried to create is a domain name owned by another user.

(If I try to create the bucket from the web management console, I get a similar error.)
I verified that the accounts have permissions for the GCE project, so they can create buckets fine as long as they are not domain-named.

What am I doing wrong?

like image 775
Mark Vincze Avatar asked Feb 07 '23 05:02

Mark Vincze


1 Answers

The docs point to an incorrect way of verifying ownership. For service accounts add them via https://www.google.com/webmasters/verification/home.

I figured it out after noticing different docs cover two similar sounding ways to verify ownership. I tried the page you have in your screenshots as its listed in the storage docs but then I found another set of steps listing yet another verification url. These are the steps which actually work.

like image 108
enjoylife Avatar answered May 13 '23 16:05

enjoylife