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