GAM v3.51 - Error 400: Invalid Input: INVALID_OU_ID - invalid

3,360 views
Skip to first unread message

Jan Jurčík

unread,
Sep 30, 2015, 10:10:22 AM9/30/15
to Google Apps Manager
Hello,
I am using GAM v3.51 but when working with OUs containing spaces, I receive:
"Error 400: Invalid Input: INVALID_OU_ID - invalid"

Used command:
gam print users query orgUnitPath-/"<OU name>"

This seems to be a known error, however it is not fixed in GAM v3.51:
https://groups.google.com/forum/#!topic/google-apps-manager/Jsw_WCER78A

Please does any of you have any time-estimation, if and when there is a plan to fix it? Thank you.

//BR Jan Jurcik

Jay Lee

unread,
Sep 30, 2015, 10:12:47 AM9/30/15
to Google Apps Manager
You need to properly quote the query and the OU. For example:

gam print users query "orgUnitPath='/Former Employees'"

notice that there are double quotes around the whole query value and single quotes around the OU name.

Jay

--
You received this message because you are subscribed to the Google Groups "Google Apps Manager" 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 http://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/9e798aa8-7c2d-428a-b48b-c7f099554f81%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--

Jay Lee

Jan Jurčík

unread,
Sep 30, 2015, 11:05:01 AM9/30/15
to Google Apps Manager
Thank you Jay,
that works like a charm!

My fault, I am sorry for that! Many thanks for your immediate help.

//BR Jan
Reply all
Reply to author
Forward
0 new messages