.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

People Picker: limiting the results

Posted By:      Posted Date: October 06, 2010    Points: 0   Category :SharePoint

Hey all,

After succesfully setting up User Profile Synchronization with our AD using a Connection Filter I am now trying to configure the people picker.

I understood that the people picker queries the whole AD. Since I only need those accounts in a particular OU I have set the setsiteuseraccountdirectorypath to "OU=Employees,DC=company,DC=com"

With this setting I do not have other accounts, such as admins and service account. So far so good. :)

Now, some of these accounts are disabled and some do not have an Exchange mailbox and I want those accounts filtered out.

I have a AD Browser tool that can handle LDAP queries. I tried this LDAP query in this tool and the results were just what I've expected:


When I use this LDAP query for the property peoplepicker-searchadcustomquery it does not work.

I also tried the property peoplepicker-searchadcustomfilter but that leaves me with zero results.
Can someone help me out?

View Complete Post

More Related Resource Links

People picker control is taking forever to return results



We have been having this issue across all SharePoint Sites in our organization from around a week. The People picker (people search control) control that gets the data from the available user profiles is taking forever to finish. It used to work with first few letters of the person's name but now it is not returning any data for first few letters, it is giving result back only if I type the full name of the person and that too is taking more than 5min to return. How can I fix this issue? All users are getting frustrated as this is most commonly used control in all lists, doc libraries etc.,

Thanks in advance.

Get Value of People Picker in Sharepoint

Hi Guys I have One Field called Employee Name with Field type Person or Group and second field UserID with field type is single line of text. Now i enter lets say abc xxy as name as far knowledge i know people picker store value like domain\axxy. I was wondering is there anyway with help of jquery or javascript to get axxy in Userid field once someone enter Employee name Thanks Ron

Authentication for people picker

Hi All, People picker failed to track for the domain user. an error says "No Exact match was found"   I have look into many articles and one of it actually did solved my case. But i do not know what is the logic behind.   My web application's app pool is run under local account. When i try to create a site collection and people picker failed to match with domain user. I changed the app pool account(Identity) to a domain account to run the app pool. Then i try to create site collection, and people picker can match with the domain user. I do not know why. Can please brief me on the logic behind? Possible to trace for the domain user while the web app pool is running under local user account? This is a standalone farm but joined to a domain. Whole farm is using local user account to run the service. Thanks in advance.   Regards Jason  

User display Name & People Picker

Hi, We wanted to use a web application without user profile service. We have added users their display name is always domain\username. Is it that without user profile service display names will not be updated. But my understanding is that people picker also returns display name. Is it something else we need to configure to get the displayname from the people picker itself.Satheesh

People Picker & Replicate Permission

Hi, We have a IT env in a test domain and it is one way trusted to the domain where the actual users are. Recently we have tried adding a new web application for a different domain users (which is again one way trusted). But the people picker in this does not return any result. Does the account which is used for people picker need replication directory permission on that domain. And the ULS log says: (All these are Verbose information) SearchFromGC name = domain2.company.com. start SearchFromGC name = domain2.company.com. returned. Result count = 1 GetAccountNameFromSid "0x010500000000000515000000358A021AB47B733407E53B2BD9260500" start GetAccountNameFromSid "0x010500000000000515000000358A021AB47B733407E53B2BD9260500" returned. returnValue=False ------------------ Can someone help me what could be the issue.  Satheesh

Add mobile number to search results in People Finder

Hi, Could someone tell me if it is possible to add content to the People Finder search results, namely the users mobile number. If if is possible could you tell me how or point me in the direction of a how to? ThanksDavid Hodgson Add me on Twitter and LinkedIn www.infinitygroup.co.uk

People Picker gets error when selecting user from a trusted domain(one way forest trust)

  Hello all,   Our current setup is SharePoint 2010 Foundation server in one external forest(Trusting forest), and trying to have users in a separate internal forest(Trusted forest) access the site. The external forest's DC and SharePoint server are in a DMZ separated by a firewall with the internal forest's DC and users. A one way transitive forest trust was successfully created and has been validated. On SharePoint, we're ran the sts commands to set the setapppassword as well as the peoplepicker-searchadforests adding the domain that the SharePoint server is in, as well as the trusted forest. An iisreset was issued after running these commands. In SharePoint, we can then search for users from the trusted domain, and select the users in the Select People page, but when hitting the final Ok, an error is received: An unexpected error has occurred in which a correlation ID is provided. Reviewing the SharePoint logs we find the following: <!-- /* Font Definitions */ @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4; mso-font-charset:0; mso-generic-font-family:swiss; mso-font-pitch:variable; mso-font-signature:-520092929 1073786111 9 0 415 0;} @font-face {font-family:Tahoma; panose-1:2 11 6 4 3 5 4 4 2 4; mso-font-charset:0; mso-generic-font-family:swiss; mso-font-pitch:variable; mso-font-signature:-520081665 -1073717157 41 0 66047 0;} /* Style Defin

bind values for the drop down based on people picker value change

hi, i have a two lists in my sp. list 1 name  items user1 item1 user1 item2 user2 item1   and list 2 is in this way in this i have a people picker and a drop down when ever i change the name in people picker the value should get filled from list 1 and fill in drop down list so i need to get the on text changed event of people picker and bind it in the dropdown list could some help me out in fixing thisjayaraja

People Picker Render Error in Document Information Panel

I created a Content Type and added 3 columns.  One of those columns is a People Picker type column. When I open the Content Type by going to NEW -> MyContentType in a document library in SharePoint it opens in Microsoft Word but the People Picker control does not render correctly in the Document Information Panel. There is no error - just a display of a broken control. Is there a fix?

people picker problem, with multiple select lose the list.

<!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0cm; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman";} p {mso-margin-top-alt:auto; margin-right:0cm; mso-margin-bottom-alt:auto; margin-left:0cm; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman";} @page Section1 {size:612.0pt 792.0pt; margin:72.0pt 90.0pt 72.0pt 90.0pt; mso-header-margin:36.0pt; mso-footer-margin:36.0pt; mso-paper-source:0;} div.Section1 {page:Section1;} --> Hi guys I have a master table with configuration for reports. when I load a InfoPath form (2010) for new report I have a approvers that set ok  , and I have  Notifies (multiple people) when I load a value form master they left me in the field only the first value(people) and lose the others. Do you know if there any way to load a multiple people value in people picker control?   Thank in advance Ramiro

People picker

Dear Forum, I am a newbie in SP 2010 - so hopefully you are patient with me :-) I need some help on the following issue: I have started with defining a list using a filed for filling in a "Line Manager" (because people in my organisation did not fill in the "responsible manager" in Exchange/AD). The idea was to use a filed of Type "Person or Group" and to call this "Line Manager". When the user filed in the form a workflow is sending this to the "line manager" via email. For me being an administrator it works but for a "normal" user not - it is just running and "searching" but not showing anything. If I explain the filed that it should be related to the group "Viewers" it is picking all userids and we can select an userid for sending emails. But we do not want to add new users to this group - it should pick an userid from "All users". Sorry - I am really a newbie and maybe this is really a piece of cake - please be patient with me :-)   Thanks a lot. Manni

bind values for the drop down based on people picker value change

hi, i have a two lists in my sp. list 1 name  items user1 item1 user1 item2 user2 item1   and list 2 is in this way in this i have a people picker and a drop down when ever i change the name in people picker the value should get filled from list 1 and fill in drop down list so i need to get the on text changed event of people picker and bind it in the dropdown list could some help me out in fixing thisjayaraja

read only to people picker

hi all, i have a sharepoint list where in if groupA user is accessing the site i would like to make the people picker to read only  and when people from groupB logs in they can add users in people picker. how would i do this. ?jayaraja

People search results showing members deleted from AD

Hi guysWe've configured a full nightly import of users from AD, but I'm seeing users who have been deleted showing up under the People Search function.  Does the import job delete accounts from SharePoint that no longer exist in AD?  If not, is there a way to change this?Tks,steven

How to set a string field with people picker control group

Hi Guys I have a problem with a form list, when I need to set a string field with de content of people picker control that have more than one "user". Is there any way to put in string a list of user like the people picker control shows in a form? The really problem is I don't know how to read an array of user in a formula rule. any example or idea should be appreciated. tnks.  

InfoPath 2010 People Picker - Find Email Address

I am creating a form that uses the people picker to find information on a user but it doesn't appear to contain an email address for the user. I can create another form that uses a web service to connect to the SharePoint 2010 user profile service and pull back the current user details but I want to be able to send data from the people picker to fill in parts of the form with that users details (includiong email) and not the current user

Infopath 2010 How to activate the people picker control

I am creating a form where i am populating a people picker with the logged on user. This is fine but how can i then activate the control to get it to lookup the display name and account type.   I am using a rule to set the AccountID field to be the Username function available in rules. Then on the form you have to click on the tick icon to finish the lookup. This is the bit i want to automate.   I also have c# code running in the background so am happy using .NET code to do this.   Thanks   Paul
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend