Created
March 3, 2023 01:20
-
-
Save so-jelly/951dbbbbb1a915d4b5bb202baeaebfaa to your computer and use it in GitHub Desktop.
gsutil
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
BUCKET=foo-bucket | |
USER=name@domain.com | |
gsutil iam get gs://$BUCKET | | |
jq -r '.bindings | | |
map(select(any( | |
.members[]; contains("user:'$USER'"))) | |
|.role)[]' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment