User Profile Properties in SharePoint 2013 using REST api
How to get User Profile Properties in SharePoint 2013 using REST api and jQuery
Code:
$(document).ready(function() {
user_Properties();
});
Code:
$(document).ready(function() {
user_Properties();
});
function user_Properties(){
$.ajax({
url: _spPageContextInfo.webAbsoluteUrl + "/_api/SP.UserProfiles.PeopleManager/GetMyProperties",
headers: { Accept: "application/json;odata=verbose" },
success: function (data) {
console.log(data);
},
error: function (jQxhr, errorCode, errorThrown) {
alert(errorThrown);
}
});
}
Comments
Post a Comment