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-28T18:08:52+00:00

    Hi Oliver,

    Thank you for your continued support.

    Unfortunately, moving the user to an unsynced OU, forcing a DirSync, and moving them back to their original OU and forcing another DirSync still did not work.

    If you could please send me a private message and I will provide you with screenshots of the information you had asked about.

    Thanks

    Joey

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2022-01-20T02:37:23+00:00

    Hello Joey,

    Thanks for your feedback with patience.

    Yes, if your users keep synced from local AD, and you want to hide them from Exchange Online, you would need to set the hide attribute from your local AD, then sync them to Cloud to make the users hidden there, thanks.

    Best Regards,

    Oliver

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2022-01-19T17:27:04+00:00

    Hi Oliver,

    Sorry for the delayed response.

    To answer your question, the organization I work for keeps former employees' accounts synced in AD so we can copy that account with the same permissions once a new hire replaces them.

    So just to clarify, I will have to add all of the users I want to hide from the GAL to this new OU and that will be the primary method to hide our users moving forward?

    Thanks for your patience!

    Joey

    Was this answer helpful?

    0 comments No comments