I’m in need here in the company of two web parts to query profile service. One is a list of the employee birthday of the day and the other is search for employee phone extension. The Birthday webpart will list the employee with birthday of the present day and also they will do a specific birthday date search. The phone extension will be a textbox autocomplete search for a employee phone extension (and other info too), so thats why i need to do a search in the profile services.
My idea was to use the client objects of 2013 version (CSOM) but have not found a method to list of users but only recovering a particular user (when you already provides the user login). Then I thought about building a WCF from scratch (even to put in cache these employee informations and optimize the performance) but was afraid to build something that already exists.
What do you guys think?
Thanks in advance.
Dan
The problem , when the visitor profile, is the search returns a 500 response. Looks like a security issue in my opinion but i can not figure out. But thanks anyway, i will continue to search for the solution.Â
>>does not work!Â
So, what exactly doesn’t work?
No I can’t.Â
not wanting to abuse but enjoying the theme, I developed a web part that uses REST with javascript (everything works on the client, because it did not use apps not yet configured here) to SEARCH extensions and everything worked perfectly when the administrator Report this profile is, when I’m authenticated as the visitor jquery ajax (I’m using jquery autocomplete) does not work! Can you imagine what it might be? Have you seen something like that? Any input will be great. thanks again.
Thanks a lot  avishnyakov ! I’m already looking the material of the CSWP and i will change all the solution used. Thanks for the help.
No worries.
Check out manager properties – they need to be create with in serch schema in the Central Administration. Just google “crawled and managed properties in SharePoint Server” to get more info.
Next, as far as you have manager properties, you may be able to query them, to make filtering or something.
So, you use Content By Search web part, configure query – that’s how you get the data you want.
Finally, check out “display render templates” for Conten By Search Web Part or for Search Resul Web part. There are some post about that and getting views customoized.
Pretty much, this is a bi picture of the recommended approach for SP2013.
For 2010 it would be the same, but you would have xslt instead of JS and just Search Result web part.
Good luck w. that.
Cheers!