Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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
add comment

1 Answer 1

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
add comment

Your Answer

 
discard

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.