First of all I’ve tried the same approach for SharePoint 2010 and this works the same way.
One of the things I miss the most in SharePoint 2007 is to set permissions on list views. I thought it was impossible to achieve this with the out-of-the-box functionality of SharePoint. After some research I found a way to achieve all this. My goal was to do it without writing or modifying any code in SharePoint. The solution consists of a number of manual steps, that I will describe in detail below, to accomplish this.
The idea was to place a list view inside a document library, so you can handle it as an ordinary document inside a list.
SharePoint Designer 2007 is necessary for the following steps.
- Create a new document library. I named it “ViewsLib”, and I do not let it be shown on the quick launch.
- Open the site in SharePoint Designer
- Right click on the list for which you want to create a new view, and choose “New” -> “List view page”.
- Give up a name for this view and click “OK”.
- Copy and paste the newly created view to the document library.
- Delete the view from the list, you do not need this one anymore. You will only need the one inside the document library.
- Go to the site and check all the list views. The new view should be available.
- Modify the view to suit your needs.
- Inside the document library you can set item permissions on the view (ASPX Page).
When you test this view you will see that SharePoint will redirect you to the page in the document library.
So this is all you need to do. When you check the view with a user that has no permissions, he will get an access denied.










13 comments✙ Add Comment
pingback
Nov 19, 2010
[...] This post was mentioned on Twitter by Jim Ongena, Elio Struyf. Elio Struyf said: Created a new blog post this morning about #SP2007 List View Permissions. http://bit.ly/bWFraJ [...]
Jeanne says:
Oct 18, 2011
I am trying to do exactly what you described to create permissions on list views. However, I have Sharepoint Designer 2010, and wondering how to do it with that. I am not an IT person, so I am struggling to get this to work with confidential information.
Thanks
estruyf says:
Oct 18, 2011
Jeanne,
In SharePoint Designer 2010, click on All Files, navigate to your list;
Create a new list view;
Copy your list view to a document library;
Then you can do the same steps as in SharePoint 2007.
Regards,
Elio
Simone says:
Dec 13, 2011
This seems not to be working for BPOS… I get error while copying the view in the Lib:
“You cannot copy or move files between the Forms directory and a document library. First copy the file outside of the site and then upload from that location”
estruyf says:
Dec 14, 2011
Simone,
It could be that it only works for lists, need to check it.
Regards,
EStruyf
Sagar says:
Jan 14, 2012
It worked for me on the list view. Thank you.
Dmitry says:
Feb 9, 2012
Nice!
Sarah says:
Feb 10, 2012
I created the view but don’t see how to copy and paste it into the library?
Sarah says:
Feb 10, 2012
Working with SP 2010
estruyf says:
Feb 13, 2012
If you open your the list in All Files, you can right-click on the list view and copy it.
Toros says:
Feb 24, 2012
Very nice hack, does exactly what it’s supposed to do. Well done sir.
Toros says:
Mar 23, 2012
Can’t do this with document library views. Suggestions?
estruyf says:
Mar 28, 2012
Toros,
Until today I did not find a solution for document libraries.
Regards,
EStruyf