We need to view document item level permission, with User Names. We need REST API call to get item level permission. Also just for particular item which permission contains.
Till now I have used following code.
var itemurl = _spPageContextInfo.webAbsoluteUrl + "/_api/web/lists/getbytitle('Sustaining')/Items(78)/RoleAssignments";
$.ajax({
url: itemurl,
method: "GET",
async: false,
headers: { "Accept": "application/json; odata=verbose" },
success: function (data)
{
console.log(data);
if (data!=null ) {
console.log(data);
}
},
error: function (error) {
//alert("Error: "+ JSON.stringify(error));
}
});
not working for me