Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

whats up? Has anyone used the UserProfileManager.Search method? if I pass an array of strings it does an 'AND' or an 'OR' search? Is it possible to do a 'Like' search using this function? Thanks in advance, and happy holidays

share|improve this question
    
Just found this blogs.msdn.com/b/yardman/archive/2010/06/29/…. I'm currently doing some concept testing to see how it works. –  Jaime Dec 6 '12 at 16:34
add comment

1 Answer

I prefer to leverage search and SPQuery for a full text query, much more power.

You can then use this in conjuction with the UPM to get the user profile.

To use a the search engine use the code which I posted here (but change scope to people and map the fields if you need extra)

Using SPQuery

// Then get the user
UserProfile userProfileColleague = userProfileManager.GetUserProfile(username);
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.