Was this page helpful?
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Setsiteuseraccountdirectorypath: Stsadm operation (Office SharePoint Server)

PerformancePoint Server 2007

Updated: June 12, 2008

Applies To: Office SharePoint Server 2007

Updated: 2008-06-12

Operation name: Setsiteuseraccountdirectorypath

Sets the site user account directory path to a specific organizational unit (OU) in the same domain when the url and path parameters are specified.


The setsiteuseraccountdirectorypath operation was first introduced in Microsoft Office SharePoint Server 2007 Service Pack 1.


stsadm -o setsiteuseraccountdirectorypath

   -path <name of OU>

   -url <URL name>







A valid name of a distinguished OU, for example, "OU=Contoso1,DC=OSGCorp,DC=local"


The name of the user account directory.


A valid URL, such as http://server_name/sites/contoso


The URL of a site collection.


When the People Picker control is used, a user's name is resolved when the Check Name icon is clicked or a list of users is displayed when the Browse icon is clicked.

If the Web application is using Windows authentication and the site user directory path is not set, the People Picker control searches the entire Active Directory to resolve users' names or find users, instead of searching only users within a particular organizational unit (OU). The setsiteuseraccountdirectorypath operation allows the user's directory path to be set to a specific OU in the same domain. After the directory path is set to a site collection, the People Picker control will only search under that particular OU.

If a site collection is new and an administrator uses the setsiteuseraccountdirectorypath operation to specify a target OU, only users under the specified path can be added to the site collection and no one else can be added to the site collection.

If users have already been added to a site collection and the setsiteuseraccountdirectorypath operation is run, only users under the specified path will be able to be added going forward.

Unlike the Peoplepicker-serviceaccountdirectorypaths property where multiple OUs can be specified, only a single OU can be set at a time when the setsiteuseraccountdirectorypath operation is used. As a result, this operation should only be run once per site collection.


To set a list of users to a specific OU (for example, Sales) in the Contoso Corp domain, use the following syntax:

stsadm -o setsiteuseraccountdirectorypath -path "CN=Sales,DC=ContosoCorp,DC=local" –url http://server_name

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft