Igor Feldman Sharepoint WIKIpedia

Please login or register.

Login with username, password and session length
Advanced search  


SMF - Just Installed!

Author Topic: People Picker not searching email address  (Read 1671 times)


  • Administrator
  • Newbie
  • *****
  • Karma: +0/-0
  • Posts: 9
    • View Profile
People Picker not searching email address
« on: December 08, 2017, 09:34:13 PM »



There is a way to set a custom people picker AD query using (believe it or not) stsadm.  Yes, it still exists, and there is no powershell equivalent for setting the people picker properties.
See http://technet.microsoft.com/en-us/library/gg602075.aspx for the ways to customize the People Picker, and http://technet.microsoft.com/en-us/library/911b5f5a-bd1d-42fd-b816-8cd5a770b4b9(office.12).aspx on setting the customadquery property specifically.  Make sure you specify the web application URL.  Here is an example I used to get the AD "mail" property to return results (as well as the last name).
stsadm -o setproperty -pn peoplepicker-searchadcustomquery -pv "(sn={0}*)(mail={0}*)" -url http://servername
I had to do an iisreset.  And I noticed that searching on the first name still worked.