Skip to main content

Cloud

SharePoint People Picker

This post is about a recent interesting observation with people picker. After using Windows authentication for a while we switched to forms authentication with custom membership provider. Now when we used people picker, it was displaying the custom membership provider users, which is expected, and also the domain users! This was confusing. After doing little research on the people picker control found that it uses PeopleEditor class and the places it looks for users is driven by the AccountType property. It is an enumeration with possible values of: "DL, SecGroup, SPGroup, User". There is no explanation on MSDN about what each value stands for but there are few guesses in the community content section; listed below:

DL – Distribution List. AD or the custom membership provider

SecGroup – AD Security Group.

SPGroup – SharePoint Group

User – Single User. Here my guess is, single users are all the users that you see under "All People". These are the users who have accessed a Web at least once.

You can set the AccountType property with a comma separated string of above values. My guess is PeopleEditor.AccountType property is set to "DL, SecGroup, SPGroup, User" to search for all possible users. Once I deleted all the domain users from All People I’m getting just the custom membership provider users. This kind of asserts my guess about AccountType.User.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Raja Ayyapusetty

Raja is a software consultant with over 9 years of experience in designing, developing and testing complex solutions using Microsoft technologies. Throughout his career he has worked primarily on SharePoint and .NET technologies. Raja has worked with SharePoint since the 2003 version and has deep understanding of its features and capabilities. Raja is also a certified Sitecore developer.

More from this Author

Follow Us