gcloud projects get-iam-policy
SafeInspect IAM policy
gcloud projects get-iam-policy <project>
Dumps role bindings — audit who's owner and what each service account can do.
Examples
gcloud projects get-iam-policy my-proj --flatten='bindings[].members' --filter='bindings.role:owner'List owners
Syntax
gcloud projects get-iam-policy <project> [--flatten ...]
Before you run it
Read only.
Related commands
- gcloud auth listGCP auth
- aws iam list-usersAudit IAM users/keys
The same reference, with no signal at all
Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.
Get it free on the App Store