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

Populate dropdown using jquery ajax in SharePoint

Customizing SharePoint list and implementing Quick search using jQuery