Hide non-default e-mail addresses in User's contact info

Dmitry Maystrenko 20 Reputation points
2023-08-16T08:52:46.5666667+00:00

Hi everyone. Is there a way to hide all non-default e-mail addresses (aliases) in user's contact info displayed in Outlook, Teams, etc for all users in the tenant?

Outlook Windows Classic Outlook for Windows For business
Microsoft Teams Microsoft Teams for business Other
{count} votes

Accepted answer
  1. Ran Hou-MSFT 7,585 Reputation points Microsoft External Staff
    2023-08-17T06:31:02.9533333+00:00

    @Dmitry Maystrenko

     Based on your problem description, you could try the following steps to hide non-default e-mail addresses in User's contact info:

    Step 1: Connect to Azure Active Directory using PowerShell. You need to have the Azure Active Directory PowerShell for Graph module installed and be a global administrator or a user administrator in your organization.

    Step 2: Use the Get-AzureADUser cmdlet to get the user object that you want to modify. For example, will return the user object for John. Get-AzureADUser -ObjectId ******@contoso.com

    Step 3: Use the Get-AzureADUserExtension cmdlet to get the extension attributes of the user object. For example, will return the extension attributes for John. Get-AzureADUserExtension -ObjectId ******@contoso.com

    Step 4: Use the Set-AzureADUserExtension cmdlet to set the HiddenFromAddressListsEnabled property to $true for each alias that you want to hide. For example, will hide John’s proxy addresses from the address lists. Set-AzureADUserExtension -ObjectId ******@contoso.com -ExtensionName "ProxyAddresses" -ExtensionValue "HiddenFromAddressListsEnabled:$true"

    Step 5: Repeat steps 2-4 for each user that you want to modify.

    Step 6: Verify that the changes have taken effect by using the Get-Recipient cmdlet in Exchange Online PowerShell. For example, will show John’s name and whether his email addresses are hidden or not. Get-Recipient -Identity ******@contoso.com | Format-List Name,HiddenFromAddressListsEnabled


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Vasil Michev 119.5K Reputation points MVP Volunteer Moderator
    2023-08-16T16:33:07.82+00:00

    Afaik no, the only option we have is to hide the contact entry as a whole (all details).

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.