Search the search syntax documentation for the SharePoint UserProfileManager.Search Method

Greetings -

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

Another way to return user profiles is to run the query using the FullTextSqlQuery object. We don't have a search setup on this server yet, so this is not an option at this time.

Thanks, Greg

+2


a source to share


1 answer


The UserProfileManager.Search method is limited to a few built-in fields. Unfortunately, you cannot search for custom profile properties. Here's a great post explaining it: link text



+3


a source







All Articles