Create / Print / Delete Shared Contacts using GAM-ADV-XTD3

373 views
Skip to first unread message

Leonardo Barbosa

unread,
Dec 15, 2020, 3:19:23 PM12/15/20
to GAM for Google Workspace
Hello,

In GAMADV-XTD3 documentation, we have the option to create contacts using the Domain Shared Contacts API: https://github.com/taers232c/GAMADV-XTD3/wiki/Contacts-GAL#create-domain-shared-contacts

I'm trying to use this command, so I did:

gam create contacts sharedc...@external.com.br

However after I did this, I receive an error: 

ERROR: Invalid choice (sharedc...@aleatorio.com.br): Expected <addcontactgroup|addcontactgroups|additionalname|address|addresses|billinginfo|birthday|calendar|calendars|contactgroup|contactgroups|directoryserver|email|emails|event|events|externalid|externalids|familyname|firstname|gender|givenname|hobbies|hobby|im|ims|initials|jot|jots|json|language|lastname|location|maidenname|middlename|mileage|name|nickname|note|notes|occupation|organization|organizations|phone|phones|prefix|priority|relation|relations|removecontactgroup|removecontactgroups|sensitivity|shortname|subject|suffix|updated|userdefinedfield|userdefinedfields|website|websites> 

I tried using the parameter  gam create contacts email sharedc...@external.com.br ;
however it says "Missing argument: Expected <EmailAddress>

In the documentation says to use
" gam create contact <ContactAttribute>+  "

What is this " <ContactAttribute>+ " part the documentation is talking about? Probably I'm missing something really simple here, but I would appreciate the help.

The same applies for gam update contacts, gam delete contacts and gam clear contacts.

I'll appreciate the help!  

James SEYMOUR

unread,
Jan 11, 2021, 7:57:05 PM1/11/21
to GAM for Google Workspace
Hi Leonardo,

I am no expert but think <ContactAttribute>+ needs multiple bits of info. For your example it would be;-

gam create contacts email work sharedc...@external.com.br primary

You need to specify what info you are adding to the contact.

James 

Reply all
Reply to author
Forward
0 new messages