SharePoint Use Cases

22 Mar, 2010

Configure Item Level Permissions for Document Libraries – Part 2 – SharePoint 2010 edition

Posted by: Toni Frankola In: SharePoint  Bookmark and Share

Every once in a while your customer might ask you to customize permissions for a document library in such a way that authors can only change their own documents. There was no such feature for document libraries in SharePoint 2007, and the “problem” is still present in v2010. (Both versions support automatic item-level permissions OOTB for other lists like Tasks).

In Part 1 of this article I tried to solve the problem for SharePoint 2007 with Workflows, but never found the time to complete it and create custom workflow activities for SharePoint Designer. In 2010, SharePoint Designer comes to the rescue, as it has similar workflow activities OOTB!

In this article we will examine how you can create a workflow that will customize item permissions for each document submitted to a document library (only Author will have contribute permissions). These SharePoint Designer 2010 workflow activities can also be used in various workflow scenarios where permissions need to be revoked after item is submitted (e.g. Annual Leave Requests, various approvals etc.).

Here is what you need to do:

  • Create a new Document Library (e.g. Top Secret Documents)
  • Go to Document Library Settings > Permissions for this document library
  • Click on Stop Inheriting Permissions command from the ribbon
  • Revoke permissions for all but few important groups (e.g. Portal Owners and Portal Members).
    Please note: Steps 2. – 4- are optional but workflow is going to be much simpler if there are fewer permissions to manage
  • Open your site in SharePoint Designer, and select Workflows option and your list from the ribbon
  • Type the name for the new workflow (e.g. Customize Permissions)
  • Insert a new Impersonation Step. This special step runs each activity as workflow author.
    Make sure workflow author (you) has proper privileges to manage permissions for this list.

  • From the list of workflow actions choose “Replace Item Permissions
  • Click Replace these permissions
  • In the dialog click Add
  • In the Choose permission to grant dialog click Contribute, and then click Choose… button
  • Add User who created current item to the Selected users list
  • Click the workflow name (e.g. “Customize Permissions”) to manage workflow settings

  • Make sure you have selected the correct Start options
  • Publish your workflow

Once a user adds a document to a document library this workflow will revoke permission from other users and grant contribute permissions to the document author.

You can also customize this workflow and add permissions for other users as well.



Documentation Toolkit for SharePoint

Comments

1 | SharePoint Kaffeetasse 174 - Michael Greth [SharePoint MVP] - SharePointCommunity

March 24th, 2010 at 2:00 am

Avatar

[...] Configure Item Level Permissions for Document Libraries – Part 2 – SharePoint 2010 edition [...]

2 | Tweets that mention Configure Item Level Permissions for Document Libraries – Part 2 – SharePoint 2010 edition | SharePoint Use Cases -- Topsy.com

March 24th, 2010 at 7:53 am

Avatar

[...] This post was mentioned on Twitter by SharePoint Buzz, SharePoint Buzz, Planet SharePoint, Toni Frankola, Derek Goodridge and others. Derek Goodridge said: RT @ToniFrankola: Just posted: Configure Item Level Permissions for Doc Libraries – Part 2 (#SP2010 edition) http://bit.ly/d31arb [...]

3 | Tweets that mention Configure Item Level Permissions for Document Libraries – Part 2 – SharePoint 2010 edition | SharePoint Use Cases -- Topsy.com

March 25th, 2010 at 4:16 am

Avatar

[...] This post was mentioned on Twitter by Michael Greth. Michael Greth said: reading Configure Item Level Permissions for Document Libraries – Part 2 – #SharePoint 2010 edition http://twurl.nl/sxkwn1 [...]

Comment Form


About

Real-life use case and opinions about collaboration, CRM and web technologies and stuff by Toni Frankola. More...

Toni Frankola - SharePoint MVP Profile

All postings on this blog are provided "AS IS" with no warranties, and confer no rights. All entries in this blog are my opinion and don't necessarily reflect the opinion of my employer.

Page optimized by WP Minify WordPress Plugin