SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've had the case with SharePoint 2010 site collection what was set during creation to use UserAccountDirectoryPath to specific OU. It created w/o exceptions but wasn't following the restriction instead People Picker showed all AD users.

I've noticed that some site collection properties being check through a browser throw exceptions. I've deleted and re-created site collection and it helped. How can i check if site collection admin can add users from AD? I've tried a couple of PS and object model scripts but failed. Maybe there's way to check a site collection health?

share|improve this question

Another nice feature is the UserAcountDirectoryPath parameter, which defines a scope for user accounts, meaning that only accounts within the organizational unit can be added as members of the site collection. People pickers will also be limited to this scope. The following example limits the scope to the Company/Site/Users organizational unit.

PS > Set-SPSite -Identity http://SPServer01 `
>> -UserAccountDirectoryPath "OU=Users,OU=Site,OU=Company,DC=Powershell,DC=nu"

If we now try searching for users through the people picker in SharePoint, we will be able to find users only within the scope and users already added to the site collection.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.