Forum Discussion
Disable all email notifications for SharePoint online Team site
Hi Team,
I want to disable all email notifications for SharePoint online Team site. My use case is I am migrating or creating new sites and pages using PnP SDK C# and want to avoid any owner or other email notifications to users.
Thanks,
Arun
Hello ArunK770
you can disable the automatic news digest from SharePoint with this: https://sharepoint.handsontek.net/2020/10/19/disable-automatic-news-digest-sharepoint/
Connect-SPOService -Url https://<TENANT>-admin.sharepoint.com
Get-SPOTenant
Set-SPOTenant -EnableAutoNewsDigest $true
##Set-SPOTenant -EnableAutoNewsDigest $falseDon't forget to enable it after your migration 😉
Best, Dave
- ArunK770Copper ContributorHi David,
Thanks for the response. Just want to confirm is this only for News Posts notifications? Because I have other use cases or scenarios when I am migrating page comments and likes then its sending email notifications to Page Owners or adding users to SP groups then its sending email notifications for that as well. Is there a way to disable all these notifications?
Thanks,
ArunHello ArunK770
yes, that's correct, it's only for the news digest email.
Hmm, i think you can't find the "big red button".
You can try to set more options to disable: https://learn.microsoft.com/de-de/powershell/module/sharepoint-online/set-spotenant?view=sharepoint-ps?WT.mc_id=DX-MVP-5004845
as examples (but not tested)
[-NotificationsInOneDriveForBusinessEnabled <Boolean>]
[-NotificationsInSharePointEnabled <Boolean>]
[-NotifyOwnersWhenInvitationsAccepted <Boolean>]
[-NotifyOwnersWhenItemsReshared <Boolean>]
Maybe you can find also a PowerShell for this options to disable on Tenant level: https://support.microsoft.com/en-us/office/set-your-sharepoint-email-notification-preferences-5bd63d8a-d43e-48cc-82b3-03a7687d5dc4?WT.mc_id=DX-MVP-5004845
Best, Dave