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();
   });

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

Popular posts from this blog

How to Customize exported excel's cell background color in Datatables

Clear DataTable on button click

Upload multiple attachments to SharePoint List Item using REST API jQuery, along with People Picker Column