Creating users via csv

74 views
Skip to first unread message

Amvrosios Gogos

unread,
Apr 7, 2025, 6:50:41 PMApr 7
to GAM for Google Workspace
Hello all, 
I am trying to add some new users to my Google Workspace using a csv file.
the csv is like this:

primaryEmail,firstName,lastName,password,changePasswordAtNextLogin,orgUnitPath
john.do...@test.com,John,Doe,pass!2#,TRUE,/Externals

I have tried various ways of writing the following command but to no avail: 
C:\GAMADV-XTD3>gam create user file externals.csv orgunitpath "/Externals"
Command: gam create user file externals.csv orgunitpath >>>/Externals<<<

ERROR: Invalid argument
Help: Syntax in file C:\GAMADV-XTD3\GamCommands.txt
Help: Documentation is at https://github.com/taers232c/GAMADV-XTD3/wiki

If there is an error in the syntax let me know. 
P.S. 
Without the csv i can create the users just fine, meaning that permissions/OU path/gamversion etc are working fine.
Any help is appreciated!


*CONFIDENTIALITY & DISCLAIMER NOTICE: Dialectica is a limited company registered in England and Wales No. 09605745.You received this email because of prior communication with Dialectica or because Dialectica wants to engage you for new business opportunities. This email, including any attachments, may contain proprietary, business-confidential, and/or privileged material. Therefore, it should be treated as strictly confidential. Any disclosure, use, or copying of the information by anyone other than the intended recipient is prohibited and may be illegal. If you have received this email in error, please notify the sender immediately and delete any copies of the email and its attachments from your computer or any other storage devices. For additional information please review our Privacy Policy or contact us at compliance@dialecticanet.com.

Ross Scroggs

unread,
Apr 7, 2025, 7:01:09 PMApr 7
to google-ap...@googlegroups.com
See: https://github.com/GAM-team/GAM/wiki/Bulk-Processing#csv-files

I'm assuming that your VSV file is named NewUsers.csv, adjust the command to match the actual name.
gam redirect stdout ./CreateUsers.txt multiprocess redirect stderr stdout csv NewUsers.csv gam create user "~primaryEmail" firstname "~firstName" lastname "~lastName" password "~password" changepasswordatnextlogin "~changePasswordAtNextLogin" ou "~orgUnitPath"

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 visit https://groups.google.com/d/msgid/google-apps-manager/8ad1d53e-b2f0-43e8-8f86-a0bc5d43c083n%40googlegroups.com.

Amvrosios Gogos

unread,
Apr 7, 2025, 7:08:16 PMApr 7
to GAM for Google Workspace
Worked like a charm Ross!
Thank you!

Reply all
Reply to author
Forward
0 new messages