imporating external contacts via CSV into the directory using GAM

413 views
Skip to first unread message

Daniel König

unread,
Aug 25, 2023, 7:43:24 AM8/25/23
to GAM for Google Workspace
Hi all,

I'm trying to import a CSV file which contains contacts into the Google Workspace directory using GAM.

I tried the following command, but I'm not sure if it was the correct one, as I received an error message afterwards:

gam csv contacts.csv gam create user "~email" firstname "~firstname" lastname "~lastname"

The error message:
ERROR: 403: Not Authorized to access this resource/api - forbidden

My GAM setup should have all scopes, as I selected everything during the initial setup.

Thanks in advance for any advice.

Ross Scroggs

unread,
Aug 25, 2023, 9:18:04 AM8/25/23
to google-ap...@googlegroups.com
Your subject says that you're trying to create external contacts but your command is trying to create workspace users.


gam csv contacts.csv gam create contact email work "~email" primary firstname "~firstname" lastname "~lastname"

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 on the web visit https://groups.google.com/d/msgid/google-apps-manager/4cd6bd68-1c46-4b30-b9b0-23634c54d426n%40googlegroups.com.

Daniel König

unread,
Aug 25, 2023, 9:31:37 AM8/25/23
to GAM for Google Workspace
Hi Ross,

Thanks for getting back to me. When I try this, I receive the following error:

ERROR: contact is not a valid argument for "gam create"

Is it possible that the gam command itself is wrong, as it contains "gam" twice?

Ross Scroggs

unread,
Aug 25, 2023, 10:11:35 AM8/25/23
to google-ap...@googlegroups.com
You're running Standard GAM, not Advanced GAM, you must upgrade.


Ross



--

Michael Tobias

unread,
May 10, 2024, 2:16:33 PM5/10/24
to GAM for Google Workspace
gam update contacts entityid website work "url" primary, where does this show exactly.

User trying to view this on an iPhone through GAL and I can see email, phone number but not the website?
Reply all
Reply to author
Forward
0 new messages