Forum Discussion
Inviting a group calendar without sending invites to the distribution group
I have accomplished this via PS cmd line, however you'll need to get someone in your organization that has the Global Admin role for your tenant and someone familiar with scripting it (how I typically handle this type of request). I heard that not too long ago, MS added a toggle in the Teams Admin Center that you can turn this off and on from the GUI, but I could not find that option in our tenant (GCC-High).
- Avinash_MishraJul 30, 2024Copper Contributor
AngryLeprechaun It has to be Always instead of AUTO
-AlwaysSubscribeMembersToCalendarEvents
https://learn.microsoft.com/en-us/powershell/module/exchange/set-unifiedgroup?view=exchange-ps
Set-unifiedGroup -Identity email address removed for privacy reasons -AutoSubscribeNewMembers:$false -AlwaysSubscribeMembersToCalendarEvents:$false - AngryLeprechaunJul 17, 2024Copper Contributor
Disclaimer, the last time I used this was over a year ago (I have been out of the country) and it worked then. I recommend placing safeguards or capturing (transcript, etc..) the before and after data to compare in case something wildly goes wrong (or creating a test team with a few members and owners).
------------------------------------
#Install Exchange Online Module
Install-Module ExchangeOnlineManagement
Connect-ExchangeOnline -ExchangeEnvironmentName [INSERT ENVIRONMENT]
$group = "[MS GROUP NAME]"
#add (Add-) or remove (Remove-) from Subscribers list
$members =Get-unifiedGroup $group | Get-UnifiedGroupLinks -LinkType Member
$owners =Get-unifiedGroup $group | Get-UnifiedGroupLinks -LinkType Owner
foreach ($member in $members) {
Remove-UnifiedGroupLinks -Identity $group -Links $member.PrimarySmtpAddress -LinkType Subscriber -Confirm:$false
}
foreach ($owner in $owners) {
Remove-UnifiedGroupLinks -Identity $group -Links $member.PrimarySmtpAddress -LinkType Subscriber -Confirm:$false
}
#Hides from exchange client
Set-unifiedGroup -Identity $group -AutoSubscribeNewMembers:$false -AutoSubscribeMembersToCalendarEvents:$false
-HiddenFromExchangeClientsEnabled:$true
Disconnect-ExchangeOnline -confirm:$false -InfromationAction Ignore -ErrorAction SilentlyContinue
----------------------------------------------------------------
I think what might have been missing was "-AutoSubscribeMembersToCalendarEvents:$false" this will make sure all members do not get the invites to the calendar events.Do not use the "-HiddenFromExchangeClientsEnabled" switch if you do not want to hide from the outlook client. Some groups I worked with didn't want to see the group in Outlook and others did.
- AngryLeprechaunJul 17, 2024Copper Contributor
Maycon_Camargo this only turns off subscribing new members and does not address the calendar events.
- kovachgeorgeJul 17, 2024Copper Contributor
This issue continues to persist. None of the proposed solutions have been effective, and implementing a client-side fix would be cumbersome.
The setting for "Send copies of team emails and events to team members' inboxes" is not functioning.
My goal is for people to be able to send calendar invitations to the group without a meeting invite going to all members while maintaining editing access to the calendar. I am struggling to find a solution, and I believe this is just broken.
- Maycon_CamargoJun 28, 2024Copper Contributor
Here are the instructions:
Command to Install Exchange Package:
Install-Module -Name ExchangeOnlineManagementScript to Remove current subscriptions:
$Team = "Team Name"
$Members = Get-UnifiedGroupLinks -LinkType Members -Identity $Team
Foreach ($Member in $Members) {
Remove-UnifiedGroupLinks -LinkType Subscribers -Links $Member.PrimarySmtpAddress -Identity $Team -Confirm:$false
}Command to avoid subscriptions of new members:
Set-UnifiedGroup -Identity "Team Name" -AlwaysSubscribeMembersToCalendarEvents:$false