Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Getting All user profiles who's their manager is logged in user

$
0
0

Is there any way to use the search method of UserProfileManager to get all users profiles who's their manager is set to specified value? I have got the result by looping cross all profiles and check their manager value but could we get the same result by using the search function as below?

string[] patren = { "Manager", "domain\\username" };
                ProfileBase[] PBL = (ProfileBase[])userProfileMgr.Search(patren);

I am building custom solution over sharepoint 2013.


Ali


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>