Forum Discussion

Ruben Kertesz's avatar
Ruben Kertesz
Iron Contributor
May 02, 2018
Solved

Is there a PowerShell Script to bulk unsubscribe members' inboxes from group?

Someone setup a group with "Send all group conversations and events to members' inboxes" and then added many members.

Now everyone is getting notifications when someone makes a comment in the planner for that group and people are asking what is going on. We want to bulk unsubscribe everybody that is already a member of the group so they are still members but so they do not get notifications in their email inbox. 

 

How is this possible?

  • Yes, simply use the Get-UnifiedGroupLinks to get the list of subscribers, then remove them via Remove-UnifiedGroupLinks. Quick example:

     

    Get-UnifiedGroupLinks groupname -LinkType subscriber | % { Remove-UnifiedGroupLinks groupname -Links $_.PrimarySmtpAddress -LinkType subscriber }

     

    Of course if you are running this against a big number of users, test it first or better yet, use a proper script instead of a one-liner.

  • Hi  Ruben Kertesz - we apologize for the inconvenience caused. 

     

    To let you know, we are working on a fix which would prevent Planner task comments from being delivered to member's Outlook inboxes. Please bear with us till we make this fix.

     

    chtranMSFT as FYI.

  • Yes, simply use the Get-UnifiedGroupLinks to get the list of subscribers, then remove them via Remove-UnifiedGroupLinks. Quick example:

     

    Get-UnifiedGroupLinks groupname -LinkType subscriber | % { Remove-UnifiedGroupLinks groupname -Links $_.PrimarySmtpAddress -LinkType subscriber }

     

    Of course if you are running this against a big number of users, test it first or better yet, use a proper script instead of a one-liner.

Resources