How can I automatically add new users to a distribution list in MS365?

0
2
Asked By CuriousCoder99 On

I've got two domains (let's call them domain A and domain B) and I'm looking to set up a distribution list that automatically includes any new users created for either domain as soon as they are set up. I'm aware that Dynamic Distribution Groups might be a good option, but I've heard that they don't support wildcards. Are there any recommended or standard methods to achieve this in the MS365 cloud environment?

2 Answers

Answered By ScriptMaster88 On

Another way to handle this is through a PowerShell script. You can create a script that automatically adds users to a distribution list as they're created. Just feed the input with the new user's name and the script takes care of the rest, adding them directly to your group.

Answered By TechieTina42 On

Dynamic Distribution Groups are definitely what you want here! Instead of using wildcards for the membership rule, consider using a statement like `contains $DomainName` to filter recipients. This setup allows you to dynamically include users from both domains without any manual effort.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.