sharepoint-2010 - 查找 SharePoint UserProfileManager.Search 方法的搜索语法文档

标签 sharepoint-2010 sharepoint-api user-profile

问候 -

我有一台运行 User Profile Service 设置的 SharePoint 2010 服务器,以同步到 Active Directory。我想使用 UserProfileManager.Search() 方法根据特定条件返回用户配置文件。此方法的 MSDN 文档是 here 。 它指出该方法将返回与指定搜索模式匹配的用户配置文件。这正是我想要的。但是,没有关于什么是有效搜索模式的文档。我做了一些猜测,例如“部门='HR'”,但没有任何运气。我找不到任何其他文档或示例代码。谁能提供有效“搜索模式”的样本?

返回用户配置文件的另一种方法是使用 FullTextSqlQuery 对象执行查询。我们尚未在此服务器上设置搜索,因此当前不提供此选项。

谢谢, 格雷格

最佳答案

UserProfileManager.Search 方法仅限于几个内置字段。遗憾的是,您无法搜索自定义配置文件属性。这是一篇很好的文章,解释了它的用途:link text

关于sharepoint-2010 - 查找 SharePoint UserProfileManager.Search 方法的搜索语法文档,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2821908/

相关文章:

SharePoint 和 <identity impersonate ="false"/>

php - 查看个人资料页面 PHP

c# - 使用 SharePoint 2010 中使用托管元数据的 KeywordQuery 显示自定义用户属性?

sharepoint - 在 SharePoint 2010 中部署自定义 dll

ssl-certificate - 无法使用所有 Python 插件的用户名和密码对 SharePoint API 进行身份验证

django - 在 Django 管理页面中向用户个人信息添加字段

java - 更改用户配置文件 chrome selenium webdriver

sharepoint - Get-SPTimerJob cmdlet错误列出了SharePoint计时器作业?

python - 从 Sharepoint rest api 下载文件时出现 400 错误

.net - Sharepoint 2010 SPListTemplate 如何获取字段列表?