Office 365 Group: How to Disable Welcome Email for new members?

Requirement: Turn-Off the Welcome Email in a Microsoft 365 Group.

office 365 group turn off welcome email 1024x659

How to disable the welcome email for Office 365 Group?

When a new user is added to Microsoft 365 group, they’d receive an Email with the subject “You’ve joined the <Team Name>”. On migrating to Office 365 group, we wanted to turn off the welcome email from a Office 365 group. So, Here is the PowerShell script to disable welcome message in Office 365 groups. I’m assuming you have Microsoft Exchange Online PowerShell Module installed (If not, do: Install-Module ExchangeOnlineManagement) and you are running this as Global Admin or Exchange Online Administrator.

$GroupId = "[email protected]"

#Connect to Exchange Online
Connect-ExchangeOnline -Credential (Get-Credential)

#Disable the Group Welcome Message Email
Set-UnifiedGroup -Identity $GroupId -UnifiedGroupWelcomeMessageEnabled:$false

That’s all! From now on, any new user added to the group will not receive a welcome email.

Disable welcome email for all Office 365 Groups

What if you want to prevent welcome emails from being sent out for all Office 365 Groups in the environment?

#Connect to Exchange Online
Connect-ExchangeOnline -Credential (Get-Credential)

#Get All Groups where Welcome Email is enabled
$WelcomeEmailGroups = Get-UnifiedGroup | Where-Object { $_.WelcomeMessageEnabled -eq $True }

#Disable Welcome Email
ForEach($Group in $WelcomeEmailGroups) 
    #Disable the Group Welcome Message Email
    Set-UnifiedGroup -Identity $Group.Id -UnifiedGroupWelcomeMessageEnabled:$false
    Write-host "Welcome Email Disabled for the Group:"$Group.PrimarySmtpAddress

This script simply disables the welcome message for Office 365 unified group wherever it’s enabled.

Salaudeen Rajack

Salaudeen Rajack is a SharePoint Architect with Two decades of SharePoint Experience. He loves sharing his knowledge and experiences with the SharePoint community, through his real-world articles!

Leave a Reply