Request to remove recurring events calendar via GAM

466 views
Skip to first unread message

Neeraj Goyal

unread,
Oct 12, 2021, 11:50:02 AM10/12/21
to google-ap...@googlegroups.com
Hello Ross,

Greetings.

We have received a request to delete recurring events to all users' calendars set by one of the ex-employee.

Please help us to do the same with GAM Command.

Thank you ...


--
User Image
LinkedInYouTubeTwitter
Neeraj Goyal
Work Transformation Engineer
Searce Logo
solving for better

 

The information contained in this communication is intended solely for the use of the individual or entity to whom it is addressed and others authorized to receive it. It may contain confidential or legally privileged information. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or taking any action in reliance on the contents of this information is strictly prohibited and may be unlawful. If you have received this communication in error, please notify us immediately by responding to this email and then delete it from your system. Searce is neither liable for the proper and complete transmission of the information contained in this communication nor for any delay in its receipt.

Ross Scroggs

unread,
Oct 12, 2021, 12:47:13 PM10/12/21
to google-ap...@googlegroups.com
Send me a Meet/Zoom invitation.

Ross

--
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/CAEQtOehWmG%2B5dYZHJ%3D%2BpHJOGTLT%3DFnveWi_xDys5UhBRwYyi-Q%40mail.gmail.com.


--

Neeraj Goyal

unread,
Oct 12, 2021, 1:28:45 PM10/12/21
to google-ap...@googlegroups.com

Ross Scroggs

unread,
Oct 13, 2021, 11:10:11 AM10/13/21
to google-ap...@googlegroups.com
Neeraj,

I can't get a solution with Standard GAM; here are the commands for Advanced GAM.
Collect events

gam config auto_batch_min 1 csv_output_row_filter "creator.email:regex:us...@domain.com,recurringEventId:regex:^.+$" csv_output_header_filter "calendarId,id,summary,status,creator.email,recurringEventId" redirect csv ./Events.csv multiprocess redirect stdout ./GetEvents.txt multiprocess redirect stderr stdout all users print events primary singleevents after 2021-10-01


config auto_batch_min 1 - turn on parallel processing

csv_output_row_filter "creator.email:regex:us...@domain.com,recurringEventId:regex:^.+$" - Only output recurring events; substitute for us...@domain.com

csv_output_header_filter "calendarId,id,summary,status,creator.email,recurringEventId" - Only output selected columns

redirect csv ./Events.csv multiprocess - CSV file with event information

redirect stdout ./GetEvents.txt multiprocess redirect stderr stdout - Log file of commands

all users - Perform on all non-suspended users

print events primary - Look at user's primary calendar

singleevents - Show each instance of recurring events

after 2021-10-01 - Only display events after specific date



Inspect events

Look at Events.csv, verify that it is reasonable


Delete events

gam redirect stdout ./DeleteEvents.txt multiprocess redirect stderr stdout csv Events.csv gam calendar "~calendarId" delete event id "~id" doit


redirect stdout ./DeleteEvents.txt multiprocess redirect stderr stdout - Log file of commands

csv Events.csv - Output from first command

gam calendar "~calendarId" - Specify calendar

delete event id "~id" doit - Specify event id and confirm deletion



Ross










--
Reply all
Reply to author
Forward
0 new messages