Click here to Skip to main content
14,920,205 members
Articles / Productivity Apps and Services / Sharepoint / SharePoint 2010
Technical Blog
Posted 2 Aug 2012

Tagged as


1 bookmarked

How to Set View Level Permissions Out of the Box in SharePoint 2010

Rate me:
Please Sign up or sign in to vote.
3.00/5 (2 votes)
2 Aug 2012CPOL2 min read
How to set view level permissions out of the box in SharePoint 2010

Today, I had a requirement to set permissions on list view, I remembered this feature was present in SharePoint 2007, but I couldn’t find it in SharePoint 2010. After doing a bit of research, I found out a way to do this out of the box.

I’ll be using the default Task list for illustrative purposes. However, this method can be used on any list or document library.

Let’s say for example, we want to create a view in task list to show users the tasks which are assigned to them and their manager should be able to view all tasks. So users should only be able to access my tasks view and only their managers can access all tasks view.

Step 1

Create a document library. I’m naming it Restricted views. It is better to not show this library in quick launch because it’ll be used to host the all tasks view.

Creating restricted views document library

Step 2

Now open SharePoint Designer 2010, go to All Files – Lists – Tasks and copy AllItems.aspx (This is All Items view.)

Default views in SharePoint 2010 task list

Step 3

Go to All Files – Restricted Views (It is the document library which we created in step 1) and paste the AllItems.aspx there.

Paste AllItems.aspx in Restricted views document library

Step 4

Go to All Files – Lists – Tasks and delete AllItems.aspx.

Step 5

Open the SharePoint 2010 portal – Site Actions – View All Site Content – Restricted Views, you will see AllItems.aspx there.

Change item permissions in SharePoint 2010 Document Library

Step 6

Select AllItems.aspx – Document Permissions – Stop Inheriting Permissions and then grant permissions to manager.

Step 7

Go back to SharePoint Designer 2010, go to All Files – Lists – Tasks and then delete AllItems.aspx.

Step 8

Go to All Files – Restricted Views, copy AllItems.aspx and paste it to All Files – Lists – Tasks.

Step 9

Open the SharePoint 2010 portal, go to Task List, when you click the views drop down, you’ll see two views titled All Items, don’t worry.

Changing list view in SharePoint 2010

Step 10

Go to list settings – views and click All Tasks views, now you’ve to be careful here and delete the old view.

Deleting list view in SharePoint 2010

Make sure URL of the view says /Lists/Tasks/AllItems.aspx and not /Restricted Views/AllItems.aspx. This is important because the view in Restricted Views library is the one with proper permissions.

Step 11

Now try accessing the view as manager, you’ll be to see it and when you’ll try to access the view using any user who you didn’t give, they’ll see access is denied when they’ll try to access it.

Access denied on SharePoint 2010 List view

I hope this will help you out. Thanks for reading.

Image 8 Image 9


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Khurram Punjwani
Pakistan Pakistan
Khurram Punjwani is a smart, passionate and creative SharePoint Consultant who specializes in delivering extensible solutions using object oriented design and agile methodologies. He has solid fundamental knowledge, along with an intense curiosity to learn new things and an extreme fondness for solving problems.

Comments and Discussions

Question404 Page not found Pin
Member 114269614-Feb-15 3:30
MemberMember 114269614-Feb-15 3:30 

I have followed the steps 3 times now and have come to the same result at the end every time. After deleting the old alltimes.aspx, the tasks page itself is no longer available. I have double checked that it is the right view that I am removing.

Please advise how to overcome this?

QuestionRipple effect Pin
Member 388094725-Jun-14 23:38
MemberMember 388094725-Jun-14 23:38 
QuestionExcellent Post Pin
Member 108735099-Jun-14 6:06
MemberMember 108735099-Jun-14 6:06 
AnswerRe: Excellent Post Pin
Khurram Punjwani16-Jun-14 21:57
MemberKhurram Punjwani16-Jun-14 21:57 
GeneralFormatting Pin
Sergey Morenko2-Aug-12 7:31
professionalSergey Morenko2-Aug-12 7:31 
GeneralRe: Formatting Pin
Khurram Punjwani2-Aug-12 8:13
MemberKhurram Punjwani2-Aug-12 8:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.