People Search result scoping
-
30-09-2020 - |
Question
I have a server farm for three organisations (unfortunately they are all sharing the same user profile service app). There are three web apps with site collections (one web app with a site coll per org).
When we do a people search results from other organisations are displayed on the people search. Unfortunately we cannot use the organisation to filter the search results as everyone is a member of the same org in AD.
Is there a way to filter search results by the email address (i.e. from @ onwards)? if so how?
If not, is there an alternative way to achieve a people search that only returns people within a specific org based on their email address?
La solution
- Navigate to the people search results
- Click on site actions
- Click on edit page
- Edit the People Search Core results web part
- Expand the Results Query options section
- Enter the text WorkEmail:”*org1.com” in Append Text to query
- Click ok
- Save & close the page
- Publish the page
Autres conseils
You could add the Company AD property to the import from AD into the User Profiles and then create a scope based on that attribute. Any attribute will work for creating the scope but I have found Company works well in scenarios like yours.