-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathGAM CloudShell Setup Instructions
38 lines (27 loc) · 2.06 KB
/
GAM CloudShell Setup Instructions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Description
GAM (Google Apps Manager) is an open source tool built by a Google employee but not supported or recognized by Google.
GAM uses an easy to use syntax to interact with G Suite APIs. Many actions are only available
Fairly basic good instructions
https://basuta.com/posts/installing-google-apps-manager-gam-on-google-cloud-shell/
Instructions
Open the “APIs & Services Credentials” to view the OAuth 2.0 Client IDs and Service Accounts for the GCP Project you are going to use with Google Cloud Shell. IT uses it-ops-dev
https://console.cloud.google.com/apis/credentials?project=project-name
CreatingClientSecretsFile - Start on step3 - “Create credentials and choose OAuth client ID”
https://github.com/jay0lee/GAM/wiki/CreatingClientSecretsFile#create-the-credentials-files
Setup GAM AND/OR GAM-XTDin Google Cloud Shell: https://ssh.cloud.google.com/cloudshell/editor
GAM: https://github.com/jay0lee/GAM/wiki
GAM-XTD3: https://github.com/taers232c/GAMADV-XTD3/wiki/Downloads
Authorize Client Scopes
https://github.com/jay0lee/GAM/wiki/CreatingClientSecretsFile#run-gam-to-authorize-the-client-api-scopes
Locally install Gcloud SDK tools on your laptop
https://cloud.google.com/sdk/docs/quickstart-macos
Setup SSH
https://cloud.google.com/blog/products/gcp/introducing-the-ability-to-connect-to-cloud-shell-from-any-terminal
GAM + Cloudshell
GAM Oauth Create: gam oauth create: https://github.com/jay0lee/GAM/wiki/CreatingClientSecretsFile#run-gam-to-authorize-the-client-api-scopes
Setup in Cloud shell: https://ssh.cloud.google.com/cloudshell/environment/view
Start at the docs here: https://github.com/jay0lee/GAM/wiki/CreatingClientSecretsFile#create-the-credentials-files
Use a designated GCP project then install Google gloud SDK locally: https://cloud.google.com/storage/docs/gsutil_install
Then use the alpha tool to ssh to your cloudshell instance: https://cloud.google.com/blog/products/gcp/introducing-the-ability-to-connect-to-cloud-shell-from-any-terminal
Cloudshell directory needs to be Parent/bin/gam
You may need to chown the .config when installing gcloud sdk tools