One of our shared mailboxes should not show in the address book when people type a name in Outlook. How can I hide it from the Global Address List?
Use PowerShell in Exchange Online:
1. Connect with Connect-ExchangeOnline.
2. Enter Set-Mailbox -Identity sales@yourdomain.com -HiddenFromAddressListsEnabled $true
3. Check with Get-Mailbox sales@yourdomain.com | Select HiddenFromAddressListsEnabled
For a distribution group use Set-DistributionGroup with the same parameter. For a Microsoft 365 group use Set-UnifiedGroup. The Exchange admin center also has a hide from address list option in the mailbox settings.
Done, but I can still see it in Outlook on my PC.
Outlook on the desktop uses a cached offline address book, and that file refreshes about once a day. Wait up to 24 hours, or in Outlook select Send/Receive, then Send/Receive Groups, then Download Address Book. The user can still send mail to the address if they type it in full, because hiding only removes the entry from the lists.
If you use a hybrid setup with on premises Exchange and directory sync, set the hidden value on premises. The sync overwrites a cloud only change.
It disappeared after a day. Thanks.