- All events from the SPItemEventReceiver class
- ItemAdding, ItemUpdating, ItemDeleting, ItemCheckingIn, ItemCheckingOut, ItemUncheckingOut, ItemAttachmentAdding, ItemAttachmentDeleting, ItemFileMoving, ItemAdded, ItemUpdated, ItemDeleted, ItemCheckedIn, ItemCheckedOut, ItemUncheckedOut, ItemAttachmentAdded, ItemAttachmentDeleted, ItemFileMoved, ItemFileConverted, ContextEvent
- All events from the SPListEventReceiver class
- FieldAdded, FieldAdding, FieldDeleted, FieldDeleting, FieldUpdated, FieldUpdating
- Anything PowerShell can do...
- Deploy the solution
- Activate the Feature
- Go to the list settings of any list or document library
- Choose Power Item Event Receiver
- A Quick Start Guide is included
- Enter the following script to deny deletion of list items
- Now, try to delete a list item...
- The End
This is just to give you an idea - just be creative...
Please be carefull with the event receivers, they will run with the credentials of the application pool. Although only site collection admins are permitted to edit the script, the script will run with higher privileges! Any idea to improve the security would be appreciated - maybe using a local machine group? What do you think?