Permission & Access Issues

Filter Unwanted User Profiles from SharePoint Online People Search

Emma BrownEmma Brown Nov 20, 2026 869 views

Question details

The user wants to limit SharePoint Online People search results to relevant employee profiles.

Filter Unwanted User Profiles from SharePoint Online People Search
Product
SharePoint Online
Device & OS
not provided
Scenario
A tenant contains former employee profiles and secondary accounts in addition to the active employee directory.
Observed behavior
People search can display former employees and secondary accounts.
Before you start

Identify sample accounts that should not appear and check whether they are cloud-only or synchronized from an on-premises directory. Coordinate any account or synchronization changes with your identity administrator because they can affect access to other Microsoft 365 services.

Solution 1Recommended

Review Account Lifecycle and Directory Synchronization Scope

Use directory account management and synchronization settings to address unwanted accounts at their source.

SharePoint Online does not provide an LDAP-style filter for user profiles. Profiles are synchronized from Microsoft Entra ID, formerly Azure AD, so directory accounts can be represented in SharePoint.

Changing directory scope is not an instant People search filter. Profile retention and search indexing can affect when a profile stops appearing.

1
Inspect the accounts

In the Microsoft Entra admin center, open Identity > Users > All users and search for a former employee or secondary account. Review its status and whether it is synchronized from an on-premises directory.

2
Review account lifecycle

With your identity administrator, use the user account page in the Microsoft Entra admin center to review whether each unwanted account should be retained or removed under your organization's policies. Disabling an account alone should not be assumed to remove it from People search.

3
Check synchronization scope

For synchronized accounts, review the filtering and scope settings in your Microsoft Entra Connect Sync or cloud synchronization configuration. Change the scope only if the accounts should no longer be synchronized to the tenant.

4
Verify search results

After approved directory changes, search for the affected people again in SharePoint Online. Allow time for profile and search updates, and investigate any remaining profiles with your SharePoint administrator.

Review Account Lifecycle and Directory Synchronization Scope
Directory changes have wider effects: Excluding a synchronized account from scope can remove it from Microsoft Entra ID and affect Microsoft 365 access and data. Confirm the consequences before changing synchronization rules.
Free Microsoft Office alternative

Work With Office Documents in WPS Office

WPS Office is a free, lightweight alternative for everyday document work. Its familiar interface and Microsoft Office format compatibility make it easy to move existing files into WPS. It does not change SharePoint Online People search or directory profiles.

Open and edit Microsoft Word, Excel, and PowerPoint formatsUse a familiar interface for everyday document tasksMove existing Office files into a lightweight workspaceWork with documents while your administrator manages SharePoint profiles
microsoft office alternative - wps office

Frequently Asked Questions

Can I apply an LDAP-style user profile filter in SharePoint Online?

No. SharePoint Online does not support an LDAP-style filter for its user profiles. Review account management in Microsoft Entra ID and, for synchronized accounts, the directory synchronization scope instead.

Will disabling a user automatically remove them from People search?

Do not assume that disabling an account will immediately remove its profile from People search. Check the account lifecycle, profile retention, and search updates with your administrators.

Where can I check whether an account is synchronized?

In the Microsoft Entra admin center, go to Identity > Users > All users, open the account, and review its synchronization information.

What happens if I exclude an account from directory synchronization?

Depending on the synchronization configuration, excluding an account can remove it from Microsoft Entra ID and affect access to Microsoft 365 services. Review the impact with your identity administrator before changing the scope.