Security Policy Errors

How to Hide Former User Accounts from Microsoft Teams

Phi Hung VoPhi Hung Vo Oct 26, 2026 869 views

Question details

Administrators need to remove migrated or old user accounts from Microsoft Teams search results and messaging interfaces.

How to Hide Former User Accounts from Microsoft Teams
Product
Microsoft Teams
Device & OS
not provided
Scenario
Users have been migrated from a primary domain to a subsidiary, but their old accounts are still visible and causing confusion in the primary domain's Teams environment.
Observed behavior
Former licensed accounts still appear in Microsoft Teams search and messaging, even after administrators have hidden these accounts from the Exchange Global Address List (GAL).
Before you start

Verify that your organization has the necessary Microsoft 365 licensing (such as E5 or specialized compliance add-ons) to configure Information Barriers, and ensure you have global or compliance administrator permissions.

Solution 1Recommended

Use Microsoft Teams Information Barriers

Configure Information Barriers (IB) to restrict communication and visibility between the old licensed accounts and the active users.

Hiding a user in the Exchange Global Address List (GAL) prevents them from appearing in Outlook, but Microsoft Teams relies on a different directory cache. To effectively block searches and messaging for specific accounts within Teams, you must use Information Barriers to establish strict communication boundaries.

1
Access the Compliance Portal

Sign in to the Microsoft Purview compliance portal using your administrator credentials.

2
Create User Segments

Navigate to the Information Barriers section and define two segments: one for the active users and one specifically for the former or migrated accounts.

3
Define the Information Barrier Policy

Create a new policy that blocks communication and directory lookups between the active user segment and the former account segment.

4
Apply the Policy

Apply the newly created Information Barrier policy. Note that it can take up to 48 hours for the policy to propagate through the system and clear the backend Teams cache.

Use Microsoft Teams Information Barriers
Local Client Caching: Even after backend policies are applied, end-users may still see the accounts locally. Have users sign out, clear their local Teams client cache, and sign back in to force an immediate directory update.
Free Microsoft Office alternative

Simplify Your Document Management with WPS Office

While resolving administrative policies in Microsoft 365 can be complex and time-consuming, handling your daily documents shouldn't be. WPS Office offers a free, lightweight, and highly compatible alternative to Microsoft Office, ensuring your team can collaborate without heavy IT overhead.

  1. 1. Download the Installer: Visit the official WPS Office website to download the free installation package for your operating system.
  2. 2. Install and Launch: Run the setup file and follow the on-screen prompts to install WPS Office on your computer.
  3. 3. Open Existing Documents: Open WPS Office and drag in your existing Word, Excel, or PowerPoint files to seamlessly resume your work.
Fully compatible with Microsoft Office formats like .docx, .xlsx, and .pptxAvoid complex administrative overhead with an intuitive, ready-to-use interfaceLightweight application that uses minimal system resourcesBuilt-in robust PDF editing and document collaboration features
QA img-9

Frequently Asked Questions

Why doesn't hiding a user in the Exchange GAL hide them in Microsoft Teams?

Microsoft Teams uses its own directory infrastructure and local caching mechanisms for user search. The 'Hide from GAL' attribute only affects Exchange-related services like Outlook, which is why Teams requires Information Barriers to restrict user visibility.

How long does it take for Information Barriers to hide accounts in Teams?

Once an Information Barrier policy is applied in the Microsoft Purview compliance portal, it generally takes between 24 and 48 hours to fully sync across all Teams services and client applications.

Can I permanently delete the old accounts instead of hiding them?

Yes, deleting the former accounts will eventually remove them from Teams. However, many organizations choose to retain them instead of deleting to comply with data retention policies, legal holds, or eDiscovery requirements.

Will clearing the Microsoft Teams cache fix the issue immediately?

Clearing the local Teams cache only forces the desktop client to download the latest directory data. If the Information Barrier policy has not yet propagated on the server side, clearing the cache will not remove the accounts from search.