This project has moved. For the latest updates, please go here.

FillSearch maxcount parameter doesn't work

Dec 17, 2015 at 4:19 AM
I looked the source of LDAPCP, and found that the maxcount in FillSearch doesn't take affect, why we don't use the maxcount to limit the AD Query?
Dec 30, 2015 at 3:41 PM
Edited Dec 30, 2015 at 3:41 PM
well it's true the threshold is ignored. Here are some reasons to explain why:
  • FillSearch method is rarely called in SharePoint 2013. Actually I think it's only called from central admin.
  • I never received any complain about this causing an actual performance issue, so I never saw the need to honor the threshold
Jan 6, 2016 at 1:53 AM
Hi Yvand,

Thanks for your reply, regarding to your explanation:
  1. I debug the code and found that every people picker in SharePoint will use FillSearch when searching users.
  2. You're right, the performance is not a problem, since the max size for one query in Active Directory is 1000, but I think it's a function, currently in SharePoint peoplepicker, it will return 1000 results instead of 30 results.