Hi @Catalin Pasu ,
Welcome to Q&A forum!
To exclude service accounts from the People search vertical in Microsoft Search Office 365, you can create a custom filter using a refinable managed property. Refinable managed properties are used to configure filters in the vertical administration wizard. Once you have created the filter, you can add it to the People search vertical.
To create a custom filter to exclude service accounts:
- Go to the SharePoint admin center.
- In the left navigation, select search.
- Under "Search schema," select "Manage search schema."
- In the "Managed Properties" section, select "New Managed Property."
- Name the new managed property "ExcludeServiceAccounts" and set the type to "Yes/No."
- Select "Add a mapping" and map the managed property to the "Department" crawled property.
- Select "OK" to save the new managed property.
- Wait for the managed property to be crawled and become available for use.
To add the custom filter to the People search vertical:
- In Microsoft 365 admin center, go to Verticals
- Select People vertical where you want to create a filter and click Edit.
- Navigate to the Filters step in the vertical's wizard.
- Click Add a Filter to configure filters on refinable managed properties.
- Select "Use a refiner from the search schema."
- Select the "ExcludeServiceAccounts" managed property and set the display name to "Exclude Service Accounts."
- After adding filters, you can review and save the vertical.
For your reference:
https://learn.microsoft.com/en-us/microsoftsearch/custom-filters#manage-filters
https://learn.microsoft.com/en-us/microsoftsearch/manage-verticals#manage-search-verticals
Good day!
If the answer is helpful, please click "Accept as Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.