Domain Shared Contacts Creation Help

327 views
Skip to first unread message

Caleb Spring

unread,
Apr 8, 2019, 11:16:02 AM4/8/19
to GAM for G Suite

I want to add external contacts to our directory. I know the GAMADV-X has the ability to do this however I know just enough about program and syntax to get in trouble, so I am looking for some help. 

I have a csv file with the columns (Name, Title, Email, Phone, Company) that was exported from a clients Exchange server. 

Here is what I have so far. 

gam csv <filename>.csv gam create contact ~Name name ~Title organization|title ~Email email ~Phone phone ~Company organization

Does this look right? 

Ross Scroggs

unread,
Apr 8, 2019, 11:31:38 AM4/8/19
to google-ap...@googlegroups.com
Caleb,

You have to indicate the type of each attribute, I've used work.
You indicate the rank of each attribute, I've used primary.
Company and Title are sub-attributes of organization.
gam csv <filename>.csv gam create contact name ~Name organization work ~Company title ~Title primary email work ~Email primary phone work ~Phone primary

<ContactAttribute> ::=

        (additionalname|middlename <String>)|

        (address clear|(work|home|other|<String> ((formatted|unstructured <String>)|(streetaddress <String>)|(pobox <String>)|

            (neighborhood <String>)|(locality <String>)|(region <String>)|(postalcode <String>)|(country <String>))* notprimary|primary))|

        (billinginfo <String>)|

        (birthday <Date>)|

        (calendar clear|(work|home|free-busy|<String> <URL> notprimary|primary))|

        (contactgroup clear|<ContactGroupItem>)|

        (directoryserver <String>)|

        (email clear|(work|home|other|<String> <EmailAddress> notprimary|primary))|

        (event clear|(anniversary|other|<String> <Date>))|

        (externalid clear|(account|customer|network|organization|<String> <String>))|

        (familyname|lastname <String>)|

        (gender female|male)|

        (givenname|firstname <String>)|

(hobby clear|(<String>))|

        (im clear|(work|home|other|<String> aim|gtalk|icq|jabber|msn|net_meeting|qq|skype|yahoo <String> notprimary|primary))|

        (initials <String>)|

        (jot clear|(work|home|other|keywords|user> <String>))|

(json [charset <Charset>] <JSONData>)|(json file <FileName> [charset <Charset>])|

        (language <Language>)|

        (location <String>)|

        (maidenname <String>)|

(mileage <String>)|

        (name <String>)|

        (nickname <String>)|

(note <String>|(file <FileName> [charset <Charset>]))|

        (occupation <String>)|

(organization clear|(work|other|<String> <String> ((location <String>)|(department <String>)|(title <String>)|(jobdescription <String>)|(symbol <String>))* notprimary|primary))|

        (phone clear|(work|home|other|fax|work_fax|home_fax|other_fax|main|company_main|assistant|mobile|work_mobile|pager|work_pager|car|radio|callback|isdn|telex|tty_tdd|<String> <String> notprimary|primary))|

        (prefix <String>)|

        (priority low|normal|high)

        (relation clear|(spouse|child|mother|father|parent|brother|sister|friend|relative|domestic_partner|manager|assistant|referred_by|partner|<String> <String>))|

        (sensitivity confidential|normal|personal|private)

        (shortname <String>)|

        (subject <String>)|

        (suffix <String>)|

        (userdefinedfield clear|(<String> <String>))|

        (website clear|(home_page|blog|profile|work|home|other|ftp|reservations|app_install_page|<String> <URL> notprimary|primary))


Ross

--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/b07d1686-7426-4d5c-ab66-a23bf2ecb1ad%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--

Caleb Spring

unread,
Apr 8, 2019, 12:50:30 PM4/8/19
to GAM for G Suite
Thanks Ross. If I screw this up some how I can run the command gam clear contacts to wipe them all out correct?
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.


--
Ross Scroggs

Ross Scroggs

unread,
Apr 8, 2019, 1:19:33 PM4/8/19
to google-ap...@googlegroups.com
Caleb,

To clear all of your domain shared contacts you would do:

gam redirect csv ./Contacts.csv print contacts fields name

gam delete contacts csvfile Contacts.csv:ContactID


Ross



To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.


--
Ross Scroggs

--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.

To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.

For more options, visit https://groups.google.com/d/optout.


--

Caleb Spring

unread,
Apr 8, 2019, 1:49:46 PM4/8/19
to GAM for G Suite
Thanks for once again making me look good. 
Reply all
Reply to author
Forward
0 new messages