Project Description
Use MOSS EventReceiver to control List item permission
Usage
- Start->All programs->Microsoft SharePoint 2010 Products-〉SharePoint 2010 Management Shell
- Run: Add-SPSolution -LiteralPath <your folder>\CFCEventReceiver.wsp
- Run: Install-SPSolution –Identity CFCEventReceiver.wsp
- Create a new customer list named "UACConfig"
- Add two single text type columns, named "ListName" ,"GroupName"
- restrict this list permission,set only administrator can access it
- Configure the UACConfig list:
- ListName is the list name which need control list item permission.
- GroupName is group name which have permission access list item, mulity names split by comma symbol ( , )
- Create a new customer list named "UACListConfig"
- Add three single text type columns named "ListName", "UserField", "RoleType"
- restrict this list permission,set only administrator can access it
- Configure the UACListConfig list
- ListName is the list name which need control list item permission.
- UserField is the column name which get user or group to set permission
- RoleType is which role type you want to give the user to the list item. the value must be one of follows:
- Guest
- Reader
- Contributor
- WebDesigner
- Administrator
Note
only support custome list and calendar list, other type you can added by modify Elements.xml