Tuesday, July 20, 2010

Set default Active Directory in SharePoint People Picker

To specify a default Active Directory for SharePoint people Picker control, use this command.

stsadm -o setsiteuseraccountdirectorypath -path "DC=www,DC=companyname,DC=com" -url http://yoursitename

for example,
stsadm -o setsiteuseraccountdirectorypath -path "DC=www,DC=maarktech,DC=com" -url http://sharepointgoose.com

1 comment:

  1. Hi,

    I have seen issues with this as this appears to restrict not just the people picker, but access to the entire site. So if you restrict the people picker to just 1 OU, then any service accounts outside that OU (the Search Managed Account for example) no longer have access to the site. This is an issue if you want to restrict the people picker in different Site Collections to different OUs.

    ReplyDelete