I'm trying to disable the welcome emails for users added to a dynamic group in Azure AD. I've created my group and set the necessary rules, and I'm using the command `Set-UnifiedGroup -Identity "MyDynamicGroup" -UnifiedGroupWelcomeMessageEnabled:$false`. However, it seems that the email notifications are still being sent. I checked the status of `UnifiedGroupWelcomeMessageEnabled`, and it shows that emails are still enabled. Can anyone guide me on how to properly turn off these notification emails?
2 Answers
One workaround is to set up a mail rule that discards any incoming welcome emails based on their subject line. We've had some success with this method in the past for various types of messages that can’t be silenced directly.
You might be mixing up some commands. What you need is `Set-UnifiedGroup -Identity "Mail_enabled_Unified_group" -UnifiedGroupWelcomeMessageEnabled:$false`. Just make sure you're looking at the right property, which is `WelcomeMessageEnabled`. You can check this using `get-unifiedgroup -Identity "Mail_enabled_Unified_group" | select *mess*` to see if it's set to false.
That’s exactly what I did as well! Just remember, since it's a dynamic group, you’ll need to go through a few extra steps: create the dynamic group first, set a temporary rule, disable the welcome message, and then change the rule to what you really want. Just a heads up, if it’s a Teams group, the users might still get notifications regardless.