3

GCP IAM page displays project-wide permissions and principals.

I've granted Object Admin permission to user@example.com to a specific GCS bucket. This permission is not visible on the IAM page.

How do I list all permissions granted to user@example.com across all resources using console or gcloud CLI?

stkvtflw
  • 12,092
  • 26
  • 78
  • 155

1 Answers1

4

It seems like this can be done with the gcloud asset command: https://cloud.google.com/sdk/gcloud/reference/asset/search-all-iam-policies

Eg. a basic example query for a single project:

gcloud asset search-all-iam-policies --scope=projects/<project> --query="policy:<email>"

The output is quite verbose, but does what you want, I think.

somethingsomething
  • 1,746
  • 6
  • 8