Blog Archives
Setting task-item-level permissions in a SharePoint workflow
I didn’t realize this cool tip until yesterday when a colleague at my client informed me about the SpecialPermissions property of the CreateTask workflow activity. I had been taking a somewhat longer route of writing an ItemAdded event handler, which has its benefits because you can write other code besides handling permissions; however, this SpecialPermissions property is really handy. See this article for sample code to set up the property. You create an instance of a HybridDictionary and add key-value pairs of the login name and an SPRoleType member, respectively.