How to modify/delete a specific contact for all users?

160 views
Skip to first unread message

Jonathan King

unread,
Sep 8, 2022, 5:20:51 PM9/8/22
to GAM for Google Workspace
We have a situation where a new faculty member has the email address of a former student, and while they share a last name, their first names are different. Since many people have the former student in their Contacts, people are seeing the wrong first name when they enter the new teacher's email address.

I'd like to use GAM to find every Contact for every user that matches the email address, but has the former students firstname and either delete it or update it to the correct firstname.

I've found that GAMADV-XTD3 has the plumbing for this, but I'm not sure how to best go about it. 

Thanks!
-jonathan

Ross Scroggs

unread,
Sep 8, 2022, 5:26:02 PM9/8/22
to google-ap...@googlegroups.com

--
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/9bc8ff71-1e14-4cdb-8db8-aa0d785766d4n%40googlegroups.com.


--

Jonathan King

unread,
Sep 8, 2022, 5:39:15 PM9/8/22
to google-ap...@googlegroups.com
Thanks you Ross. How would I do that deletion only for a contact with that email and a specific first name?

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/3w4DKyNoi1Q/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/CAJkvRS89Zke-iZNZEbUwrHdGy_UHS_puiv5LnhoR55WQyqoFsA%40mail.gmail.com.
--
[ Dr. Jonathan King / Director of Technology ]
[ Riverdale Country School / 718.519.2778 ]

Sent from a glass-only device, please excuse typos and brevity!

Ross Scroggs

unread,
Sep 8, 2022, 7:19:15 PM9/8/22
to google-ap...@googlegroups.com
Jonathan,

Try: gam all users show contacts query "con...@domain.com OldStudentFirstName"

Ross



--

Jonathan King

unread,
Sep 8, 2022, 10:10:33 PM9/8/22
to GAM for Google Workspace
Thank you Ross. Prior to your reply, I'd worked out how to query and save the results to a Sheet so I could inspect the data. Then I deleted all of the contacts that matched my criteria. Your way was rather simpler, and faster!
Reply all
Reply to author
Forward
0 new messages