I am in the process of attempting to adjust user permissions in Google Cloud and have created a service account that other users can impersonate to access various projects. The gcloud
command has the --impersonate-service-account
option to make API calls with the proper authentication, but I was wondering if anyone knows how to make such calls using gsutil
.
Here's an example of what a successful call looks like using gcloud
:
gcloud --impersonate-service-account=superuser@PROJECT1.iam.gserviceaccount.com iam service-accounts list --project PROJECT2