Forum Discussion
How to remove the Welcome Message when a new member joins a group.
- Mar 28, 2017
You can use the following command to suppress the welcome message for any new users added to the group as a member. The default value will be set to true for this parameter. So you will need to pass "false" as the value to suppress the welcome message.
Set-UnifiedGroup <groupname> -UnifiedGroupWelcomeMessageEnabled:$<true/false>
Here's a quick PowerShell script I threw together that may help:
$UserCredential = Get-Credential
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection
Import-PSSession $Session
#Get all Office 365 Groups that have have the Welcome Message enabled
$O365Groups = Get-UnifiedGroup | Where-Object{$_.WelcomeMessageEnabled -eq $true}
#Iterate through the Groups, disabling the Welcome Message
foreach ($group in $O365Groups)
{
Write-Host "Disabling Welcome Message on O365 Group: " -NoNewline; Write-Host $group.DisplayName -ForegroundColor Cyan
Set-UnifiedGroup $group.Identity -UnifiedGroupWelcomeMessageEnabled:$false
}
#Close the Session
Remove-PSSession $Session
I've commented it, but basically it gathers the Office 365 Groups in your Tenant that have the Welcome Message enabled and then loops through them disabling the Welcome Message. You can run this as needed.
Hope it's useful for someone out there. :)
Unfortunately there is a bug associated with this parameter:
After setting -UnifiedGroupWelcomeMessageEnabled:$false, all new user don't get the standard auto invitation but external users also wont be able to login anymore. All they get after authenticating is a "User not in directory" error, even thou they are listed correctly as members in the group and as external users in Admin Center.
It appears there is more functionality associated with this switch then just sending out emails.
This needs to be fixed ASAP.