我在Sp2013中有一个需求前提。我需要为当月的所有员工提供周年纪念日。 我有代码为当前用户提取数据。我需要所有用户的帮助,这些用户的周年纪念属于当月。任何帮助表示赞赏。从用户配置文件获得本月所有员工周年纪念+ SP2013
var url = _spPageContextInfo.siteAbsoluteUrl + "/_api/SP.UserProfiles.PeopleManager/GetMyProperties";
$.ajax({
url: url,
type: "GET",
contentType: "application/json;odata=nometadata",
headers: { Accept: "application/json;odata=verbose" },
success: function (data) {
try {
//Get properties from user profile Json response
userDisplayName = data.d.DisplayName;
AccountName = data.d.AccountName;
这将适用于您。 http://stackoverflow.com/questions/21548279/how-to-get-with-sharepoint-client-apis-all-user-profiles – Vaibhav