The problem

The new SharePoint 2013 Workflow engine doesn’t provide many OOB activities, especially when it comes to assign unique permissions.

The solution

We've fixed it using HttpSend activity that makes REST API calls and encapsulated it in several activities we'd like to share with SP community.

A detailed description of REST API methods used here can be found there http://spsite.pro/Blog/Post/3/SharePoint-2013-REST-API-%E2%80%93-How-to-set-Unique-Permissions-(Item-Level-Permissions)

Our approach fully supports SharePoint Online - Apps can use activities and Sandbox solution actions can be used in SharePoint Designer 2013.

Project News

  • 30.07.2014 - Actions for SharePoint Designer 2013 are added. They are based on activities for Visual Studio released earlier. Actions can be deployed to SharePoint Online (Office 365) as they are deployed as a No Code Sandbox Solution.

Activities / Actions

  • GetRoleDefinitionId - gets role definition id using role definition name. Please take into account that role definition names are localized.
  • GetRoleDefinitionIdByRoleId - gets role definition id using SPRoleType enumeration value.
  • AddRoleAssignment - assigns the specified role definition to the specified principal id using or not break role inheritance option.
  • AddRoleAssignments - assigns the specified role definition to the specified principal id collection using or not break role inheritance option.
  • DeleteRoleAssignments - removes principals specified by ids from role assignment collection of the specified object.
  • ResetRoleInheritance - resets role inheritance of specified securable object and inherits role assignments from the parent securable object.

More details:

How to use

About Artezio

http://www.artezio.com is an ISO 9001:2008 certified software development and consulting company. Since its establishment in 2000, Artezio has completed more than 500 projects for its international clients. Since 2005, Artezio is a member and a major offshore division of LANIT group which is a $2.5B IT Services vendor with 5000 employees. From its development centers in Russia, Belarus and Ukraine Artezio delivers cost effective, high quality IT services to clients in North America, Europe, Middle East and Japan thus being one of the leading Russian offshore/nearshore software developers.
Artezio SharePoint Consulting & Development

Last edited Jul 30, 2014 at 12:39 PM by YuriLeontyev, version 32