How do I install multiple instances of gam on one machine?

1,705 views
Skip to first unread message

M

unread,
Jun 11, 2018, 1:27:59 PM6/11/18
to GAM for G Suite
Hello,

Is it possible to install gam for multiple domains? I've tried a few things, but it keeps asking me to remove the .json which is tied to another project? 



This message and its contents are confidential. If you received it in error, please delete it.

Ross Scroggs

unread,
Jun 11, 2018, 1:50:49 PM6/11/18
to google-ap...@googlegroups.com
Martin,

With Gam 4.40 this is a bit messy.
1) You have multiple Gam folders, each with domain specific client_secrets.json, oauth2.txt and oauth2service.json files.
You would use different aliases to point to the different Gam folders
2) You could have a single Gam folder, with domain suffixed client_secrets.json, oauth2.txt and oauth2service.json files; e.g. oauth2_dfomain1.txt, oauth2service_domain2.json
You would execute a script that sets the CLIENTSECRETS, OAUTHFILE and OAUTHSERVICEFILE environment variables to point the the appropriate domain suffixed files.

My Advanced Gams (https://github.com/taers232c/GAMADV-X) and (https://github.com/taers232c/GAMADV-XTD with Team Drive) make this simple by using a configuration file.


Ross

--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/9eb84622-308f-49c0-a8cf-ff1f044a3a1b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--

Tyler J Howe

unread,
Jan 31, 2019, 7:13:06 PM1/31/19
to GAM for G Suite
Hello Sir,

You helped me once in the past with a GAM install on a dreamhost vps.  tyvm.


After seeing this post I started working on a tool (set of bash functions) to make switching between multiple sites and tokens easier.  I'd like to ask if you:

1 - think it is a worthwhile effort

2 - know of a way for me to continue to develop it now that i've used up my free week of GSuite and have no access to an active GSuite domain.


I had a lot of ideas for features and was working on access control to tokens / domains via gpg encryption.

The project is located here:  http://github.com/tylerjhowe/gamulti

Any input / advice is appreciated.

My thanks,


On Monday, June 11, 2018 at 1:50:49 PM UTC-4, Ross Scroggs wrote:
Martin,

With Gam 4.40 this is a bit messy.
1) You have multiple Gam folders, each with domain specific client_secrets.json, oauth2.txt and oauth2service.json files.
You would use different aliases to point to the different Gam folders
2) You could have a single Gam folder, with domain suffixed client_secrets.json, oauth2.txt and oauth2service.json files; e.g. oauth2_dfomain1.txt, oauth2service_domain2.json
You would execute a script that sets the CLIENTSECRETS, OAUTHFILE and OAUTHSERVICEFILE environment variables to point the the appropriate domain suffixed files.

My Advanced Gams (https://github.com/taers232c/GAMADV-X) and (https://github.com/taers232c/GAMADV-XTD with Team Drive) make this simple by using a configuration file.


Ross

On Mon, Jun 11, 2018 at 10:27 AM M <mar...@revampcybersecurity.com> wrote:
Hello,

Is it possible to install gam for multiple domains? I've tried a few things, but it keeps asking me to remove the .json which is tied to another project? 



This message and its contents are confidential. If you received it in error, please delete it.

--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.


--

Ross Scroggs

unread,
Jan 31, 2019, 8:17:01 PM1/31/19
to google-ap...@googlegroups.com
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.

To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.

Tyler J Howe

unread,
Jan 31, 2019, 8:18:51 PM1/31/19
to google-ap...@googlegroups.com
Ah.  Okay.

Thank you!  I'll have to find a new project...

To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/9eb84622-308f-49c0-a8cf-ff1f044a3a1b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--

--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/a44e39ab-4536-4500-837b-bcd21fca1d18%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.

For more options, visit https://groups.google.com/d/optout.


--
Reply all
Reply to author
Forward
0 new messages