Troubleshooting when emails cannot be sent to Microsoft 365 groups created in Teams


When I do a search in Outlook's "Find Groups" for the address of a group created in Teams (the address of a Microsoft 365 group), the group is not detected. This article is about troubleshooting a problem that results in not being able to send email.

Causes and Directions for Solution

  • Microsoft 365 Groups are created with some settings on the back side differently depending on how they are created.
    • If you create a Microsoft 365 group from Teams, Outlook defaults to not showing mailboxes
    • If you create a Microsoft 365 group from the Microsoft 365 admin center, Outlook, or AAD, Outlook will default to displaying mailboxes
  • Specific setting parameters are as follows
    • HiddenFromExchangeClientsEnabled
      • Set whether to display groups on the Outlook client and Outlook on the web
    • HiddenFromAddressListsEnabled
      • Show groups in address book
  • When HiddenFromExchangeClientsEnabled is True, group mailboxes are hidden in Outlook on the web and Outlook clients (default value when created from Teams)
  • By changing this from PowerShell to False, it can be displayed from Outlook 

Step1. Access Exchange Online from PowerShell 

■ Meet EXO V2 module prerequisites

* This setting only needs to be configured once on the computer and does not need to be done for every connection.
1. Start Windows PowerShell. 
  • Right-click the bottom of the [Start] screen and search for [Windows PowerShell] from the displayed [Search]. 
  • Click Run Windows PowerShell as administrator. 
2. When Windows PowerShell starts normally, the following screen is displayed. 
 PS C:\Windows\system32
 * Depending on the environment, the displayed title and message may differ slightly.  

3. Enter the following command and press the [Enter] key to execute the command.  
 Set-ExecutionPolicy RemoteSigned 
 When the warning message appears, type [Y] and press [Enter].  

■ Install EXO V2 module 

 * Unless you are updating the EXO V2 module, the cmdlets below do not need to be run every time you connect.
1. Install the latest his NuGet provider.
 Install-PackageProvider -Name NuGet -Force
2. Exit Windows PowerShell and Run as administrator again.
3. Install the EXO V2 module.
 Install-Module -Name ExchangeOnlineManagement
- A warning message will appear. Type [Y] and press [Enter]. 

■ Connect to Exchange Online 

 1. Run Windows PowerShell as administrator. 
 2. Load the EXO V2 module. 
Import-Module ExchangeOnlineManagement
 3. Connect to Exchange Online. 
 Connect-ExchangeOnline -UserPrincipalName "Sign-in ID" 
A window will appear asking you to enter your password. Enter your password to sign in.

Step2. Check group visibility 

 Get-UnifiedGroup -Identity <Email address of the applicable Microsoft 365 group> | Select HiddenFromExchangeClientsEnabled, HiddenFromAddressListsEnabled
* True indicates hidden state, False indicates displayed state.  

Step 3. Change group visibility 

 Set-UnifiedGroup -Identity <Email address of the applicable Microsoft 365 group> - HiddenFromExchangeClientsEnabled:$False - HiddenFromAddressListsEnabled:$False 

Check 

 Use Outlook's "Find Group" to search and check if the group is detected.

Comments