Forum Discussion
DanielNiccoli
Dec 03, 2018Iron Contributor
Create a meeting in a 365-Group calendar without inviting the whole team? Question and critic!
First, the question We have an issue. We want to replace our Shared Mailbox Calendar with the 365-Group Calendar. We use the calendar exclusively to create meetings with our customers. Unfortunately...
adrianhalid
Jan 22, 2021Copper Contributor
I believe this PowerShell command will do what is needed.
# Set the team name to target
$Team = "TeamName"
# This will ensure when new members are added to the team they do not subscribe to calendar events
Set-UnifiedGroup $Team -AlwaysSubscribeMembersToCalendarEvents:$false
# Get all the current members in a Team
$Members = Get-UnifiedGroupLinks -LinkType Members -Identity $Team
# Loop over all the members
Foreach ($M in $Members){
#Remove the team member from the "Subscribers" Link type using their email address.
Remove-UnifiedGroupLinks -Identity $Team -LinkType Subscribers -Links $M.PrimarySmtpAddress
}