Microsoft Knowledge Base Email Alertz

You cannot limit the People Picker on the site-collection level to find only users in a specific organization unit (OU) in a trusted domain in a SharePoint site

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

Article ID: 967612 - Last Review: March 21, 2011 - Revision: 4.0

You cannot limit the People Picker on the site-collection level to find only users in a specific organization unit (OU) in a trusted domain in a SharePoint site

SYMPTOMS

You want to limit the People Picker control on the site-collection level to find users in a specific organization unit (OU) in a trusted domain. However, you cannot use the stsadm -o setsiteuseraccountdirectorypath command to work with OUs from a trusted domain. You can use the stsadm -o setsiteuseraccountdirectorypath command only when the OU is from the same domain where the Microsoft Office SharePoint Sever (MOSS) 2007 farm is installed.

RESOLUTION

To resolve this issue, install the hotfix package that is described in the following Microsoft Knowledge Base article:
961750  (http://kbalertz.com/Feedback.aspx?kbNumber=961750/ ) Description of the Windows SharePoint Services 3.0 hotfix package (Sts.msp): February 24, 2009
After you install this hotfix, follow these steps to enable LDAP referral chasing for trusted domains. This makes sure that the stsadm -o setsiteuseraccountdirectorypath command to work with OUs from a trusted domain:
  1. Visit the following Microsoft Web site to download Windows PowerShell:
    http://www.microsoft.com/windowsserver2003/technologies/management/powershell/default.mspx (http://www.microsoft.com/windowsserver2003/technologies/management/powershell/default.mspx)
  2. Install and then start Windows PowerShell.
  3. In Windows PowerShell, run the following command to set the new PeoplePickerSettings.ReferralChasingOption property and to enable the new behavior on a Web application.
    [Reflection.Assembly]::Load("Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c") 
    [Reflection.Assembly]::Load("System.DirectoryServices, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")
    $webapp=[Microsoft.SharePoint.Administration.SPWebApplication]::Lookup("http://webapp") 
    $webapp.PeoplePickerSettings.ReferralChasingOption =  [System.DirectoryServices.ReferralChasingOption]::All; 
    $webapp.Update(); 
    
    
Steps required to make it to work in Sharepoint 2010

1. No hotfix needs to be installed as it is built in Sharepoint 2010 RTM

2. Following commands need to be run from SharePoint Management Shell

[Reflection.Assembly]::Loadwithpartialname("System.DirectoryServices")
$webapp=[Microsoft.SharePoint.Administration.SPWebApplication]::Lookup("http://webapp (http://webapp/) ")
$webapp.PeoplePickerSettings.ReferralChasingOption = [System.DirectoryServices.ReferralChasingOption]::All;
$webapp.Update();

APPLIES TO
  • Microsoft Windows SharePoint Services 3.0
  • Microsoft Office SharePoint Server 2007
Keywords: 
kbexpertiseinter kbqfe kbfix kbsurveynew kbprb KB967612
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate