Is it possible with REST API and 2013-Designer workflow ?
If yes then how? Any Advice ?
Hi Raambo,
According to your description, youd like to break inheritance and assign permissions for items using the REST API and workflow.
We can use the endpoint below to break inheritance on the specific item:
<sitepath>/_api/web/lists/getbytitle('LIST TITLE')/items('ITEM ID')/breakroleinheritance(true)
Or use the endpoint below to break inheritance on the item which you start the workflow:
[%Workflow Context:Current Site URL%]/_api/lists/getbytitle([%Workflow Context:List Name%])/items([%Current Item:ID%])/breakroleinheritance(true)
Here is a detail article about how to set unique permissions on item level:
http://spsite.pro/Blog/Post/3/SharePoint-2013-REST-API-%E2%80%93-How-to-set-Unique-Permissions-%28Item-Level-Permissions%29
And here is a detail article about how to break inheritance and assign permissions for items step by step:
http://blog.bullseyeconsulting.com/archive/2014/08/31/conditionally-set-permissions-on-new-documents-in-sharepoint-2013-workflow.aspx
If you using workflow 2010, you can create a Impersonation Step and use the actions circled in the image below to assign permissions for users:
Best regards,
Linda Zhang