I'm looking for some help with a REST call I'm attempting to make in SharePoint Online.
I'm doing an add-in that gives me the name, birhday and photo property of all user in user profiles
I tried with this code
var siteUrl = _spPageContextInfo.siteAbsoluteUrl;
Console.log(siteUrl);
$.ajax({
url: siteUrl + "/_api/SP.UserProfiles.PeopleManager/GetMyProperties",
method: "GET",
headers: { "Accept": "application/json; odata=verbose" },
success: function (data) {
console.log(data);
},
error: function(error) {
console.log(error);
}
});
but I only get current user profile properties, what I need is all user profiles properties for all users, how can i achieve that?
Thanks in advance!