logo
search
Permission & Access Issues

How to Hide Disabled Azure Users from SharePoint and Teams Search

WPS Content ManagerWPS Content Manager Oct 1, 2026 868 views

Question details

The user wants to know if disabled, unlicensed, or former employee Azure AD accounts can be hidden from people search and user-selection boxes in Microsoft SharePoint and Teams.

How to Hide Disabled Azure Users from SharePoint and Teams Search
Product
SharePoint and Microsoft Teams
Device & OS
not provided
Scenario
Adding new members to SharePoint groups or Teams, and selecting users when posting an announcement.
Observed behavior
Disabled, unlicensed, and former employee accounts continue to appear in SharePoint people search results and user-selection boxes, especially for administrators.
Before you start

Ensure you have Microsoft 365 global administrator or SharePoint administrator privileges before attempting to modify user directory visibility and search properties.

Solution 1Recommended

Exclude Disabled Users from SharePoint and Delve Search

Modify the user profile properties in the SharePoint admin center to hide disabled or former employee accounts from standard people search results.

SharePoint people search is not strictly based on the global address list (GAL). To prevent accounts from showing up in SharePoint and Delve searches, you must manually adjust their user profile properties.

Please note that while this method removes users from standard searches, administrators may still see these accounts in specific user-selection controls due to elevated privileges.

1
Open the SharePoint Admin Center

Log in to the Microsoft 365 admin center using your administrator credentials, then navigate to the SharePoint admin center.

2
Access User Profiles

Click on 'More features' in the left-hand navigation pane, then locate the 'User profiles' section and click 'Open'.

3
Search for the User

Click on 'Manage User Profiles' under the People section, type the name of the disabled account in the search box, and click 'Find'.

4
Edit Profile Properties

Hover your cursor over the user's account name, click the drop-down arrow that appears, and select 'Edit My Profile'.

5
Hide from Search

Scroll down the properties list to find the option to exclude the user from Delve and people search. Check the appropriate exclusion box and click 'Save and Close'.

Administrator Visibility: If you are an administrator posting an announcement, the user-selection box may still return disabled accounts because admin privileges bypass standard address list filters.
Free Microsoft Office alternative

Looking for a Lightweight Office Suite? Try WPS Office

While administrative configurations for Microsoft SharePoint and Teams require Microsoft 365 admin tools, WPS Office provides a highly compatible, free alternative for your daily document creation and collaboration needs without the complex enterprise account management overhead.

  1. 1. Visit the Official Website: Go to the official WPS Office website to find the latest version.
  2. 2. Download the Installer: Click the 'Free Download' button for your respective operating system.
  3. 3. Install and Launch: Run the downloaded installer, follow the simple on-screen instructions, and launch WPS Office to start working immediately.
Fully compatible with Microsoft Word, Excel, and PowerPoint formats (.docx, .xlsx, .pptx).Seamless and lightweight application that runs smoothly on Windows, Mac, Linux, iOS, and Android.Free to use with a familiar, easy-to-navigate user interface.Built-in PDF editing, conversion, and local collaboration tools to streamline teamwork without enterprise servers.
microsoft office alternative - wps office

Frequently Asked Questions

Why do disabled users still show up in SharePoint search?

SharePoint people search relies on the SharePoint User Profile Service rather than the Exchange Global Address List (GAL). Even if an account is disabled in Azure AD, their profile may continue to exist and be indexed in SharePoint until they are manually hidden or completely purged.

How long does it take for a hidden user to disappear from Teams search?

After hiding a user from the Global Address List (GAL), it can take between 24 to 48 hours for the changes to fully synchronize across all Microsoft 365 services, including Microsoft Teams offline address books.

Does deleting a user account immediately remove them from all search results?

No. Deleted Microsoft 365 accounts enter a soft-deleted state for 30 days. During this retention period, or until the search index crawls update completely, they might still appear in certain administrative views or legacy selection boxes.

Why can administrators still see hidden accounts when posting an announcement?

Administrators have elevated read permissions over the entire directory. User-selection boxes in SharePoint often query the directory directly, bypassing user-level search filters, which is why admins can still retrieve and see disabled or hidden member accounts.