GAMADV-X/XTD/XTD3

1,430 views
Skip to first unread message

Ross Scroggs

unread,
Jun 3, 2019, 11:48:33 PM6/3/19
to google-ap...@googlegroups.com

I posted version 4.85.00 of my three Advanced GAM versions on Monday, June 3. There are two important issues.
First, the format of oauth2.txt has changed; your first command after updating should be: gam oauth update
If you have multiple sections in gam.cfg, repeat this command for each section: gam select <Section> oauth update
If you don't do this command, Gam will automatically stop to do the update in front of whatever command you do execute.

Hopefully this will cause little to no disruption; my apologies in advance if it does.

Second, there will be no further enhancements to GAMADV-X and GAMADV-XTD. These versions are built on Python 2 and its support ends on 2020/01/01. I encourage you to update to GAMADV-XTD3 which is built on Python 3. You do not have to install Python 3 on your Mac/Linux/PC; it is built into the executable.
Typically, all you'll have to do after upgrading is change PATH on a PC to point to the GAMADV-XTD3 directory or change your Gam alias on Mac/Linux.


Ross
--

Bri Hatch

unread,
Jun 4, 2019, 12:40:45 AM6/4/19
to google-ap...@googlegroups.com


On Mon, Jun 3, 2019, 8:48 PM Ross Scroggs <ross.s...@gmail.com> wrote:


Second, there will be no further enhancements to GAMADV-X and GAMADV-XTD. These versions are built on Python 2 and its support ends on 2020/01/01. I encourage you to update to GAMADV-XTD3 which is built on Python 3. 

Huzzah!


James SEYMOUR

unread,
Jun 4, 2019, 1:19:05 AM6/4/19
to GAM for G Suite
Hi Ross,

When I run gam oauth update I get an error, ERROR: Invalid argument: Expected <info|import|create|export|delete> It doesn't like the update switch.

I have already upgraded to GAMADV-XTD3, a few days ago and currently in 4.85.00.

Do I need to create or import the oauth first, with gam oauth create|import?

Cheers

James
Ross Scroggs

+KimNilsson

unread,
Jun 4, 2019, 6:03:36 AM6/4/19
to GAM for G Suite
Ran through 12 domains, without a single glitch.

James SEYMOUR

unread,
Jun 4, 2019, 8:48:20 AM6/4/19
to GAM for G Suite
Just want to check before I do any serious damage.

I have updated to GAMADV-XTD3, after the update I can see that a new folder is created called /home/my_name/bin/gamadv-xtd3. But when run gam version I am still pointing to the old gamadv-xtd folder.

So I am correct that I need to update the gam.cfg file, in both gamadv-xtd and gamadv-xtd3 (? just to cover myself) and change all the file paths to point to the new folder, gamadv-xtd3?

Running gam oauth update in this new folder still does not work, it still gives me the same error.

Thanks. James

Ross Scroggs

unread,
Jun 4, 2019, 9:04:39 AM6/4/19
to google-ap...@googlegroups.com
James,

From your first post:
When I run gam oauth update I get an error, ERROR: Invalid argument: Expected <info|import|create|export|delete> It doesn't like the update switch.

I have already upgraded to GAMADV-XTD3, a few days ago and currently in 4.85.00.

Do I need to create or import the oauth first, with gam oauth create|import?

This indicates that your alias is pointing to a pre 4.85.00 version; check your aliases.

No changes to gam.cfg are required; it should be located in /home/my_name/.gam or in another folder if GAMCFGDIR is set.

If you're going to run XTD and XTD3 in parallel for testing, they both have to be at 4.85.00; you can do gam oauth update with either version as they share a common configuration.

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/b25e76f4-23e2-4383-b318-dae4eee5979c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Kim Nilsson

unread,
Jun 4, 2019, 9:09:53 AM6/4/19
to Google Apps Manager
Hi, James.

You should have your gam.cfg file in ~/.gam and not inside the gamadv-xtd folder. It only takes one cfg file. Regardless of how how many versions of gamadv you have (with and without -xtd(3)).

Check your gamadv and gamadv-xtd folders. There should be no personal files there. Only downloaded files from Ross' github. 

Then you need to edit any aliases you may have, so they point to the ~/bin/gamadv-xtd3/gam binary.

And finally, exit the shell and reconnect, so the edited aliases come into effect. 

Brian Kim

unread,
Jun 4, 2019, 11:50:43 AM6/4/19
to GAM for G Suite
I am getting Bad Request 400 Error, upgraded from a previous version of GAMADV-XTD in Cloud Shell environment. Anything I could be doing wrong? I will try upgrading to GAMADV-XTD3 and see if the issue persists.

Ross Scroggs

unread,
Jun 4, 2019, 11:54:32 AM6/4/19
to google-ap...@googlegroups.com
Brian,

What command are you executing?

Ross

On Tue, Jun 4, 2019 at 8:50 AM Brian Kim <bria...@strataprime.com> wrote:
I am getting Bad Request 400 Error, upgraded from a previous version of GAMADV-XTD in Cloud Shell environment. Anything I could be doing wrong? I will try upgrading to GAMADV-XTD3 and see if the issue persists.

--
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.


--

Brian Kim

unread,
Jun 4, 2019, 12:00:30 PM6/4/19
to GAM for G Suite
Hi Ross,

I am just running gam oauth create. no_browser in gam.cfg is set to true, and in the authorization tab, I am asked to Allow/Deny individual scopes until it gets to 400 Error message.


James SEYMOUR

unread,
Jun 4, 2019, 7:34:42 PM6/4/19
to GAM for G Suite
Hi Ross,

I seem to have made some progress. Initially I was updating GAMADV-XTD3 (using bash <(curl -s -S -L https://git.io/fhZWP) -l) and then running the gam oauth update command.

When I update GAMADV-XTD (using bash <(curl -s -S -L https://git.io/vAAj9) -l) and then run gam oauth update, I then have to re-authorise the scopes and eventually I get Client OAuth2 File: /path/to/file/.gam/oauth2.txt, Updated

However, when I run the gam version command I see that I am still using the version in the GAMADV-XTD folder. The output is;-
Ross Scroggs <ross.s...@gmail.com>
Python 2.7.16 64-bit final
google-api-python-client 1.7.8
httplib2 0.12.1
oauth2client 4.1.3
Linux-4.14.104+-x86_64-with-debian-9.9 x86_64
Path: /home/my_name/bin/gamadv-xtd

I assume that I need the bold text above to read Python 3 and gamadv-xtd3. My gam.cfg is still pointing to /home/my_name/bin/gamadv-xtd which is why I was thinking I needed to update this. Or do I leave it as is?

Cheers James


On Tuesday, 4 June 2019 21:04:39 UTC+8, Ross Scroggs wrote:
James,

From your first post:
When I run gam oauth update I get an error, ERROR: Invalid argument: Expected <info|import|create|export|delete> It doesn't like the update switch.

I have already upgraded to GAMADV-XTD3, a few days ago and currently in 4.85.00.

Do I need to create or import the oauth first, with gam oauth create|import?

This indicates that your alias is pointing to a pre 4.85.00 version; check your aliases.

No changes to gam.cfg are required; it should be located in /home/my_name/.gam or in another folder if GAMCFGDIR is set.

If you're going to run XTD and XTD3 in parallel for testing, they both have to be at 4.85.00; you can do gam oauth update with either version as they share a common configuration.

Ross

On Jun 4, 2019, at 5:48 AM, 'James SEYMOUR' via GAM for G Suite <google-ap...@googlegroups.com> wrote:

Just want to check before I do any serious damage.

I have updated to GAMADV-XTD3, after the update I can see that a new folder is created called /home/my_name/bin/gamadv-xtd3. But when run gam version I am still pointing to the old gamadv-xtd folder.

So I am correct that I need to update the gam.cfg file, in both gamadv-xtd and gamadv-xtd3 (? just to cover myself) and change all the file paths to point to the new folder, gamadv-xtd3?

Running gam oauth update in this new folder still does not work, it still gives me the same error.

Thanks. James

On Tuesday, 4 June 2019 18:03:36 UTC+8, +KimNilsson wrote:
Ran through 12 domains, without a single glitch.

--
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.

James SEYMOUR

unread,
Jun 4, 2019, 8:03:46 PM6/4/19
to GAM for G Suite
Thanks Kim. It was my aliases. One was in a .bashrc file and one in a .profile file. All sorted now.

Louis Pelissier

unread,
Jun 10, 2019, 12:26:32 PM6/10/19
to GAM for G Suite
On windows when I run gam oauth create or gam oauth update I am getting a 400 error in the browser. I have run gam oauth delete to test. The original GAM still functions, but if I run a new command with GAMADV-XTD3 it will run the oauth and I will get the same message.


error message below:

400. That’s an error.

Error: invalid_request

Required parameter is missing: response_type

Learn more

Request Details
client_id=**************
scope=email+profile+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcalendar+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fclassroom.courses+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fclassroom.announcements+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fclassroom.coursework.students+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fclassroom.guardianlinks.students+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fclassroom.profile.emails+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fclassroom.profile.photos+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fclassroom.rosters+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcloudprint+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fdevstorage.read_only+https%3A%2F%2Fwww.google.com%2Fm8%2Ffeeds+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fadmin.datatransfer+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fadmin.directory.device.chromeos+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fadmin.directory.customer+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fadmin.directory.domain+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fadmin.directory.group+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fadmin.directory.device.mobile+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fadmin.directory.orgunit+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fadmin.directory.resource.calendar+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fadmin.directory.rolemanagement+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fadmin.directory.userschema+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fadmin.directory.user.security+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fadmin.directory.user+https%3A%2F%2Fapps-apis.google.com%2Fa%2Ffeeds%2Fcompliance%2Faudit%2F+https%3A%2F%2Fapps-apis.google.com%2Fa%2Ffeeds%2Femailsettings%2F2.0%2F+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fapps.groups.migration+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fapps.groups.settings+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fapps.licensing+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcontacts+https%3A%2F%2Fwww.googleapis.com%2Fauth%
That’s all we know.

Christina Heikkila

unread,
Jun 14, 2019, 9:30:40 AM6/14/19
to google-ap...@googlegroups.com
I'm getting the same error on Windows. I'm installing gamadv-xtd3 4.86.05 for the first time on a Windows server, where I've been running gam 4.61 (which has stopped working because Google says it's an unverified app). Running gam version says:
GAM 4.86.05 - https://github.com/taers232c/GAMADV-XTD3
Ross Scroggs <ross.s...@gmail.com>
Python 3.7.3 64-bit final
google-api-python-client 1.7.8
httplib2 0.13.0
oauth2client 4.1.3
Windows-2012ServerR2-6.3.9600 AMD64
Path: C:\gamadv-xtd3

After deleting oauth.txt, running gam oauth create, accepting the default scopes and entering my admin account, I get the same error message:
Error 400 (OAuth2 Error)!!1

400. That’s an error.

Error: invalid_request

Required parameter is missing: response_type

Learn more

Request Details

Does anyone have any ideas?
Christina

_____________________________________________
Christina Heikkila
Web Services Analyst, Cape Fear Community College
chei...@cfcc.edu
910-362-7313



Mission:
The Rumson School District ignites the potential of its learners by growing, inspiring, and cultivating personal excellence academically, socially, and emotionally.

Confidentiality Notice

The information contained in this email/document is confidential and may be legally privileged. Access to this email/document by anyone other than the intended recipient(s) is unauthorized. If you are not an intended recipient, any disclosure, copying, distribution, or any action taken or omitted to be taken in reliance to it, is prohibited.

--
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.

E-mail correspondence to and from this address may be subject to the North Carolina Public Records Law and may be disclosed to third parties by an authorized state official. (NCGS.Ch.132)

+KimNilsson

unread,
Jun 16, 2019, 6:31:06 AM6/16/19
to GAM for G Suite
Just downloaded 4.86.06 zip for Windows 64; updating from something in April.
Ran gam info domain, checked all scopes but 32 (Reseller API), and it updated oauth2.txt without a problem.

Louis and Christina, did you both make sure to not run the new version the same day as the old?
A full day shouldn't be necessary (really only an hour or so), but there has been mention of some timing issue, if running a new GAMADV-XTD3 closely after a previous version, not producing a proper oauth request.

Gordon McDowell

unread,
Aug 1, 2024, 1:34:10 PM8/1/24
to GAM for Google Workspace
Ross, I'm using GAMADV-XTD3 6.79.05 on a Mac with M1 Apple Silicon ARM. It seems really slow. Just typing "gam" takes 10 seconds to complete.

If I just type gam part of the response is...
Python 3.12.4 64-bit final
MacOS Sonoma 14.6 x86_64
...does that x84_64 mean anything like gam or python is using Rosetta2?

Thanks for any help, -Gord

Gordon McDowell

unread,
Aug 1, 2024, 2:27:09 PM8/1/24
to GAM for Google Workspace
Ross... update... my entire terminal was i386 instead of arm64. No idea if I messed up my Mac or if that is the default, but I'm now running arm64 and is as fast as I'd hoped. -Gord
Reply all
Reply to author
Forward
0 new messages