Error 400: Invalid Input - Invalid

2,878 views
Skip to first unread message

Guitardogg

unread,
May 13, 2015, 11:58:32 AM5/13/15
to google-ap...@googlegroups.com
Just updated to GAM 3.45.  Tried to create a user, started getting "Error 400: Invalid Input - Invalid".   I have a batch file that I have been successfully creating users with since I started using GAM, so I know my syntax is correct.  I also tried creating a user with the GAM command line, same result. Shouldn't there be something after the second "Invalid" in the error message, actually saying what was invalid?  Any ideas on what happened?

Jay Lee

unread,
May 13, 2015, 12:08:16 PM5/13/15
to google-ap...@googlegroups.com

Need to know what gam command you're running...

Jay

On May 13, 2015 11:58 AM, "Guitardogg" <gw...@wpusd.k12.ca.us> wrote:
Just updated to GAM 3.45.  Tried to create a user, started getting "Error 400: Invalid Input - Invalid".   I have a batch file that I have been successfully creating users with since I started using GAM, so I know my syntax is correct.  I also tried creating a user with the GAM command line, same result. Shouldn't there be something after the second "Invalid" in the error message, actually saying what was invalid?  Any ideas on what happened?

--
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/87d58159-07c5-4ec1-a765-a5ec054f480f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Guitardogg

unread,
May 13, 2015, 12:53:49 PM5/13/15
to google-ap...@googlegroups.com
I am running create user.  I have narrowed it down to the "org" field.  If I remove the that field, the command works fine, with it I get the 400 error. 

C:\gam-64>gam create user newgoogle firstname barney lastname google password passw0rd changepassword on org staff
Creating account for newg...@wpusd.k12.ca.us
Error 400: Invalid Input - invalid

Jay Lee

unread,
May 13, 2015, 1:24:40 PM5/13/15
to google-ap...@googlegroups.com

And does the staff ou exist? What does:

gam print ous

Show?

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

Ricardo Ardila Vetrovec

unread,
May 13, 2015, 1:36:45 PM5/13/15
to google-ap...@googlegroups.com

You have tocreate de user with the full email address not just the username

Jay Lee

unread,
May 13, 2015, 1:49:52 PM5/13/15
to google-ap...@googlegroups.com
Full email address is not necessary. If you just enter the local portion of the address, GAM appends the primary domain to the email address before sending to Google.


Jay Lee

Ricardo Ardila Vetrovec

unread,
May 13, 2015, 1:53:19 PM5/13/15
to google-ap...@googlegroups.com
On my gam box i have this

python /GAM-3.45/gam.py create user $correo firstname "$nombre" lastname "$apellido" password 'password here' changepassword on externalid organization $cedula organization type unknown title "" description "Estudiante" notprimary



For more options, visit https://groups.google.com/d/optout.



--

--------------------------------------------------------------------------------------------------------



Guitardogg

unread,
May 13, 2015, 3:28:48 PM5/13/15
to google-ap...@googlegroups.com
Yes, like I said the ONLY change was updating to 3.45 (from 3.43).  The OU has existed for years, and I did verify it with the gam print ous command just to be sure.  I've tried other OUs as well, same results.


On Wednesday, May 13, 2015 at 10:24:40 AM UTC-7, Jay Lee wrote:

And does the staff ou exist? What does:

gam print ous

Show?

On May 13, 2015 12:53 PM, "Guitardogg" <gw...@wpusd.k12.ca.us> wrote:
I am running create user.  I have narrowed it down to the "org" field.  If I remove the that field, the command works fine, with it I get the 400 error. 

C:\gam-64>gam create user newgoogle firstname barney lastname google password passw0rd changepassword on org staff
Creating account for newg...@wpusd.k12.ca.us
Error 400: Invalid Input - invalid

On Wednesday, May 13, 2015 at 8:58:32 AM UTC-7, Guitardogg wrote:
Just updated to GAM 3.45.  Tried to create a user, started getting "Error 400: Invalid Input - Invalid".   I have a batch file that I have been successfully creating users with since I started using GAM, so I know my syntax is correct.  I also tried creating a user with the GAM command line, same result. Shouldn't there be something after the second "Invalid" in the error message, actually saying what was invalid?  Any ideas on what happened?

--
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-manager+unsub...@googlegroups.com.

Guitardogg

unread,
May 13, 2015, 5:53:44 PM5/13/15
to google-ap...@googlegroups.com
It works either way, but thanks for the info.  My source data has the domain and just don't bother to strip it.


On Wednesday, May 13, 2015 at 10:49:52 AM UTC-7, Jay Lee wrote:
Full email address is not necessary. If you just enter the local portion of the address, GAM appends the primary domain to the email address before sending to Google.


Jay Lee

On Wed, May 13, 2015 at 1:36 PM, Ricardo Ardila Vetrovec <rvet...@unimet.edu.ve> wrote:

You have tocreate de user with the full email address not just the username

El may 13, 2015 12:54 PM, "Jay Lee" <jay...@gmail.com> escribió:

And does the staff ou exist? What does:

gam print ous

Show?

On May 13, 2015 12:53 PM, "Guitardogg" <gw...@wpusd.k12.ca.us> wrote:
I am running create user.  I have narrowed it down to the "org" field.  If I remove the that field, the command works fine, with it I get the 400 error. 

C:\gam-64>gam create user newgoogle firstname barney lastname google password passw0rd changepassword on org staff
Creating account for newg...@wpusd.k12.ca.us
Error 400: Invalid Input - invalid

On Wednesday, May 13, 2015 at 8:58:32 AM UTC-7, Guitardogg wrote:
Just updated to GAM 3.45.  Tried to create a user, started getting "Error 400: Invalid Input - Invalid".   I have a batch file that I have been successfully creating users with since I started using GAM, so I know my syntax is correct.  I also tried creating a user with the GAM command line, same result. Shouldn't there be something after the second "Invalid" in the error message, actually saying what was invalid?  Any ideas on what happened?

--
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-manager+unsub...@googlegroups.com.

--
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-manager+unsub...@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.

--
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-manager+unsub...@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.
Reply all
Reply to author
Forward
0 new messages