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

Customizing SharePoint list and implementing Quick search using jQuery

Enable and Disable Client side People Picker using jQuery

How to generate PDF using jsPDF and html2canvas library