sharepoint workflow to add permissions to list with rest api Recently we were developing a SharePoint 2013 style workflow and faced an issue of assigning unique permissions to a list item. In Server Side Object Model we initially break role inheritance and then assign required permissions to a securable object. We tried to use the same approach and faced issues with both steps (though it’s plain how to achieve the required functionality in JavaScript CSOM) There are no activities to break inheritance/assign permissions in SP2013 Workflows. It’s possible to invoke 2010 Workflow with this activities but it’s complicated and not possible in Apps. Thus the only way is REST API. There is no documented BreakRoleInheritance method in REST API ( http://msdn.microsoft.com/EN-US/library/office/jj245826.aspx#methods ). Documented method Add of RoleAssignmentCollection doesn’t exist in REST API ( http://msdn.microsoft.com/EN-US/library/office/jj245278.a...
Posts
Showing posts from September, 2016
- Get link
- X
- Other Apps
resolved : sharepoint 2013 workflow with rest api. Sharepoint 2016 workflow with rest api. or APP step sharepoint workflow. Solution: Go to Site Settings . In the Site Actions section, select Manage site features . Locate the feature called Workflows can use app permissions , as shown in the figure, and then click Activate . Go to Site Settings . In the Users and Permissions section, select Site app permissions . Copy the client section of the App Identifier . This is the identifier between the last "|" and the "@" sign, as shown in the figure. Navigate to the Grant permission to an app page. This must be done by browsing to the appinv.aspx page of the site. Example: http://{hostname}/{the Site Collection}/_layouts/15/appinv.aspx. Paste the client id in the App Id field and then click Lookup , as shown in the figure. Paste the following...