How to remove event guests?

627 views
Skip to first unread message

Elio Solar

unread,
Jan 8, 2022, 12:15:48 PM1/8/22
to GAM for Google Workspace
Hello
I am new to GAM, and it has been very helpful. I currently have many calendars that mistakenly have the wrong guests, how can I remove the guest list from all events on a calendar?

I have an idea that the code would be:

gam calendar <id calendar> delete guest

But it's not working. Thanks for the help

Ross Scroggs

unread,
Jan 8, 2022, 12:49:06 PM1/8/22
to google-ap...@googlegroups.com
Elio,

I'm not clear on your question: are you trying to remove an attendee from every event on the many calendars?

--
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/370392ce-4c3b-4238-b34c-2d9ea708b710n%40googlegroups.com.

Elio Solar

unread,
Jan 8, 2022, 1:36:14 PM1/8/22
to GAM for Google Workspace
I have several events, in each event there are different guests, I need to clean all the guests of all events

Ross Scroggs

unread,
Jan 8, 2022, 2:11:00 PM1/8/22
to google-ap...@googlegroups.com
Elio,

This is relatively easy with Advanced GAM: https://github.com/taers232c/GAMADV-XTD3


The command to delete all guests from a specific event is:
gam calendar <id calendar> update event id <EventID> clearattendees 

If you want to delete all guests from all events in a calendar, be careful:
gam calendar <id calendar> update event clearattendees 

If you want to delete all guest from selected events in selected calendars:
Make a CSV file (ClearGuests.csv) with two columns: calendarId,id
gam csv ClearGuests.csv gam calendar "~calendarId" update event id "~id" clearattendees

Ross

Elio Solar

unread,
Jan 8, 2022, 6:01:09 PM1/8/22
to GAM for Google Workspace
thanks ross for the help

I have tried to use the code:

gam calendar <id calendar> update event clearattendees 
gam calendar c_classro...@group.calendar.google.com update event clearattendees


but it has not worked, I get an error message:

ERROR: Role must be one of editor, freebusy, freebusyreader, owner, read, reader, writer, none; got event
how can I solve that?

Ross Scroggs

unread,
Jan 8, 2022, 7:52:57 PM1/8/22
to google-ap...@googlegroups.com
Elio,

The commands I show you are for Advanced GAM, you are running Standard GAM and the commands are not available.

Reply all
Reply to author
Forward
0 new messages