Filter Unwanted User Profiles from SharePoint Online People Search
Question details
The user wants to limit SharePoint Online People search results to relevant employee profiles.

- 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.
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.
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.
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.
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.
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.
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.

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.

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.




