Hiding users from Global Address List (GAL)

Anonymous
2021-12-22T16:55:22+00:00

Hi, I've been working to remove former employees from my GAL and really have been struggling to find a solution that works. I have tried many different ways including: “msExchHideFromAddressLists” in AD, making sure the account has a mailNickname and email set in the attribute editor. I have tried using the PowerShell CMD "Set-ADUser 'user' -Replace @{msExchHideFromAddressLists=$true}" and it takes the command but it does not seem to sync. I have even tried to hide the user from the Exchange Admin Center and I get the attached error message. There are no errors in the DirSync section. I'm out of ideas. Thank you for your help.

Microsoft 365 and Office | Install, redeem, activate | For business | Other

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
Answer accepted by question author
Anonymous
2021-12-23T02:02:20+00:00

Hello Joey,

First the error you provided above is expected when you tried to make changes to the users who were synced from local AD, as the changes need to be done from AD then sync to Microsoft 365 Azure AD/Exchange Online.

Since you have set up the attribute "msExchHiddenFromAddressLists" in local AD, my understanding is you still have active on-premises Exchange server in your local environment, please clarify if I misunderstand your scenario, thanks. Generally if the AD account (******@contoso.com) has this attribute set to True, with mailnickname set to User, and mail attribute was set to ******@contoso.com, the msExchHiddenFromAddressList should also be synced to Azure AD side, please double check the attributes above in your local AD.

Also, as far as I know if you are using AAD Connect Sync, the attribute "msExchHiddenFromAddressList" was not synced by default, and we need to enable "Exchange Hybrid" in the AAD Connect Sync to make this attribute synced to Cloud side, please double check if you enabled "Exchange Hybrid" in your AAD Connect if you are using. if so, in this case please open the Synchronization Service Manager from your AAD Connect Sync server > Metaverse Search > Connectors > double check both connectors ( on-premises AD and Azure AD ) > check if you could find the attribute "mxExchHiddenFromAddressLists" with true there. For your reference

If you could find this attribute in both connectors from your server manager, in this time, please connect to Exchange Online PowerShell and run Get-Recipient ******@domain.com | FL *HiddenFromAddressListsEnabled* to see the result

Please feel free to let me know if you got any further updates, thanks.

Best Regards,

Oliver

Was this answer helpful?

5 people found this answer helpful.
0 comments No comments

15 additional answers

Sort by: Most helpful
  1. Anonymous
    2022-01-06T00:45:59+00:00

    Hello Joey,

    Glad to hear that.

    Next step, please first double check and make sure you have set up the AD attribute " msExchHideFromAddressLists" to True for the AD user, and then wait for the sync cycle or force a DirSync via AD powershell Start-ADSyncSyncCycle -PolicyType Delta then wait for some minutes to make the changes to be synced to Cloud. After that please connect to Exchange Online PowerShell and run Get-Recipient ******@xxx.xx | FL *HiddenFromAddressListsEnabled* to see if the value is set to True also, thanks.

    Please feel free to let me know if you got any further updates, thanks.

    Best Regards,

    Oliver

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2022-01-05T16:19:41+00:00

    Hi Oliver,

    Thank you so much for all of your assistance so far. Thanks to your instruction I was able to enable "Exchange Hybrid"

    What are the next steps to ensure it syncs properly?

    Thank you!

    Joey

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2022-01-04T02:01:25+00:00

    Hello Joey,

    Thanks for your updates with patience.

    If you confirmed the "Exchange Hybrid Deployment" is not enabled in your AAD Connect, First, please try to open your AAD Connect Sync > Configure > select customize synchronization options > step by step > go to optional features page then see if you could enable Exchange Hybrid deployment there. For your reference https://docs.microsoft.com/en-us/azure/active-directory/hybrid/how-to-connect-install-custom#optional-features >> Optional features

    Moreover, if you cannot change it or enable it there, as far as I know this option can only be changed with the first-time installation. And you would need to re-install the AAD Connect Sync then enable it again to see the result, please note backup/Export your current configuration before re-install the AAD Connect Sync, thanks.

    Please feel free to let me know if you got any further updates, thanks.

    Best Regards,

    Oliver

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2022-01-03T18:52:07+00:00

    Hi Oliver,

    I ended up locating the page and it appears that Exchange Hybrid is not enabled. How can I go about enabling this? Thank you for your help!

    Was this answer helpful?

    0 comments No comments