I have a unique use case that I'm hoping someone has come across and already resolved. For context, there are around 200 Shared Drives in a GWS environment that each contain a different number of files. I would like to use a
gam csv command to print the list of files in each Shared Drive in parallel and combine the results into a single file.
I know how to accomplish this by providing a CSV file containing the Shared Drive ID and the email address of a member of the Shared Drive for each unique Drive in the environment.
I'd instead like to create 100 to 200 service accounts in GCP and grant those accounts Viewer access to the Shared Drive folders. From there, I'd like to follow a similar process I mentioned previously of providing a CSV file containing the Shared Drive ID but instead, I'd like to use the GCP service accounts' email addresses to print the list of files.
In summary, does anyone know if it's possible to execute a GAM command as a GCP service account?