REST API roledefinitions

jQuery.ajax({
    url: “https://usepa.sharepoint.com/sites/OAR_Custom/_api/web/roledefinitions“,
    type: “GET”,
    headers: {
        “accept”:”application/json;odata=verbose”
        }
   }).done(function (data) {
    console.log(“Done”);
    jQuery.each( data.d.results, function( key, value ) {
  console.log(value.PrincipalId);
});
}).fail(function (error) {
    console.log(error);
});

Leave a Reply

Your email address will not be published. Required fields are marked *