Looking for search syntax documentation for SharePoint UserProfileManager.Search Method

Posted by gregenslow on Stack Overflow See other posts from Stack Overflow or by gregenslow
Published on 2010-05-12T19:01:36Z Indexed on 2010/05/12 19:04 UTC
Read the original article Hit count: 865

Greetings -

I have a SharePoint 2010 server running with the User Profile service setup to synchronize to Active Directory. I'd like to use the UserProfileManager.Search() method to return user profiles based on specific criteria. MSDN documentation for this method is here. It states that the method will return user profiles that match the specified search pattern. This is exactly what I want. However, there is no documentation on what a valid search pattern is. I've made a few guesses like "Department = 'HR'" but haven't had any luck. I can't find any other documentation or sample code. Can anyone provide samples of valid "search patterns?"

Another way to return user profiles is to do a query using the FullTextSqlQuery object. We don't yet have Search setup on this server so this isn't currently an option.

Thanks, Greg

© Stack Overflow or respective owner

Related posts about sharepoint-api

Related posts about sharepoint2010