Forum Discussion

Francois_Raynaud's avatar
Francois_Raynaud
Copper Contributor
May 02, 2024

Email Address Policy with MS365 groups

Hello,

I manage multiple companies on the same tenant and we'd like for the users of CompanyNumberTwo to be able to create Teams groups with their domain as default.

 

I've found this documentation which makes me think it is possible.

 

The result is :

New-EmailAddressPolicy -Name CompanyNumberTwo -IncludeUnifiedGroupRecipients -EnabledEmailAddressTemplates "SMTP:@DomainNumberTwo.com","smtp:@DomainNumberTwo.com" -ManagedByFilter {Company -EQ 'CompanyNumberTwo'} -Priority 1

Update-EmailAddressPolicy

 

The way I understand it is that :

  • IF the user's company name is CompanyNumberTwo
  • THEN the domain of the email address of the new MS365 groups is @DomainNumberTwo.com.
  • ELSE use the default policy already in place.

Is there something wrong/missing ?

No RepliesBe the first to reply

Resources