【发布时间】:2013-08-19 08:02:00
【问题描述】:
除了缩略图之外,我可能还想在我的母版页中显示从 AD 导入的其他属性,例如使用用户配置文件同步的“公司”
如果我使用 SPServices.SPGetCurrentUser() (https://spservices.codeplex.com/documentation),我可以在用户配置文件设置中获取选定的属性。但是,我无法进行此调用,因为此处(尚)不存在该属性。
var company = $().SPServices.SPGetCurrentUser({
fieldName: "Company",
debug: false
});
但是,在 Mysite 和 _layouts/ProfAdminEdit.aspx(在 Central Admin 中编辑用户属性)时,它会同时显示在 http://mysite.mydomain.com/_layouts/EditProfile.aspx 中。我想我的问题是能够使用 SPServices,我是否以某种方式编辑默认属性并将我的“公司”属性包含在用户的 mysite 配置文件中?或者,还有其他方法可以使用 JavaScript 访问用户配置文件中保存的属性吗?
谢谢
丹尼尔
【问题讨论】:
标签: sharepoint active-directory user-profile spservices