How to Hide Disabled Azure Users from SharePoint and Teams Search
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.

- 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.
Ensure you have Microsoft 365 global administrator or SharePoint administrator privileges before attempting to modify user directory visibility and search properties.
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.
Log in to the Microsoft 365 admin center using your administrator credentials, then navigate to the SharePoint admin center.
Click on 'More features' in the left-hand navigation pane, then locate the 'User profiles' section and click 'Open'.
Click on 'Manage User Profiles' under the People section, type the name of the disabled account in the search box, and click 'Find'.
Hover your cursor over the user's account name, click the drop-down arrow that appears, and select 'Edit My Profile'.
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'.
Hide Disabled Accounts from the Global Address List (GAL)
Hiding a user from the Microsoft 365 GAL prevents them from appearing in Teams and Exchange directory searches.
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. Visit the Official Website: Go to the official WPS Office website to find the latest version.
- 2. Download the Installer: Click the 'Free Download' button for your respective operating system.
- 3. Install and Launch: Run the downloaded installer, follow the simple on-screen instructions, and launch WPS Office to start working immediately.

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.




