Expression Evaluation Time: ms / Round trip: ms
People Picker Fields in Multiple Forests or Domains
26.Apr
10:00
by Tobias
2
Category:
Technical

Sometimes SharePoint is used in environments with a complex Active Directory structure (using multiple domains or forests). This can lead to problems regarding the resolve mode of People Picker fields, both in OOB SharePoint fields and within the corresponding MatchPoint fields (i.e. within a Form Web Part: PersonField, RoleField).

SharePoint Behavior

Per default, the SharePoint People Picker will resolve accounts from the domain where SharePoint is installed. For resolving user- and group accounts from other forests or domains, it is required to modify the People Picker settings (according to MSDN). SharePoint will then be able to resolve user- and group accounts, provided that trusts between the forests or domains are configured correctly. More information on the configuration of the SharePoint People Picker can be found within the following MSDN article:
People Picker overview

Please be cautious: If not configured correctly, there might me a severe performance impact.

If SharePoint should resolve user accounts within multiple AD forests or domains, it is required to specify these search paths per web application:
Peoplepicker-searchadforests: Stsadm property

For further optimization of account resolving, it might be necessary to use a custom query or custom search filters:
Peoplepicker-searchadcustomquery: Stsadm property
Peoplepicker-searchadcustomfilter: Stsadm property

Note: We have found that resolving accounts cross-forest (or cross-domain) might work without making modifications to the People Picker settings. However, we suggest following the MSDN guidelines and specifying the settings.

MatchPoint Behavior

As far as possible, MatchPoint's account resolving follows the implementation of SharePoint. However, SharePoint does not provide a documented API for using the functionality for resolving accounts directly, so there are some differences:

  1. While SharePoint might be able to resolve accounts in multi forest or domain setups without additional configurations, it is essential to configure the search settings for any web applications in order for the MatchPoint People Picker controls to work correctly:

    stsadm o setproperty pn peoplepicker-searchadforests pv <list of forests or domains> -url <WebApp>

    This is required so MatchPoint can include additional search paths when user- or group accounts are resolved.

  2. For a custom LDAP filter, please use the PeoplePickerSettings element within the MatchPointConfiguration.xml configuration file. This corresponds with the configuration of a custom search filter for OOB SharePoint People Picker fields.

    Within MatchPoint's configuration settings, you can also configure a custom display name pattern that will be used within a People Picker field.

Note: As of April 16, 2012 there were no PowerShell commands to configure People Picker. Therefore the links and examples provided here use the STSADM utility.

Comments
mikko koskinen
28.06.2012 10:09
"Within MatchPoint's configuration settings, you can also configure a custom display name pattern that will be used within a People Picker field."

Ok just made an question to the forum about this. Could you give an example how to use these patters in People Picker field? Like how to show an accout name or name+email or name+account name for example.
mikko koskinen
02.07.2012 02:15
Tobias did answer and solved my forum question that can be found here: http://www.matchpointcommunity.com/forum/Posts/499/many-person-with-same-name-and-rolefield
ABOUT

This blog is about technical and non-technical aspects of the product MatchPoint and other SharePoint topics.

If you would like to post an article or if you have an idea for a post, please contact us.

COMMENTS
Thomas.Stoller
02.05.2013 06:46
WorkflowScope does not seem to have a property nam... | Goto Post
Dave Aknai
12.04.2013 12:05
No one? | Goto Post
Dave Aknai
05.03.2013 09:30
Can anyone in Colygon answer my question above? | Goto Post
Matthias
25.02.2013 03:29
Could you please specify precisely where you would... | Goto Post
rduijves
25.02.2013 01:49
Hi there,
In this article you refere to a PDF docu... | Goto Post