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.
# 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
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.