HiveBrain v1.2.0
Get Started
← Back to all entries
snippetMinor

How to allow users to list authorized buckets in GCP Storage?

Submitted by: @import:stackexchange-devops··
0
Viewed 0 times
bucketsstorageallowhowlistusersgcpauthorized

Problem

I created a storage bucket B and I granted a user as "Storage Object Viewer" on it.
The user can view bucket content with a direct link (e.g. https://console.cloud.google.com/storage/browser/B/?project=azerty).

Is it possible to allow a user to list all buckets that he is allowed to read? It would be more user friendly to see them in Storage Browser Web console i.e. https://console.cloud.google.com/storage/browser

Solution

It's not currently possible to list all the accessible buckets across all cloud projects, neither in the developer console browser nor via the gsutil command. Both of them only display buckets for one project at a time.

But if you specify a particular project (or stick with the one selected by default) you can list the accessible buckets inside that project in both gsutil (as shown in @chupasaurus's answer) and in the developer console browser. In the browser you get to the project selection popup by clicking on the project's dropdown menu in the top navigation bar.

You could try to file a feature request for it at https://issuetracker.google.com/components/187243/manage#basic, it might get accepted if it shows enough interest.

Context

StackExchange DevOps Q#1512, answer score: 1

Revisions (0)

No revisions yet.