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 is how I did switch off/on the new group member welcome message.
First of all, you need to connect to the O365 Exchange Server Online.
1. Open Windows PowerShell command window as Administrator
2. Run the command: $UserCredential = Get-Credential
3. Run the command: $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection
4. Run the command: Import-PSSession $Session
5. Set-UnifiedGroup "MyGropuName" -UnifiedGroupWelcomeMessageEnabled:$false
(For switching on the Welcome message, the same command but "$true" in the end.)
Can this be done across the board for all groups or does it have to be done individually?
- Ramiro MelgozaNov 08, 2017Copper Contributor
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 $SessionI'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. :)
- MHumbertoDec 17, 2019Brass Contributor
Ramiro Melgoza Do I need to be owner of this Group for the command to work? or just any Global Admin should be able to run this command? I just tried to run it with my Global Admin and it doesn't work.
- Peter TarasNov 13, 2017Copper Contributor
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.
- Walter OswaldOct 13, 2017Copper Contributor
Hi Brian, actually I am not sure if you can do multi-groups in one command. From my experience, you need to set it for each. However, this is a one-time setup, you can connect to your Exchange account and need just change the command for the setup each time by entering one after the other group name and run.
Maybe somebody else from the community could accomplish this in a one-step command.Thanks
-w