Click here to Skip to main content
15,884,099 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I've to change the permissions of a document on change of approval status. I've to add the new user group to current document if the document has been approved with "Designer workflow 2013 & REST API".
Posted
Updated 9-Mar-16 15:31pm

1 solution

JavaScript
I don't think you can do this with a 2013 workflow.  But you can easily do it using a 2010 workflow built with SPD 2013.  One of the differences between 2010 and 2013 workflows in 2013 is that 2010 has an action for changing permissions but 2013 workflows don't.



Use this REST endpoint to break permissions on the item

/_api/web/lists/getByTitle('YOUR LIST TITLE HERE')/items('YOUR ITEM ID HERE')/breakroleinheritance(copyRoleAssignments=true,clearSubscopes=true)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900