Visit also my other projects on CodePlex:
http://exportexternallist.codeplex.com - Export SharePoint 2010 External List to Excel
http://sharepointsmfu.codeplex.com - SharePoint 2010 SilverLight Multiple File Uploader

Visit also my other projects:
http://www.sharepointguys.eu

http://www.last-memories.com
http://www.pets-memories.com

New Version 1.7.1 Now Available - 14th April 2013:
Fixed problem with ListView Selector Menu

SharePoint 2013 version available here: https://sp2013columnpermission.codeplex.com


BUG:
If you have activated on your site collection
Metadata Navigation and Filtering the context menu still displays all views!!!

Project Description:
As you already know, there is no possibility in SharePoint 2010/SharePoint 2007 to setup Columns and View permission for Lists or Document Libraries. I was told by Microsoft, that there will be a big performance issue if they create something similar to this...Hmm...:) I have worked on many projects in SharePoint 2010/SharePoint 2007 and everytime I have experienced same request from customers "We need the column and view permission". Sometimes we have created the custom forms and the problem was solved and when we needed something more complex we bought it from third party companies, however their software never works the way we (customer) want. Therefore I have tried to create something for everyone.

First I must to say, my solution is not perfect and I will be working on improvements, but from now on You don't need to pay third party companies for this because it's for free.

This Solution is only for SharePoint 2010!

Features:
Column Permission

- Hide or Read Only Columns in a List Forms (New/Edit/Display)
- Hide Columns in Views
- Hide Columns in DataSheet Views
- Hide Columns in Alert Me Emails
- Specify the permission for Users, SharePoint Groups or Active Directory Groups

View Permission
- Disable Views
- Hide Views in Context Menus
- Automatically Disable Views in Custom WebPart Zones
- Specify the permission for Users, SharePoint Groups or Active Directory Groups


Column Permission:
1. After successful Installation and Activation on Site Collection you will see two new links in your List/Document Library Settings page.



2. Click on Column Permission and on New Page you will see all columns created by user for specific list.

3. In Modal Dialog you are able to specify the permission for Users, SharePoint Groups or Active Directory Groups. If you specify in last section hidden permission these users will not have permission to view columns also in Views and Alert Me Emails

4. So In New Form You will not see Hidden Column Number.

5. In Edit Form Column Number will be Read Only.

6. In Views Column Number will be Hidden.

7. In Alert Email the Column Number will be Hidden also.


8. Column Number will be Hidden also in DataSheet View



So you can combine permission for New/Edit/Display forms for all columns created by userwithout any problem. If you choose to Hide column for Display form the column will also be not visible in Views and Alerts.


View Permission:
1.
After successful Installation and Activation on Site Collection you will see two new links in your List/Document Library Settings page.

2. Click on View Permission and on New Page you will see all Views created by user for specific list.
3. Now specify the permission for Users, SharePoint Groups or Active Directory Groups which will not have the permission to get to these Views.

 

4. Users which don't have the permission will not even see these views in context menu and also if they type correct URL to these Views they will be redirected to Access Denied Page.


If user doesn't have permission for View and View is used on some Webpart Page Zone the View will be also disabled on this page.


If this checkbox is checked you need to specify the permission for users or groups like in SharePoint.

I think that solution is simple and for me, it works without any problem. As I said this solution is not perfect and never will be but I am still working on it. With combination of Column and View permission you can get very nice results.


Installation:

0. It will be better if you disable any other solutions which you use for column & view permission
1.
Download the wsp file.
2. Everything needed is included in wsp file so you just only need to Install it.
Management Shell:
   - Add-SPSolution c:\SPGuysCustomFieldPermission.wsp
3. After Successful Installation Deploy it from Central Administration to your Site Collection or from
Management Shell:
   - Install-SPSolution –Identity SPGuysCustomFieldPermission.wsp –WebApplication http://intranet –GACDeployment
4. Activate it on Site Collection.
5. Done.


What Need to be Done in future:
Column Permission
- Hide or Read Only Attachments
-
Hide Created By or Modified By and maybe other Internal Columns
- Hide columns in Export to Excel
- Read Only columns in Edit in DataSheet or Access 

View Permission
- Create Settings page for Views which are used in Manually Created WebPart Zones


If you will find any bugs please let me know at enti@zoznam.sk or post your findings in Issue Tracker.

Thanks goes to:
Matthew - SharePoint Guru
Lenka - SharePoint Guru

 

Last edited Feb 4 at 6:24 PM by enti333, version 49