1

我在 Office 365 中使用 SharePoint 2013 Online。目前我正在获取用户列表的所有属性

for (var i = 0; i < targetUsers.length; i++) {

     //Create new instance of UserProfilePropertiesForUser
     userProfiles[i] = peopleManager.getPropertiesFor(targetUsers[i]);
     clientContext.load(userProfiles[i]);
}
clientContext.executeQueryAsync(onSuccess, onFail);

如果属性被标记为“私有”或“所有人”,我无法获取信息。是否可以使用 REST / CSOM-API 做到这一点?

提前谢谢

4

0 回答 0