Hide Users From Global Address List (GAL) (2024)

In this guide, you will learn how to hide users, groups, and shared mailboxes from the Office 365 Global Address List (GAL).

You can hide any object with a mailbox from the Global Address List (GAL) including User and Shared Mailboxes, Groups (Microsoft 365, Distribution Lists, and Mail-Enabled), Resources, and Contacts. Mailboxes that are hidden cannot be located by any services that depend on the GAL.

Table of contents:

  • Hide User or Shared Mailbox from GAL in Hybrid Environment
  • Hide User or Shared Mailbox from GAL in Cloud Only Environment
  • Hide Contact from the GAL using Exchange Admin Center
  • Hide Resources from the GAL using Exchange Admin Center
  • Hide Group from the GAL using Exchange Admin Center
  • Hide User from GAL using PowerShell (Hybrid)
  • Hide User from GAL using PowerShell (Cloud only)
  • Hide contact from GAL using PowerShell
  • Hide group from GAL using PowerShell

Hide Users or Shared Mailbox from GAL in Hybrid Environment

If you have an on-premises Active Directory domain controller that syncs with Azure then follow these steps to hide a users from the GAL.

Step 1. In your on-prem Active Directory Domain Controller, open Active Directory Users and Computers.

Step 2. Locate the user you want to hide from the Global Address List and double-click on the user.

Step 3. Click on the Attribute Editor tab.

Step 4. Locate the attribute msExchHideFromAddressLists and edit it. Set it to True.

Hide Users From Global Address List (GAL) (1)

Step 5. Perform a sync to push the changes to the cloud.

Want to check or bulk update the msExchHideFromAddressLists for all users?

The AD Pro Toolkit can be used to report on the msExchHideFromAddressLists value for all users. Run the user Export tool and add the msExchHideFromAddressLists attribute to the report. This will create a report like below. This is a quick and easy way to see which users are hidden from the GAL.

Hide Users From Global Address List (GAL) (2)

If you want to bulk modify this attribute use the bulk updater tool.

Hide Users or Shared Mailbox from GAL in Cloud Only Environment

Step 1. Log into the Exchange Admin Center

Click on mailboxes, to see a list of user and shared mailboxes.

Hide Users From Global Address List (GAL) (3)

Step 2. Click on the mailbox you would like to hide.

The mailbox settings page will be displayed. At the top, click on hide mailbox.

Hide Users From Global Address List (GAL) (4)

A Hide from the address list screen will open. Toggle from Off to On. Then click Save at the bottom of the screen.

Hide Users From Global Address List (GAL) (5)

It can take up to 24 hours for an existing mailbox to be hidden from the Global Address List.

Step 1. Log into the Exchange Admin Center.

From the left menu click on recipients and then contacts. You will see your tenant contact list.

Hide Users From Global Address List (GAL) (6)

Step 2. Locate the contact you want to hide from the address list and click on it. You will see Hide from global address list at the bottom.

Hide Users From Global Address List (GAL) (7)

Click on manage hide from GAL.

The Manage hide from global address list (GAL) screen will display. Toggle the Hide from Global Address List setting to On and click Save at the bottom of the screen.

Hide Users From Global Address List (GAL) (8)

It can take up to 24 hours before an existing contact is hidden in the GAL.

Hide Resources from the GAL using Exchange Admin Center

Step 1. Log into the Exchange Admin Center.

From the left menu click on recipients and then resources. You will see a list of your resources.

Hide Users From Global Address List (GAL) (9)

Step 2. Locate and click on the Resource you want to hide. The settings page will open. Click on the box “Hide this from the global address list” and then click the save button.

Hide Users From Global Address List (GAL) (10)

It can take up to 24 hours before an existing resource is hidden from the GAL.

Hide Group from the GAL using Exchange Admin Center

Step 1. Log into the Exchange Admin Center.

From the left menu click on recipients and then groups. You will see a list of your groups. You can hide any group, Microsoft 365, Distribution List, Dynamic Distribution List, or Mail-enabled Security.

Step 2. Click on the group

Click on the tab Microsoft 365, Distribution list, Dynamic distribution list, or Mail-enabled security where your group is located. In this case, I’m choosing a Microsoft 365 Group so I’m going to click on the Microsoft 365 tab. Click on the group you want to hide. The group information box will open.

Click on the Settings tab. Under General Settings, click on the box to the left of the Hide this group form the global address list. Click Save at the bottom.

Hide Users From Global Address List (GAL) (11)

It can take up to 24 hours before an existing group is hidden from the GAL.

Hide Users from GAL using PowerShell (Hybrid)

You need to have the Active Directory PowerShell module installed to run these commands.

In this example, we change the Active Directory user “123 User”.

Set-ADUser -identity 123user -Replace @{msExchHideFromAddressLists=$true}

To check the setting of the msExchHideFromAddressLists attribute, use the cmdlet Get-ADUser
In this example, I check the status of user “ABC User”

Get-ADUser -Identity “ABC User” -Properties msExchHideFromAddressLists

Hide Users from GAL using PowerShell (Cloud Only)

First, connect to Exchange Online.

See the article Connect to exchange online for detailed steps.

To hide a user, resource, or shared mailbox from the Global Address List, use the Set-Mailbox cmdlet.

In this example, I am hiding the user “ABC User” from the GAL.

Set-Mailbox -Identity "ABC User" -HiddenFromAddressListsEnabled $true

To unhide the user mailbox from the GAL, use the Set-Mailbox cmdlet.

Set-Mailbox -Identity "ABC User" -HiddenFromAddressListsEnabled $false

To see what mailboxes are hidden from GAL, use the following script:

Get-Mailbox -ResultSize unlimited | where {$_.HiddenFromAddressListsEnabled -eq $true} | Select DisplayName

First, connect to Exchange Online.

See the article Connect to exchange online for detailed steps.

Use the Set-MailContact cmdlet to hide a contact from the GAL. In this example, we hide the contact “Cherry Pie” from the GAL.

Set-MailContact -Identity "Cherry Pie" -HiddenFromAddressListsEnabled $true

To check the status of the HiddenFromAddressListsEnabled, use cmdlet Get-MailContact

In this example, I check the status of mail contact “Cherry Pie”

Get-MailContact -Identity "Cherry Pie" | FL HiddenFromAddressListsEnabled

To view any Mail Contact hidden from GAL, use the following command:

Get-MailContact -ResultSize unlimited | Where {$_.HiddenFromAddressListsEnabled -eq $true} | Select Name,HiddenFromAddressListsEnabled

Hide Group from GAL using PowerShell

First, connect to Exchange Online.

See the article Connect to exchange online for detailed steps.

Distribution Group

Use the Set-DistributionGroup cmdlet to hide a Distribution list or Mail-Enabled Security group from GAL. In this example, I hide the Distribution List “ADProAll” from the GAL.

Set-DistributionGroup -Identity "ADProAll"-HiddenFromAddressListsEnabled $true

To see the setting of the HiddenFromAddressListsEnabled for a Distribution Group, use the cmdlet Get-DistributionGroup

In this example, I check the status of Distribution Group “ADProAll”

Get-DistributionGroup -Identity "ADProAll" | FL HiddenFromAddressListsEnabled

To view all Distribution Groups hidden from the GAL, use the following script:

Get-DistributionGroup -ResultSize unlimited | Where {$_.HiddenFromAddressListsEnabled -eq $true} | Select Name,HiddenFromAddressListsEnabled

Microsoft 365 Group

To hide a Microsoft 365 Group, use cmdlet Set-UnifiedGroup.

In this example, I hide the Microsoft 365 Group “Accounting Team” from the GAL.

Set-UnifiedGroup -Identity "Accounting Team" -HiddenFromAddressListsEnabled $true

To view the setting of HiddenFromAddressListsEnabled on a Microsoft 365 Group, use the cmdlet Get-UnifiedGroup

In this example, I check the setting of “Accounting Team”

Get-UnifiedGroup -Identity "Accounting Team" | FL HiddenFromAddressListsEnabled

To view all Microsoft 365 Groups hidden from GAL, use the following script:

Get-UnifiedGroup -ResultSize unlimited | Where {$_.HiddenFromAddressListsEnabled -eq $true} | Select Name,HiddenFromAddressListsEnabled

Dynamic Distribution List

To hide a Dynamic Distribution List, use the Set-DynamicDistributionGroup cmdlet.

In this example, I hide the Dynamic Distribution List named “ADProDDL” from the GAL.

Set-DynamicDistributionGroup -Identity ADProDDL -HiddenFromAddressListsEnabled $true

To check the setting of HiddenFromAddressListsEnabled on a Dynamic Distribution List, use the cmdlet Get-DynamicDistributionGroup.

Get-DynamicDistributionGroup -Identity "ADProDDL" | FL HiddenFromAddressListsEnabled

To get a list of all objects hidden from the GAL, use the cmdlet Get-Recipient.

Get-Recipient -ResultSize unlimited -Filter {HiddenFromAddressListsEnabled -eq $true}
Hide Users From Global Address List (GAL) (12)

As an expert in Office 365 administration and PowerShell scripting, I have extensive hands-on experience in managing and customizing the Global Address List (GAL). Over the years, I have successfully implemented various configurations for hiding users, groups, shared mailboxes, contacts, resources, and more within Office 365 environments. My expertise extends to both hybrid and cloud-only setups, utilizing the Exchange Admin Center as well as PowerShell for efficient management.

Now, let's break down the concepts and procedures outlined in the provided guide:

Hiding Users or Shared Mailbox from GAL in Hybrid Environment:

  1. On-Premises Active Directory:

    • Locate the user in Active Directory Users and Computers.
    • Edit the attribute msExchHideFromAddressLists and set it to True.
    • Sync changes to the cloud.
  2. Cloud Only Environment:

    • Log into the Exchange Admin Center.
    • Click on mailboxes, select the mailbox to hide, and toggle "Hide from the address list" to On.
    • It may take up to 24 hours for changes to take effect.

Hiding Contact from GAL:

  1. Exchange Admin Center:

    • Log in and navigate to recipients and contacts.
    • Locate the contact, click on it, and choose "Hide from global address list."
  2. PowerShell (Cloud Only):

    • Use the Set-MailContact cmdlet to hide a contact.
    • Check the status with Get-MailContact.

Hiding Resources from GAL:

  1. Exchange Admin Center:
    • Log in and navigate to recipients and resources.
    • Locate and click on the resource, then check "Hide this from the global address list."

Hiding Group from GAL:

  1. Exchange Admin Center:

    • Log in and navigate to recipients and groups.
    • Click on the group, go to the Settings tab, and check "Hide this group from the global address list."
  2. PowerShell (Distribution Group, Microsoft 365 Group, Dynamic Distribution List):

    • Use the corresponding Set- cmdlet for each group type.
    • Check the status with the corresponding Get- cmdlet.

PowerShell Commands for Hiding Users, Contacts, and Groups:

  1. Hybrid Environment (Users):

    • Use Set-ADUser to change the msExchHideFromAddressLists attribute.
  2. Cloud Only (Users):

    • Use Set-Mailbox with the -HiddenFromAddressListsEnabled parameter.
  3. Cloud Only (Contacts):

    • Use Set-MailContact with the -HiddenFromAddressListsEnabled parameter.
  4. Cloud Only (Groups):

    • For Distribution Groups, use Set-DistributionGroup.
    • For Microsoft 365 Groups, use Set-UnifiedGroup.
    • For Dynamic Distribution Lists, use Set-DynamicDistributionGroup.

PowerShell Commands for Checking Hidden Status:

  • Use Get-ADUser or Get-Mailbox to check the status of users.
  • Use Get-MailContact to check the status of contacts.
  • Use Get-DistributionGroup, Get-UnifiedGroup, or Get-DynamicDistributionGroup to check the status of groups.

General Note:

  • Changes may take up to 24 hours to reflect in the Global Address List.

By following these steps and PowerShell commands, administrators can efficiently manage the visibility of users, groups, contacts, and resources in the Office 365 Global Address List, ensuring a customized and secure directory experience for their organization.

Hide Users From Global Address List (GAL) (2024)

FAQs

Hide Users From Global Address List (GAL)? ›

Go to the Contacts section, locate the contact you want to hide, and click on it. Then, click on “Manage hide from GAL” and toggle the “Hide from Global Address List” setting to On. Save the changes, and it may take up to 24 hours for the existing contact to be hidden from the GAL.

How do I block someone from seeing my global address list? ›

Hide Users from GAL using PowerShell (Cloud Only)

First, connect to Exchange Online. See the article Connect to exchange online for detailed steps. To hide a user, resource, or shared mailbox from the Global Address List, use the Set-Mailbox cmdlet. In this example, I am hiding the user “ABC User” from the GAL.

How do I hide a group from the global address list? ›

Remove a Group from GAL using the Exchange Admin Center

Select the group that you want to hide from the GAL. In the group properties, under “Settings,” select “Hide this group from the global address list.” and click on Save button.

How do I remove a user from the global address list in AD? ›

Find the User Account and open. Go to the Mail tab. Click on Manage Global Address List Visibility. Untick Show in my organization address list.

How do I hide contacts in global address list in Outlook? ›

Mailboxes: On the Account tab, select Manage contact information. Then select Hide from global address list. Groups: On the Settings tab, select Hide this group from the global address list. Resources: Click the pencil and select Hide from address lists (GAL).

How do I restrict access to global address list in Office 365? ›

How to disable address list visibility or discoverability for an user in Office 365? Step 2: Navigate to Users > Active users. Step 3: Select and user and switch to Mail tab. Step 4: Click on Manage global address list visibility under Show in global address list.

Can you edit the global address list? ›

Regular users utilizing the GAL can view but not change its contents. Only designated individuals have been granted access to change/update contacts/distribution lists that appear in the Global Address List.

Can you hide shared mailbox from global address list? ›

Show or hide a shared mailbox in the global address list. If you choose not to show the shared mailbox in the global address list, the mailbox won't appear in your organization's address list, but it will still receive email sent to it. In the Microsoft 365 admin center, go to Teams & groups > Shared mailboxes.

How do I hide from global address list in Azure? ›

Select "Users" from the Azure Active Directory menu and locate the Guest User you want to modify. Click on the Guest User to open their profile, and then select "Profile" from the left-hand menu. Scroll down to the "Settings" section of the profile and locate the "Hide from address lists" setting.

How do I change my offline global address list for all users? ›

Updating the Global Address Book in Windows

Click Account Settings. Click Download Address Book. Make sure the Download changes since last Send/Receive box is checked off in the Offline Address Book dialog box. Click OK.

How do I hide a user from Gal in Azure AD? ›

Hide Users or Shared Mailbox from GAL in Hybrid Environment
  1. Log in to your Active Directory Domain Controller and start Active Directory Users and Computers.
  2. Browse to the user and choose properties of the user.
  3. Click the Attribute Editor tab.
  4. Browse to the attribute msExchHideFromAddressLists and set it to True.
May 3, 2023

How do I unhide a user from the global address list in Office 365? ›

Unhide from address lists

Click the Office 365 tab. Select Management from the left navigation section and click Mailbox Management. Under the Exchange Mailbox Tasks category, select the Unhide From Address Lists option.

What is the command to remove Users from ad group? ›

The Remove-ADGroupMember cmdlet removes one or more users, groups, service accounts, or computers from an Active Directory group. The Identity parameter specifies the Active Directory group that contains the members to remove.

How do I change the global address list in Outlook for all users? ›

You can manually synchronise your address book with the Global Address Book.
  1. In Outlook, click 'File', select 'Account Settings', then select 'Download Address Book...'
  2. Uncheck 'Download changes since last Send/Receive', then click 'OK'.

How do I change my global address list in Outlook? ›

How to change your default Address Book to the Global Address...
  1. In Outlook, click the Address Book button.
  2. Click on Tools and then Options...
  3. Select “Global Address List” from dropdown box under “When opening the address book, show this address list first:”and click OK.

What does hide from address list mean? ›

Hide from Address Book is an option that allows the Administrator to hide an object from the Address Book. Note: If an object is hidden from the address book, the mailbox will not be visible in the Global Address List.

How do I block someone from my mailing list? ›

When you block a sender, messages they send you go to Spam.
  1. On your computer, go to Gmail.
  2. Open the message.
  3. In the top right, click More .
  4. Click Block [sender].

How do I remove a global address list from Exchange Online? ›

Use the Remove-GlobalAddressList cmdlet to remove an existing global address list (GAL). In Exchange Online, this cmdlet is available only in the Address Lists role, and by default, the role isn't assigned to any role groups.

Can you block one person from your location? ›

Stop sharing your location with someone

Open your Location Sharing settings. Next to the person's name, tap Remove .

Top Articles
Latest Posts
Article information

Author: Kelle Weber

Last Updated:

Views: 5568

Rating: 4.2 / 5 (73 voted)

Reviews: 80% of readers found this page helpful

Author information

Name: Kelle Weber

Birthday: 2000-08-05

Address: 6796 Juan Square, Markfort, MN 58988

Phone: +8215934114615

Job: Hospitality Director

Hobby: tabletop games, Foreign language learning, Leather crafting, Horseback riding, Swimming, Knapping, Handball

Introduction: My name is Kelle Weber, I am a magnificent, enchanting, fair, joyous, light, determined, joyous person who loves writing and wants to share my knowledge and understanding with you.