Move location of client_secrets, etc for GAM-ADV-XTD3

391 views
Skip to first unread message

Carl Sundermann

unread,
Sep 24, 2023, 6:48:56 PM9/24/23
to GAM for Google Workspace
Hi all,

A couple years ago, when I set up GAM-ADVXTD3 on a Windows server, I got it running where it's been humming along nicely. I update it every now and then and it does what it needs to do. But I never really documented what I did...

So while trying to go back and create documentation for what this is doing and how it's set up, I'm realizing I have two locations where the files are for my installation:

My main folder where the executable file is kept is here:
C:\Data\AutomatedChromebookMoves\GAMADV-XTD3

Yet my client_secrets.json, oauth2.txt, gamcache folder, etc are found here:
C:\Users\sundermannc\.gam

Now, I'm sure this was an error that my "past self" made, so I've already scolded my "past self". But now I want to fix this.  I'd like everything in that main folder location so that this becomes a "self contained folder", for the inevitable day when we update/move/change servers, and just to keep it nice and tidy.

How do I properly go about moving these files so the GAM installation knows where to find them?  (I think Standard GAM puts everything in one folder anyway, but unfortunately I can't use Standard GAM due to what this GAM is doing for me.)

Thanks all,

Carl

Ross Scroggs

unread,
Sep 24, 2023, 8:08:54 PM9/24/23
to google-ap...@googlegroups.com
Carl,


For Windows, the documenttion describes the following folders.
C:\GAMADV-XTD3 - The executable folder
  * This folder should be on your system path
C:\GamConfig - The configuration folder; gam.cfg, client_secrets.json, oauth2service.json, oauth2.txt, gamcache, .... 
  * This folder is referenced by the system environment variable GAMCFGDIR
  * This folder is referenced in gam.cfg as config_dir
  * The cache folder is referenced in gam.cfg as cache_dir
  * This what you have in C:\Users\sundermannc\.gam
C:\GamWork - The working folder, scripts, CSV files, log files, notes
  * This folder is referenced in gam.cfg as drive_dir

Here is a one main folder alternative
C:\GAM
  C:\GAM\Binary - The executable folder
    * This folder should be on your system path
  C:\GAM\Config - The configutation folder
    * This folder is referenced by the system environment variable GAMCFGDIR
    * This folder is referenced in gam.cfg as config_dir
  C:\GAM\Cache - The cache folder
    * This folder is referenced in gam.cfg as cache_dir
  C:\GAM\Work - The working folde
    * This folder is referenced in gam.cfg as drive_dir

Copy the contents C:\Users\sundermannc\.gam as deired, update the references in gam.cfg

Ross
----
Ross Scroggs



--
You received this message because you are subscribed to the Google Groups "GAM for Google Workspace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/f80529c4-513e-437b-a353-7201c684a629n%40googlegroups.com.

Carl Sundermann

unread,
Sep 26, 2023, 10:16:15 PM9/26/23
to GAM for Google Workspace
Thank you for the assist, Ross!  This all worked beautifully.  Cheers.
-Carl
Reply all
Reply to author
Forward
0 new messages