Remove public calendar sharing?

145 views
Skip to first unread message

Zachary DiFonzo

unread,
May 16, 2024, 2:46:38 PM5/16/24
to GAM for Google Workspace
I am trying to cobble together a command that will run through all calendars in my domain, both user's primary and secondary calendars,  and turn off the "make available to public" setting if its enabled for the calendar. 

Any suggestions?

Ross Scroggs

unread,
May 16, 2024, 3:26:35 PM5/16/24
to google-ap...@googlegroups.com
Zachary,

Send me a Meet/Zoom invitation and I'll help.

Ross


On Thu, May 16, 2024 at 11:46 AM Zachary DiFonzo <chac...@gmail.com> wrote:
I am trying to cobble together a command that will run through all calendars in my domain, both user's primary and secondary calendars,  and turn off the "make available to public" setting if its enabled for the calendar. 

Any suggestions?

--
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/f0328331-ada0-4352-9c2d-02a85e378ee5n%40googlegroups.com.


--

Ross Scroggs

unread,
May 16, 2024, 3:43:28 PM5/16/24
to google-ap...@googlegroups.com
Here is an Advanced GAM solution

# Get calendars owned by users                                                                                                                                                            

gam config auto_batch_min 1 redirect csv ./UserCalendars.csv multiprocess all users print calendars minaccessrole owner fields primary,summary


# Delete public sharing                                                                                                                                                                   

gam redirect stdout ./DeletePubicCalendarSharing.txt multiprocess redirect stderr stdout csv ./UserCalendars.csv gam user "~primaryEmail" delete calendaracls "~calendarId" default


Ross


On Thu, May 16, 2024 at 11:46 AM Zachary DiFonzo <chac...@gmail.com> wrote:
I am trying to cobble together a command that will run through all calendars in my domain, both user's primary and secondary calendars,  and turn off the "make available to public" setting if its enabled for the calendar. 

Any suggestions?

--
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/f0328331-ada0-4352-9c2d-02a85e378ee5n%40googlegroups.com.


--
Reply all
Reply to author
Forward
0 new messages