Domain Shared External Contacts?

870 views
Skip to first unread message

Seth Weber

unread,
Feb 22, 2023, 12:44:10 PM2/22/23
to GAM for Google Workspace
We've been using a custom script using GAM to create shared contacts to every user's own personal contacts and labeled them, but that's caused duplicates over the years and it's a bit messy.

I was looking into Google Workspace and found that you can add contacts to the Directory instead; this would be much better, cleaner, and easier to centrally manage.

Problem is, the apps for a UI have pricing. I can do it via their API, but I was wondering if GAM already can interface with this feature?

Documentation

Thanks in advance! :)

Ross Scroggs

unread,
Feb 22, 2023, 12:46:59 PM2/22/23
to google-ap...@googlegroups.com

Confidentiality Statement:  The information accompanying this email transmission is intended for the use of the individual to whom it is addressed & may contain information which is privileged, confidential & exempt from disclosure under applicable law.  If you are not the intended recipient, employee or agent responsible for delivering the message to the intended recipient you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited.  If you have received this email in error please notify us immediately by telephone at 814-297-8400.

--
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/cdbc09a8-51c7-425d-8d60-205266d6f55fn%40googlegroups.com.


--

Seth Weber

unread,
Feb 22, 2023, 12:48:03 PM2/22/23
to google-ap...@googlegroups.com
Thanks, Ross, for your timely response! Just needed some help finding it in the wiki :)

You received this message because you are subscribed to a topic in the Google Groups "GAM for Google Workspace" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-apps-manager/fbJUyPuypUE/unsubscribe.
To unsubscribe from this group and all its topics, 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/CAJkvRS-yB2nWnJJBEQ-H%2BGhrx7kiF1ir-%2BX0_jh1tfRuyHSjzg%40mail.gmail.com.


--


Seth Weber
Network & Systems Administrator
271 Perkins Road
Clarion, PA 16214
Phone: 814-297-8400
Fax: 814-297-8801


Clarion Forest VNA
Like

The Clarion Forest VNA is proudly ranked among the Top 500 Providers Nationwide!


Seth Weber

unread,
Feb 22, 2023, 1:41:06 PM2/22/23
to GAM for Google Workspace
Apologies for my ineptitude of GAM, but could you give me an example for the syntax on inputting an attribute (like the first name):
Screenshot 2023-02-22 134044.jpg

Bassel Massamiri

unread,
Feb 22, 2023, 1:44:26 PM2/22/23
to google-ap...@googlegroups.com
gam create contact firstname <First Name> familyname <Family Name> email work <External Email Address> primary

Ross Scroggs

unread,
Feb 22, 2023, 2:15:36 PM2/22/23
to google-ap...@googlegroups.com
Seth,

gam create contact firstname Seth lastname Weber phone work 814-297-8400 primary email work s...@domain.com primary

Note, domain shared contacts can not have email addresses in your domain; they are for external contacts.

Ross



--

Seth Weber

unread,
Feb 22, 2023, 2:17:17 PM2/22/23
to google-ap...@googlegroups.com
Gotcha! For the values, if there are spaces anywhere in the value, can I enclose it in quotations?

Ross Scroggs

unread,
Feb 22, 2023, 2:23:08 PM2/22/23
to google-ap...@googlegroups.com

Seth Weber

unread,
Feb 23, 2023, 11:56:10 AM2/23/23
to GAM for Google Workspace
So, I'm going to rewrite my script so instead of deleing contacts then adding them from/to each user, I'll create domain shared contacts instead, update them from any new changes from the spreadsheet, and assign them to labels.

I'm able to create labels in each user's Contacts, but how do I go about assigning those labels to domain shared contacts? The syntax might be different...?

I tried: 
gam user test...@domain.com update contact 59bb7b938a1d5880 contactgroup "Test"

To add the domain shared contact 59bb7b938a1d5880  to  test...@domain.com's label/contactgroup named "Test", got the following error:
ERROR: Parameter "resourceName" value "59bb7b938a1d5880" does not match the pattern "^people/[^/]+$"

Once I'm able to get it working to assign labels, I'm curious as well how I'd go about assigning multiple labels to a domain shared contact.

Might be easier to explain on call if anybody's willing to help me, if not that's okay! Any push in the right direction with the syntax really helps :) thanks!

Ross Scroggs

unread,
Feb 23, 2023, 12:50:49 PM2/23/23
to google-ap...@googlegroups.com
Seth,

There are no labels in Domain Shared Contacts; it's one big collection of external contacts shared by everyone.

Send me a Meet/Zoom invitation.

Ross



--

Kim Nilsson

unread,
Feb 26, 2023, 3:18:39 AM2/26/23
to GAM for Google Workspace
Seth & Ross,

Don't forget that there is this nice script to manage Domain Shared Contacts, to make sure the DSCs in the domain are in sync with whatever source you have.


It was created to pull users from DomainB into DomainA as DSCs, but the script really doesn't care where the users come from, as long as they are in the ./DomainBUsers.csv file.
Reply all
Reply to author
Forward
0 new messages