Invalid Argument Error Help Needed

230 views
Skip to first unread message

David Horowitz

unread,
Aug 16, 2021, 2:21:54 PM8/16/21
to GAM for Google Workspace
I have a sheet with new faculty that I am working on to bulk create new faculty and then send them their account info that I'm having issues getting to work.  My command is:  gam csv gsheet <AdminUser> id <FileID of this Google Sheet> <SheetName> gam create user ~username ou ~ou firstname ~firstname lastname ~lastname otheremail personal ~persemail password ~password changepassword true notify ~persemail subject '[School Name] #domain# Google Account for #firstname# #lastname#' ghtml <your email address> id <FileID of your welcome.html file> html true
Where <adminuser> is my account and the file ID's are coming straight from the browser's window.  It's coming back with an invalid argument error.  Can you assist?

Ross Scroggs

unread,
Aug 16, 2021, 2:26:33 PM8/16/21
to google-ap...@googlegroups.com
David,

Please post the error message.

Ross


On Mon, Aug 16, 2021 at 11:21 AM David Horowitz <yht...@hartorah.org> wrote:
I have a sheet with new faculty that I am working on to bulk create new faculty and then send them their account info that I'm having issues getting to work.  My command is:  gam csv gsheet <AdminUser> id <FileID of this Google Sheet> <SheetName> gam create user ~username ou ~ou firstname ~firstname lastname ~lastname otheremail personal ~persemail password ~password changepassword true notify ~persemail subject '[School Name] #domain# Google Account for #firstname# #lastname#' ghtml <your email address> id <FileID of your welcome.html file> html true
Where <adminuser> is my account and the file ID's are coming straight from the browser's window.  It's coming back with an invalid argument error.  Can you assist?

--
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/38d903a2-9784-457f-acfc-64e7ee670a4bn%40googlegroups.com.


--

Dave

unread,
Aug 16, 2021, 3:12:08 PM8/16/21
to google-ap...@googlegroups.com
Command: gam csv gsheet yht...@hartorah.org id 1K_su8bTEVxv7i-hT4GH9eoL1jOfd0f7II5GgL419MPU Update gam create user ~username ou ~ou firstname ~firstname lastname ~lastname otheremail personal ~persemail password ~password changepassword true notify ~persemail subject 'YHT hartorah.org Google Account for #firstname# #lastname#' ghtml yht...@hartorah.org id 1FC_yrI5o8Ban2pKLp0l_mDX2ndYpPj2a html true
2021-08-16T19:10:06.812+00:00,0/12,Using 5 processes...
Command: gam create user amiz...@hartorah.org ou /Staff/ES firstname Ariana lastname Mizrahi otheremail personal ariana...@gmail.com password changeme123 changepassword true notify ariana...@gmail.com subject "'YHT" hartorah.org Google >>>Account<<< for #firstname# "#lastname#'" ghtml yht...@hartorah.org id 1FC_yrI5o8Ban2pKLp0l_mDX2ndYpPj2a html true

Result: ERROR: Invalid argument
Help: Syntax in file c:\gamadv-xtd3\GamCommands.txt
Help: Documentation is at https://github.com/taers232c/GAMADV-XTD3/wiki
Command: gam create user tcede...@hartorah.org ou /Staff/EC firstname Talya lastname Cederbaum otheremail personal talya.c...@gmail.com password changeme123 changepassword true notify talya.c...@gmail.com subject "'YHT" hartorah.org Google >>>Account<<< for #firstname# "#lastname#'" ghtml yht...@hartorah.org id 1FC_yrI5o8Ban2pKLp0l_mDX2ndYpPj2a html true

Mr. David Horowitz
IT Director
Yeshiva Har Torah
250-10 Grand Central Parkway
Little Neck, NY 11426

(718) 343-2533




You received this message because you are subscribed to a topic in the Google Groups "GAM for Google Workspace" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-apps-manager/kq2hn33Q69I/unsubscribe.
To unsubscribe from this group and all its topics, 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/CAJkvRS8Ya05yQefzcXf%3DnVGGpcyT9Q-VOzZdfSk3Xxo0NUk9Yw%40mail.gmail.com.

Ross Scroggs

unread,
Aug 16, 2021, 4:13:27 PM8/16/21
to google-ap...@googlegroups.com
David,

You're on Windows, single quotes are not recognized.
subject 'YHT hartorah.org Google Account for #firstname# #lastname#'
Replace the single quotes with double quotes.

Ross



--
Reply all
Reply to author
Forward
0 new messages