Email Address Policy with MS365 groups

Copper Contributor

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 ?

0 Replies