0

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

2
  • Hi Prashant, can you please add some brief description in the question.
    – Asad Refai
    Commented Mar 4, 2016 at 5:34
  • We need to view document item level permission, with User Names. We need REST API call to get item level permission. We need to just get for particular item which permission contains. Commented Mar 4, 2016 at 5:37

1 Answer 1

1

I published a quick post on this at Display the SharePoint list item permissions using REST API

Let me know if it works for you.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.