I have a document approval SharePoint Designer 2013 workflow. The workflow reacts on the creation of a new folder inside a document library. The newly created folder will contain new documents uploaded by users.

I found out that I can break/set permissions on the newly created folder using REST api:

/_api/web/lists/getByTitle('document library')/items('id of the new folder')/breakroleinheritance(copyRoleAssignments=true,clearSubscopes=true)

My problem is: How can I break/set permissions on the documents uploaded inside the new folder, possibly via rest api?

I really cannot find I way to do it. I need to get one level down with respect to the folder to set permissions on single documents. Any help would be really appreciated.

  • Can't you use the very same REST request as you purpose? Just instead of the folder id you use the file item id – eirikb Aug 22 '15 at 9:39
  • I thought there was a specific rest call for my case. Anyway, I can give it a try, thank you. – OuterSpace Aug 22 '15 at 12:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.