Fix Hidden Shared Mailboxes Appearing in the Exchange Global Address List
Question details
Hide synchronized shared mailboxes from the Exchange Global Address List when setting msExchHideFromAddressLists to True has not taken effect.

- Product
- Microsoft Exchange Online and Microsoft Entra Connect
- Device & OS
- not provided
- Scenario
- Regular mailboxes were converted to shared mailboxes in a hybrid directory environment and should no longer appear in the Global Address List.
- Observed behavior
- Some synchronized users remain visible in the Global Address List even though msExchHideFromAddressLists is set to True.
Identify the affected on-premises Active Directory accounts and confirm that they are synchronized to Microsoft Entra ID. You will need permission to inspect their attributes and check synchronization and Exchange mailbox settings.
Check mailNickName and synchronize the affected accounts
Use this approach when a synchronized shared mailbox remains visible despite its on-premises hide attribute being set.
A missing mailNickName value can prevent the hidden status from being applied through directory synchronization. Check each affected account rather than assuming that all shared mailboxes have the same attribute values.
In Active Directory Users and Computers, select View > Advanced Features. Locate an affected user, open Properties, and select the Attribute Editor tab.
Find samAccountName and mailNickName in Attribute Editor. If mailNickName is empty, copy the samAccountName value into mailNickName, provided it is a valid, unique Exchange alias, and select OK.
In the same Attribute Editor tab, confirm that msExchHideFromAddressLists is set to True. If the value needs correction, use your organization's supported on-premises Exchange management tools to update the synchronized recipient.
Allow the next Microsoft Entra Connect synchronization cycle to run, or on the synchronization server run Start-ADSyncSyncCycle -PolicyType Delta in an appropriately authorized PowerShell session.
After synchronization completes, connect to Exchange Online PowerShell and run Get-Mailbox -Identity <mailbox> | Format-List HiddenFromAddressListsEnabled. Confirm the value is True, then check the Global Address List again.

Use WPS Office for Everyday Document Work
WPS Office is a free, lightweight alternative with a familiar interface for everyday document, spreadsheet, and presentation work. Its Office format support helps make migration straightforward. It does not manage Exchange address lists or fix directory synchronization.

Frequently Asked Questions
Why does a hidden shared mailbox still appear in the Global Address List?
The hide setting may not have reached Exchange Online, or Outlook may be showing cached address book data. Check mailNickName and msExchHideFromAddressLists in Active Directory, then verify HiddenFromAddressListsEnabled in Exchange Online PowerShell.
What should I enter if mailNickName is blank?
In the user's Active Directory Attribute Editor, you can copy samAccountName into an empty mailNickName field if the value is a valid, unique Exchange alias. Synchronize the directory and verify the mailbox setting afterward.
Can I run Update-GlobalAddressList in Exchange Online PowerShell?
No. Update-GlobalAddressList is an Exchange Server command and is not available in Exchange Online PowerShell. For this issue, check the synchronized attributes and the mailbox's HiddenFromAddressListsEnabled value instead.
Why does Outlook still show the mailbox after Exchange reports it as hidden?
Outlook may be using an older offline address book. Check the address list in Outlook on the web and allow time for the offline address book to update.




