SCRT-HQ / PSGSuite

Powershell module for Google / G Suite API calls wrapped in handy functions. Authentication is established using a service account via P12 key to negate the consent popup and allow for greater handsoff automation capabilities
https://psgsuite.io/
Apache License 2.0
235 stars 67 forks source link

Turn off calendar notifications #231

Closed boldperrotta closed 5 years ago

boldperrotta commented 5 years ago

Is your feature request related to a problem? Please describe. When adding a calendar subscription, the function by default enables email notifications for changes to the calendar. $DefaultNotificationType = 'eventChange',

Describe the solution you'd like I would like to have the function to allow for having $DefaultNotificationType as being able to be set to null or none.

Describe alternatives you've considered Currently, only way around it is to open the calendar and turn off the notifications.

Additional context

scrthq commented 5 years ago

Makes sense! Thanks, @boldperrotta ! I'm on it

scrthq commented 5 years ago

Hey @boldperrotta - This is now available in v2.32.0! You'll find a few various helpful bits on Add-GSCalendarSubscription as well as the newly added Update-GSCalendarSubscription! You'll be most interested on the RemoveNotifications switch parameter on Update-GSCalendarSubscription if you want to remove notifications from a calendar already in a user's list, while simply not specifying a notification configuration when creating a new subscription will just not add any notifications by default now. I've also done the same for Reminders as well. Check out the ChangeLog for this release for more info, but here's the relevant bits of everything added around this request: