There is no supported method to set this setting programmatically, on behalf of the user.
As an admin, how to stop notification emails when a comment is added to a users document. (not the individual onedrive settings)
As an admin, how to stop notification emails when a comment is added to a users document. (not the individual OneDrive settings)
We cant guide all users in a big org to go an manage their own OneDrive notification settings. we must be able to set this for the users. Preferably with Power Shell.
1 additional answer
Sort by: Most helpful
-
Emily Du-MSFT 47,626 Reputation points Microsoft Vendor
2024-11-15T08:21:16.0166667+00:00 I understand that you want to disable OneDrive notification emails when a comment is added to document for all users programmatically.
Unfortunately, SharePoint supports programmatically disabling all OneDrive notification emails but not supports only disabling OneDrive comments notification emails for all users.
To disable all OneDrive notification emails, go to Settings in the SharePoint admin center -> Notifications setting for OneDrive -> Clear Allow notifications.
Reference:
https://learn.microsoft.com/en-us/sharepoint/turn-on-external-sharing-notifications
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.