Last active
January 17, 2022 15:00
-
-
Save jlandure/c075bd8ea9f934322caa5ed4ccf25dcd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while read p; do | |
gcloud projects get-iam-policy $p --flatten="bindings[].members" --format="value(bindings.members)" --filter="bindings.role:roles/owner" | |
done <project-gcp.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gcloud projects list --filter 'parent.id=xxx' | |
xxx = folder number or org level |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
project-gcp.txt
project-one
project-two
etc
You need "Organization access right" to discover the list of projects. 😊