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

Get more than 5000 list items in SharePoint using Deferred Promises jQuery