0

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?

1
  • 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
  • SharePoint doesn't support prefix wildcards, this won't work. – Matthew McDermott Dec 9 '14 at 2:20
  • it seems to be working - has it been changed in later service packs for 2010? I guess i could try just changing it to WorkEmail:"org1.com" to see if I get the same results. – Mauro Dec 9 '14 at 8:32
  • 1
    Interesting, the second query WorkEmail:"org1.com" is a contains query and may work. I still prefer using company as it is unambiguous. – Matthew McDermott Dec 10 '14 at 11:30
  • Yeah - like I said I would normally prefer that too but unfortunately AD is unlikely to get tidied up enough to be able to rely on that. – Mauro Dec 10 '14 at 13:23
  • Remember, you can edit the properties in the User Profile Service too. For example you could use PowerShell to tidy up. – Matthew McDermott Dec 10 '14 at 21:33
1

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.

  • This is normally what I would do, but AD is a mess and needs tidied up, so for now the prefix text seems to be working. – Mauro Dec 9 '14 at 8:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.