User Print Failed: Invalid Input

115 views
Skip to first unread message

Mitchell Hoffman

unread,
Feb 14, 2023, 8:27:46 AM2/14/23
to GAM for Google Workspace
Good Day Gammers!,

GAM verion:
GAMADV-XTD3 6.32.05

Facing an issue with this command:

gam print users allfields
Getting all Users, may take some time on a large Google Workspace Account...
Got 10000 Users: ralph-...@whereiwork.com - bobby...@whereiwork.comUser Print Failed: Invalid Input

Same if just gam print users

Tried enabling debug

gam config debug_level 1 print users allfields
Got this failure message:

reply: 'HTTP/1.1 400 Bad Request\r\n'
header: Vary: Origin
header: Vary: X-Origin
header: Vary: Referer
header: Content-Type: application/json; charset=UTF-8
header: Content-Encoding: gzip
header: Date: Tue, 14 Feb 2023 13:22:07 GMT
header: Server: ESF
header: Cache-Control: private
header: X-XSS-Protection: 0
header: X-Frame-Options: SAMEORIGIN
header: X-Content-Type-Options: nosniff
header: Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
header: Transfer-Encoding: chunked
ERROR:  JSON: {'error': {'code': 400, 'message': 'Invalid Input', 'errors': [{'message': 'Invalid Input', 'domain': 'global', 'reason': 'invalid'}]}}
User Print Failed: Invalid Input


I don't think its GAM specific as, if I try to export user from the admin console, it too errors out:

Can't prepare user info CSV file
Hide details
Started on Feb 14, 2023, 7:54:59 AM
Failed on Feb 14, 2023, 7:55:12 AM


Maybe a bad character in a newly created/modified user?

Any advice on how to track it down would be much appreciated.


Best Regards

Ross Scroggs

unread,
Feb 14, 2023, 9:36:31 AM2/14/23
to google-ap...@googlegroups.com
Google APIs that return long lists of items produce them in pages; each page of results contains a field nextPageToken
that is used to ask the API for the next page of results. Almost for sure what's going on is that Google is returning
an invalid nextPageTokenn and when it is passed to the API Google generates an error.

This has happened in the past when listing Chrome devices,

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/8e1e8760-6754-4642-9c90-b9886817a54en%40googlegroups.com.

Mitchell Hoffman

unread,
Feb 14, 2023, 9:58:04 AM2/14/23
to GAM for Google Workspace
Thanks Ross.
Going to open a case with Google as well as cannot get the list even from Admin console.

Mitchell Hoffman

unread,
Feb 14, 2023, 1:14:57 PM2/14/23
to GAM for Google Workspace
This issue looks to have resolved itself. At least last two commands I tried completed without error.
If Google support provides any insight I will share it.

Best Regards
Reply all
Reply to author
Forward
0 new messages