开发者

Looking for search syntax documentation for SharePoint UserProfileManager.Search Method

开发者 https://www.devze.com 2022-12-30 15:26 出处:网络
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 prof

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 开发者_如何学Pythona 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


The UserProfileManager.Search method is limited to a few built-in fields. You cannot search on custom profile properties unfortunately. Here's an excellent post explaining it's use: link text

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号