Monday, 9 July 2018

SharePoint Person And Group field not populating based on email address

While trying to populate SharePoint 2013 client picker control using Email id, I was getting an error as follows:

Sorry you are not allowed to share this with external users SharePoint 2013 foundation

To fix this issue I executed following stsadm command:
stsadm -o setproperty -pn peoplepicker-searchadcustomquery -pv "(sn={0}*)(mail={0}*)" -url http://site

And then restarted the IIS. Its working fine now.

So I say that why Stsadm is deprecated because there is no such solution is in PowerShell