Issue retrieving groups/group members

125 views
Skip to first unread message

Mitchell Hoffman

unread,
Aug 10, 2023, 12:52:00 PM8/10/23
to GAM for Google Workspace


Good Day Gammers!,

Facing an issue when trying to retrive groups/groups membership

GAM verion:
PS C:\Users\ame adv-gam version
GAMADV-XTD3 6.61.18 - https://github.com/taers232c/GAMADV-XTD3 - pyinstaller
Ross Scroggs <ross.s...@gmail.com>
Python 3.11.4 64-bit final
Windows 10 10.0.14393 SP0 Multiprocessor Free AMD64
Path: D:\614-gamadv
Config File: C:\Users\me\.gam\gam.cfg, Section: DEFAULT, customer_id: my_customer, domain:



Issuing the command:


gam print groups
or
gam print groups members


Results in an error of invalid input.

Thinking one of the groups maybe has a unreadable character?

Any advice would be much appreciated.

Thanks,
MItch


Error details:

gam print groups members:


PS C:\Users\me> adv-gam print groups members
Getting all Groups, may take some time on a large Google Workspace Account...
Got 2200 Groups: gro...@mywork.com - gro...@mywork.comTraceback (most recent call last):
  File "__init__.py", line 5103, in callGAPI
  File "googleapiclient\_helpers.py", line 130, in positional_wrapper
  File "googleapiclient\http.py", line 938, in execute
googleapiclient.errors.HttpError: <HttpError 400 when requesting https://admin.googleapis.com/admin/directory/v1/groups?orderBy=email&fields=nextPageToken%2Cgroups%28email%29&cus
tomer=my_customer&pageToken=----------------------------------------------------------------------------------------------------------------------- returned "Invalid Input: Cl6clpDSnJOQipvSmJyP0sbHzcfSmpOTmpGLmoyLzr-enJyakYuKjZrRnJCS_wD-mJiYoM_Pz8_Pz8vKyJ2amcvHz
cv_AP7__v-YmJigz8_Pz8_Py8rInZqZy8fNy__-EKgRIUQ6U9XBQl3QUAJaCwlDnoUKpu806xADYLTI68UEcgYI5J3UpgY=". Details: "[{'message': 'Invalid Input: Cl6clpDSnJOQipvSmJyP0sbHzcfSmpOTmpGLmoyLz
r-enJyakYuKjZrRnJCS_wD-mJiYoM_Pz8_Pz8vKyJ2amcvHzcv_AP7__v-YmJigz8_Pz8_Py8rInZqZy8fNy__-EKgRIUQ6U9XBQl3QUAJaCwlDnoUKpu806xADYLTI68UEcgYI5J3UpgY=', 'domain': 'global', 'reason': 'i
nvalid'}]">

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "__init__.py", line 30744, in doPrintGroups
  File "__init__.py", line 5238, in callGAPIpages
  File "__init__.py", line 5131, in callGAPI
gamlib.glgapi.invalidInput: Invalid Input: Cl6clpDSnJOQipvSmJyP0sbHzcfSmpOTmpGLmoyLzr-enJyakYuKjZrRnJCS_wD-mJiYoM_Pz8_Pz8vKyJ2amcvHzcv_AP7__v-YmJigz8_Pz8_Py8rInZqZy8fNy__-EKgRIUQ
6U9XBQl3QUAJaCwlDnoUKpu806xADYLTI68UEcgYI5J3UpgY=

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "__init__.py", line 70632, in ProcessGAMCommand
  File "__init__.py", line 30749, in doPrintGroups
  File "__init__.py", line 2366, in invalidMember
KeyError: 'query'


gam print groups:

PS C:\Users\me> adv-gam print groups
Getting all Groups, may take some time on a large Google Workspace Account...
Got 200 Groups: gro...@mywork.com - gro...@mywork.comTraceback (most recent call last):
  File "__init__.py", line 5103, in callGAPI
  File "googleapiclient\_helpers.py", line 130, in positional_wrapper
  File "googleapiclient\http.py", line 938, in execute
googleapiclient.errors.HttpError: <HttpError 400 when requesting https://admin.googleapis.com/admin/directory/v1/groups?orderBy=email&fields=nextPageToken%2Cgroups%28email%29&cus
tomer=my_customer&pageToken=ClSeltGPjZCbkI-M0Z6Tk5aekZyav56cnJqRi4qNmtGckJL_AP6YmJigz8_Pz8_PysfMysqZypvJzP8A_v_-_5iYmKDPz8_Pz8_Kx8zKypnKm8nM__4Q2AEhRDpT1cFCXdBQAloLCUOehQqm7zTrEA
NgzdjB9wJyBgjkndSmBg%3D%3D&prettyPrint=false&alt=json returned "Invalid Input: ClSeltGPjZCbkI-M0Z6Tk5aekZyav56cnJqRi4qNmtGckJL_AP6YmJigz8_Pz8_PysfMysqZypvJzP8A_v_-_5iYmKDPz8_Pz8_
Kx8zKypnKm8nM__4Q2AEhRDpT1cFCXdBQAloLCUOehQqm7zTrEANgzdjB9wJyBgjkndSmBg==". Details: "[{'message': 'Invalid Input: ClSeltGPjZCbkI-M0Z6Tk5aekZyav56cnJqRi4qNmtGckJL_AP6YmJigz8_Pz8_
PysfMysqZypvJzP8A_v_-_5iYmKDPz8_Pz8_Kx8zKypnKm8nM__4Q2AEhRDpT1cFCXdBQAloLCUOehQqm7zTrEANgzdjB9wJyBgjkndSmBg==', 'domain': 'global', 'reason': 'invalid'}]">

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "__init__.py", line 30744, in doPrintGroups
  File "__init__.py", line 5238, in callGAPIpages
  File "__init__.py", line 5131, in callGAPI
gamlib.glgapi.invalidInput: Invalid Input: ClSeltGPjZCbkI-M0Z6Tk5aekZyav56cnJqRi4qNmtGckJL_AP6YmJigz8_Pz8_PysfMysqZypvJzP8A_v_-_5iYmKDPz8_Pz8_Kx8zKypnKm8nM__4Q2AEhRDpT1cFCXdBQAlo
LCUOehQqm7zTrEANgzdjB9wJyBgjkndSmBg==



Ross Scroggs

unread,
Aug 10, 2023, 12:54:19 PM8/10/23
to google-ap...@googlegroups.com
Mitchell,

This is a Google bug that appeared yesterday; if you update to the latest version, you'll get better error handling but the bug has not been fixed.

Ross

--
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/ec7eeb89-620f-401c-acb6-cf0ce10b60den%40googlegroups.com.


--

Mitchell Hoffman

unread,
Aug 10, 2023, 1:01:47 PM8/10/23
to GAM for Google Workspace
Many Thanks Ross for the quick reply.
Will update now.

Mitchell Hoffman

unread,
Aug 10, 2023, 2:03:39 PM8/10/23
to GAM for Google Workspace
Hi Ross,
Updated to 6.62.05
Getting same type of error.


PS C:\Users\me> adv-gam version
GAMADV-XTD3 6.62.05 - https://github.com/taers232c/GAMADV-XTD3 - pyinstaller

Ross Scroggs <ross.s...@gmail.com>
Python 3.11.4 64-bit final
Windows 10 10.0.14393 SP0 Multiprocessor Free AMD64
Path: D:\614-gamadv
Config File: C:\Users\me\.gam\gam.cfg, Section: DEFAULT, customer_id: my_customer, domain:
Time: 2023-08-10T17:58:00+00:00



PS C:\Users\me> adv-gam print groups members
Getting all Groups, may take some time on a large Google Workspace Account...
Got 200 Groups: 11811_...@mywork.com- ai.prodop...@mywork.com
ERROR: Group Print Failed: Invalid Input: ClSeltGPjZCbkI-M0Z6Tk5aekZyav56cnJqRi4qNmtGckJL_AP6YmJigz8_Pz8_PysfMysqZypvJzP
8A_v_-_5iYmKDPz8_Pz8_Kx8zKypnKm8nM__4Q2AEhRDpT1cFCXdBQAloLCUOehQqm7zTrEANg5KbBR3IGCPS51KYG



Is there a bug tracker number/case for the issue with google, maybe I can open a case for our domain and reference it?

Thanks,
Mitch

Jay Lee

unread,
Aug 10, 2023, 2:06:50 PM8/10/23
to google-ap...@googlegroups.com
Yes, that's expected, the issue is on Google's end.

Ross has filed this bug below. Mitchell and ANYONE else seeing this issue, could you please:
  1. Hit the +1 button at the top right of the issue to show you are also having an issue here.
  2. Open a Google support ticket about this issue with Groups API and mention that the issue is related to "internal Google issue 295302751"
  3. Please don't respond to the bug with "me too" it just distracts everyone with noise.


Ross Scroggs

unread,
Aug 10, 2023, 2:08:30 PM8/10/23
to google-ap...@googlegroups.com
Mitchell,

I've submitted a bug report, Google is investigating

Ross



--

Ross Scroggs

unread,
Aug 10, 2023, 2:43:13 PM8/10/23
to google-ap...@googlegroups.com
Mitchell,

Test now.

Ross
--

Mitchell Hoffman

unread,
Aug 10, 2023, 2:53:58 PM8/10/23
to google-ap...@googlegroups.com
Thanks Jay and Ross.
I +1'd on the tracker and added comments
As well as opened a case and reference the issue number

-Mitch

Ross Scroggs

unread,
Aug 10, 2023, 2:55:00 PM8/10/23
to google-ap...@googlegroups.com
Mitchell,

Is the command working for you now?

Ross



--

Mitchell Hoffman

unread,
Aug 10, 2023, 2:55:09 PM8/10/23
to google-ap...@googlegroups.com

Running it now!
Its getting further than before so good sign

I will follow up when its complete.

Thank you

Mitchell Hoffman

unread,
Aug 10, 2023, 3:10:07 PM8/10/23
to GAM for Google Workspace
Its working!
Thanks so much Ross and Jay for this unbelievable tool.

Best Regards,
MItch
Reply all
Reply to author
Forward
0 new messages