We can manage how to query users in People picker using stsadm as the following (You can run these commands in SharePoint Management Shell ) :
- To enable Cross Domain (One way )
stsadm -o setproprety -pn peoplepicker-searchadforests -pv "foreset:domain.com,domain\abc,password;domain:domain2.com,domain2\abc,password" -url http://domain.com - Only show certain users or groups
stsadm -o setsiteuseraccountdirectorypath -path "OU=Users,DC=Domain,DC=Com" -url http://domain.com - Only show Users in Site collection
stsadm -o setproperty -pn peoplepicker-onlysearchwithinsitecollection -pv yes -url http://domain - Only show enabled accounts (using filter)
stsadm -o setproperty -pn peoplepicker-searchadcustomfilter -pv "(*(objectCategory=person)(objectClass=user)(!userAccountControl:1.2.840.113556.1.4.803:=2))" -url http://domain - Only show Non AD accounts
stsadm -o setproperty -pn peoplepicker-nowindowsaccountsfornonwindowsauthenticationmode -pv yes -url http://domain
No comments:
Post a Comment