Share via


Peoplepicker-peopleeditoronlyresolvewithinsitecollection: Stsadm property (SharePoint Foundation 2010)

 

Applies to: SharePoint Foundation 2010

Checks the user against the existing site collection users.

Note

This operation was added in Microsoft SharePoint Foundation 2010.

Syntax

The syntax for the setproperty operation is:

stsadm -o setproperty

**   -propertyname peoplepicker-peopleeditoronlyresolvewithinsitecollection**

**   -propertyvalue {Yes | No}**

**   [-url]** <URL>

The syntax for the getproperty operation is:

stsadm -o getproperty

**   propertyname peoplepicker-peopleeditoronlyresolvewithinsitecollection**

**   [-url]** <URL>

Note

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

Parameters

Name Value

propertyname

Gets or sets the name of the property.

propertyvalue

Yes: Resolves only against the existing site collection users.

No: Resolves users against the existing site collection users and users from other identity providers, for example, Active Directory Domain Services.

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 to display users only from a specific site collection, use the following syntax:

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

If you want to display any user from an existing site collection, use the following syntax:

stsadm -o setproperty –url http://<server_name> –pn peoplepicker- peopleeditoronlyresolvewithinsitecollection –pv no

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

stsadm -o getproperty -pn peoplepicker- peopleeditoronlyresolvewithinsitecollection