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&customer=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&customer=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==