
There is no supported method to set this setting programmatically, on behalf of the user.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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.
There is no supported method to set this setting programmatically, on behalf of the user.
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.