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

Long story short: On a SharePoint 2010 Server solution, which is using forms-based-authentification only, I want that the people picker search dialog works like any other usable search.

Rightnow it only finds user when the search term equals with them completely. This makes the search-dialog actually useless, because when I know the complete name of the user there is no need to even perform a search, I could just type the name in the people picker field right away.

I found a solution, in which the search is changed to use wildcards. This is done by using the stsadm -setproperty operation. For example, the search would then work like this: searching for "Matt" would return "Matt Brown" and also "James Matthew Doe". This would be the desired effect I'm looking for. Unfortunally, this solution works for Active Directory ONLY. (Here's the solution I was refering to: http://www.cjvandyk.com/blog/Lists/Posts/Post.aspx?ID=309)

The question is: Is that even possible with forms-based-authentification? (I couldn't find ANYTHING on the net so far, except the people with the same problem) If not, is there a possible workaround like overriding the search dialog of the people picker and do this programmatically somehow? Or is there simply no way to achieve that, and I would just have to live with that?!

Any help appreciated.

share|improve this question

2 Answers 2

up vote 6 down vote accepted
+50

I havent tried this for claims in SP2010, but in SP2007 this was done for FBA by adding PeoplePickerWildCard element to membership provider in web.config

<PeoplePickerWildcards>
  <clear />
  <add key="AspNetSqlMembershipProvider" value="%" />
  <add key="fbaMembers" value="%" />
</PeoplePickerWildcards>

http://msdn.microsoft.com/en-us/library/bb975136(v=office.12).aspx

share|improve this answer
    
According to HOW TO:Forms Based Authentication (FBA) on SharePoint 2010 and some other blogs it applies to 2010 as well –  Vedran Rasol Sep 19 '11 at 17:40
    
Just remember this works for membership provider only (not roleprovider) but this looks to be what you need –  Anders Rask Sep 19 '11 at 18:45
    
thanks, that helped to improve the search quality quite a bis. The wildcard doesn't work 100% the way I want but I guess that is not possible anyway. I have posted another yet similiar question about the PP here on SharePoint SE, you might want to check it out: Search issue with People Picker when limited to select from one group only –  Markus Schwalbe Sep 23 '11 at 8:50

You have alternative.

You can write your own Custom Claims Provider. Sole purpose would be to provide better People Picker experience. Your custom claim provider would be responsible for searching and People Picker look and feel but at the end it would save resolved entities as default FBA claims.

I did some researching in this direction and I even made small project as 'proof of concept' but didn't reach production stage with it. Maybe there are some limitations and/or problems I am still not aware of. I was working with mixed mode authentication (Win & FBA)

Here is 4 part series by Steve Peschka that helped me a lot (pay close attention on 3rd):

share|improve this answer
    
A custom claims provider is much more complex than necessary. The MembershipProvider base class has Find* members that can be implemented to perform a custom search. –  Paul Schaeflein Feb 17 '12 at 16:59

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.