Export (0) Print
Expand All
4 out of 11 rated this helpful - Rate this topic

Peoplepicker-onlysearchwithinsitecollection: Stsadm property (Office SharePoint Server)

SharePoint 2007

Updated: September 13, 2007

Applies To: Office SharePoint Server 2007

Updated: 2007-09-13

Displays only users that are members of the site collection.

Only users that are already added to the site collection are displayed in the People Picker. This prevents anyone from using the People Picker to browse a different user directory.

Typically, users that are already added to a site collection are displayed in the People Picker. This prevents anyone from using the People Picker to browse a different user directory. However, in a hosting scenario, you do not want end users to be able to search users from Active Directory; you only want the end users be able to search users that are already in the site collection.

NoteNote:

Users can search Active Directory using a fully qualified logon name, regardless of this property setting.

Syntax

The syntax for the setproperty operation is:

stsadm -o setproperty

   -propertyname peoplepicker-onlysearchwithinsitecollection

   -propertyvalue {Yes | No}

   [-url] <URL>

The syntax for the getproperty operation is:

stsadm -o getproperty

   propertyname peoplepicker-onlysearchwithinsitecollection

   [-url] <URL>

NoteNote:

You can substitute -pn for -propertyname and -pv for -propertyvalue.

Values

The following table shows possible values.

Name Value

propertyname

Gets or sets the name of the property.

propertyvalue

Yes: Permits a user to search within their site collection.

No: Does not permit a user to search within their site collection.

url

Typically, a path to the URL of the Web application, in the form http://server_name.

Examples

Display users within a site collection

If you want users to be able to search within a site collection, use the following syntax:

stsadm -o setproperty –url http://<server> –pn peoplepicker-onlysearchwithinsitecollection –pv yes

If you do not want users to be able to search within a site collection, use the following syntax:

stsadm -o setproperty –url http://<server> –pn peoplepicker-onlysearchwithinsitecollection –pv no

To view the current setting for the onlysearchwithinsitecollection property, use the following syntax:

stsadm -o getproperty -pn peoplepicker-onlysearchwithinsitecollection

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.