Skip to main content

Subscribing existing members

Powershell commands to subscribe existing members to a Microsoft 365 group

Source: Michael Paul | @micoolpaul

$Group = Get-UnifiedGroup -Identity "Group Name"
$Members = Get-UnifiedGroupLinks -Identity $group.Name -LinkType Members
$Subscribers = Get-UnifiedGroupLinks -Identity $group.name -LinkType Subscribers
foreach ($Member in $Members) {If ($Member.Name -NotIn $Subscribers.Name) { Add-UnifiedGroupLinks -Identity $Group.Name -LinkType Subscribers -Links $Member.Name}}