Using GAM on multiple machines with the same Google Cloud project

477 views
Skip to first unread message

Gabriele Bartoli

unread,
May 27, 2022, 4:43:34 PM5/27/22
to GAM for Google Workspace
Hi all,

I am trying to install GAMADV-XTD3 on a machine while using the same GCP project that I set on my "primary machine".

My understanding is that I need to skip any automatic setup. Instead, I need to proceed manually, and once I am done with setting up the directories, I need to copy these files: client_secrets.json, oauth2.txt, oauth2service.json.
Once these files have been copied, I should be able to run GAM.

But I have a question: let's say that I don't have access to these files anymore (e.g. I am not in the same location), but the GCP project is active and can be used. Isn't there a way to have the new GAM installation to use an existing project?

I tried to follow these steps, but when using gam use project [<EmailAddress>] [project <ProjectID>]  the following happens:
  1. I can complete the authorization workflow
  2. The terminal shows the command going through the list of APIs
  3. The command exists with an error:
    Project: <Project-ID>, Service Account: <Project-ID>, Enable Failed: Service account <Project-ID> already exists within project projects/<Project-ID>.
    Where <Project-ID> is the project ID that I can find via GCP
I am clearly missing something, and I would like to understand what that is. I know I can probably get this to work by simply copying the files, but I really want to understand how the magic happens and what is going wrong.

Thanks!


Reply all
Reply to author
Forward
0 new messages