Creating contacts from csv gives me only header info

52 views
Skip to first unread message

Jörgen Rignell

unread,
Feb 2, 2022, 9:15:04 AM2/2/22
to GAM for Google Workspace
Hi, I am using a local csv file and want to create some shared contacts, the command looks like:

gam csv /Users/username/bin/GAMConfig/contacts.csv gam create contact familyname “~familyName” givenname “~givenName” email work “~email” primary organization work “~orgName” department “~orgDept” title “~orgTitle” primary

No errors when running the command in terminal on my macOS Monterey, the csv file is populated with two lines of two contacts I want to create, but the result after being created is that there will be two users created but with the data from the headers.

The users get the name "~givenName" and so on...it does not look like the csv is read at all, what am I doing wrong?

Ross Scroggs

unread,
Feb 2, 2022, 9:36:27 AM2/2/22
to google-ap...@googlegroups.com
Jorgen,

Look at your command line closely, all of the quotes are curly/smart quotes “~familyName”, not straight quotes "~familyName".
Replace the curly quotes with straight quotes.

--
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/3190cfe2-5efb-4791-9932-143eea0dc80fn%40googlegroups.com.

Jörgen Rignell

unread,
Feb 2, 2022, 10:30:01 AM2/2/22
to GAM for Google Workspace
Ahh, there you go!

So simple but yet so far away, I had never seen that, thanks for your sharp eyes Ross!
Changed the keyboard setting for smart quotes so it does not give me the curly ones...

Reply all
Reply to author
Forward
0 new messages