Archive for March, 2011

Normally, the SharePoint People Picker shows all the users from the Active directory, local users etc whose profiles are imported. But in some case we need to restrict the users to select only a group of people.

For example, what if i don’t want the AD users to be displayed in the people picker. There is no meaning in removing the AD user profiles from SSP.

Here comes the trick. Using stsadm command tool, I am able to specify that, people picker should use only the users who are provided access in the site collection.

Here the 2 simple steps goes,

  1. Provide permissions to the site collection for the users whom you wish to display in the people picker.
  2. Run this command stsadm -o setproperty –url http:// –pn peoplepicker-onlysearchwithinsitecollection –pv yes

Now, whomsoever the users you provide permission to the site collection will only appear in the people picker too.