Answered by:
How to disable option in People Picker

Question
-
Hi, I would like to disable option in people picker control. I am talking about this option:
"Multiple entries matched, please click to resolve."
So if enter user with some name I don't want to get this info as below but just:
"We couldn't find an exact match".
So user must enter whole user correctly to resolve, there is no possible suggestions as in default. Is it possible to do it? If yes, please tell me where can I find this option?
Thanx for any info.
Monday, April 15, 2013 9:52 AM
Answers
-
You can't exclude the Site Collection from being searched (you can delete the user from the Site Collection completely, though).
You have to implement your own custom provider if you're going to search a TIP (e.g. ADFS).
SharePoint - Nauplius Applications
Microsoft SharePoint Server MVP
MCITP: SharePoint Administrator 2010
-----------------------
This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.- Proposed as answer by Trevor SewardMVP Thursday, April 18, 2013 10:48 PM
- Marked as answer by star.wars Thursday, April 25, 2013 9:09 AM
Monday, April 15, 2013 2:54 PM
All replies
-
Hi,
I don't think there is a way to change the error message that you get for multiple matches. However, you may provide a custom property of your own across which any search are run and will return a value only when the criteria is satisfied. Say, you create a customquery on the display name of all resources (Verma, Vishal is the display name that appears for me in AD) then the search results will get narrowed down to a great extent. You can play around with this property till you arrive at what you want.
stsadm.exe -o setproperty -pn peoplepicker-searchadcustomquery -pv (displayName={0}*) -url http://mywebapp.com:80
You may refer to the below links for more details:
http://technet.microsoft.com/en-us/library/gg602075.aspx#section1
http://technet.microsoft.com/en-us/library/cc262988(v=office.12).aspx
Monday, April 15, 2013 10:27 AM -
Ok, but what if I use external source as Trusted Provider and not AD? So f.ex. I passed user login as:
"kamil" and when I click share button some suggestions appeared in PeoplePicker and I don't want it, but I would like to get info as this login name doesn't exists. So if user will pass correct name (f.ex. kamil.tester@co.pl") than it should be resolved, so "kamil.tester@co.pl" will be compared with entries in external source and then it will be resolved.
For more information I have WebService which search for this user but how to prevent that PeoplePicker gives suggestion of logins based on this short name as "kamil". So I would like that end user will not have to choose right suggestion based on some entries in the list.
Monday, April 15, 2013 10:46 AM -
And one more question, if I add user to people picker F.ex. with name like: "kamil.tester@co.pl" and it's correct name and next I will delete this user f.ex. from list permissions and start searching in People Picker for another user which name starts with "kamil" prefix this previous choose login name ""kamil.tester@co.pl" will be display in suggestions list as proposition to choose.
So I as I understand correctly that last logins are remember by People Picker and it's displayed in suggestion list of PeoplePicker ?
- Edited by CaMeL023 Monday, April 15, 2013 10:53 AM
Monday, April 15, 2013 10:53 AM -
Ok, I think I found what is the reason, because People Picker searches users also in SiteCollection (User Profile) and not only in FAB or any external user store. So if user is added to any group in site then People Picker can find this user based on his profile. Is it possibility to disable this option for searchin users in SiteCollection?
I would like to use it only in FBA or Trusted Provider.
Thanx for any info.
Monday, April 15, 2013 12:24 PM -
You can't exclude the Site Collection from being searched (you can delete the user from the Site Collection completely, though).
You have to implement your own custom provider if you're going to search a TIP (e.g. ADFS).
SharePoint - Nauplius Applications
Microsoft SharePoint Server MVP
MCITP: SharePoint Administrator 2010
-----------------------
This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.- Proposed as answer by Trevor SewardMVP Thursday, April 18, 2013 10:48 PM
- Marked as answer by star.wars Thursday, April 25, 2013 9:09 AM
Monday, April 15, 2013 2:54 PM -
I created custom provider for searching process and it works fine together with PeoplePicker but as I said PeoplePicker always search through Site Collection (searching through user profiles) and I thought that it's possibility to disable this function and only searching in TIP will be possibile but it doesn't look so good.
Monday, April 15, 2013 5:44 PM -
Ok, so as I understand correctly, Site Collection will always be used by People Picker for searching, even I run TIP or FBA store and we can't disable this?Tuesday, April 16, 2013 7:27 AM
-
Correct.
SharePoint - Nauplius Applications
Microsoft SharePoint Server MVP
MCITP: SharePoint Administrator 2010
-----------------------
This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.Tuesday, April 16, 2013 2:21 PM