Add and remove contact from contactgroup

114 views
Skip to first unread message

Corey Schneer

unread,
Oct 6, 2023, 8:51:43 PM10/6/23
to GAM for Google Workspace
Hi fellow GAM enthusiasts,

I am looking at the GAM documentation and scouring the internet and I cannot find anything about moving a contact into a contact group, or removing one either.

I saw the API documentation and it seems the API allows for it.

Can you please assist me with the command to accomplish this?

Ross Scroggs

unread,
Oct 6, 2023, 10:18:04 PM10/6/23
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/41af44cf-c297-4cc3-9459-0617f4890551n%40googlegroups.com.

Corey Schneer

unread,
Oct 6, 2023, 10:45:01 PM10/6/23
to google-ap...@googlegroups.com
Thank you Ross.

I am getting this error when I try to run the command. Perhaps we can meet when you're next available?

ERROR: Parameter "resourceName" value "email" does not match the pattern "^people/[^/]+$"

I tried email address a resourceName but it threw the same error both times.

My command is gam csv gsheet email ID Sheet gam user ~User update contacts ~emailAddresses.0.value contactgroups MigratedOtherContacts



Jorge De los santos Cabrera.

unread,
Oct 6, 2023, 10:58:12 PM10/6/23
to google-ap...@googlegroups.com

Ross Scroggs

unread,
Oct 7, 2023, 2:51:17 PM10/7/23
to google-ap...@googlegroups.com
Cory,

This is someewaht convoluted.


gam csv gsheet email ID Sheet gam user ~User update contacts emailmatchpattern ~emailAddresses.0.value endquery contactgroups MigratedOtherContacts

RBoss
----
Ross Scroggs



Corey Schneer

unread,
Oct 7, 2023, 4:33:50 PM10/7/23
to google-ap...@googlegroups.com
I actually figured it out. I was attempting to use the email variable when I should have used the resourceName.

It's updating now. I appreciate your assistance.

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/Ano5XQllRh4/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/6CFEC2DD-8B91-492C-A7A2-41BBF343697D%40gmail.com.
Reply all
Reply to author
Forward
0 new messages