SharePoint 2013 has Introduced a New and much needed Event Receiver class “SPSecurityEventReceiver”. Using this class you can add Event Handlers around SharePoint Groups, Users, Roles and Permission Inheritance.
Here is the list of events that you can handle in SharePoint 2013 Preview.
You can Handle the following SharePoint Group Events
- GroupAdded
- GroupAdding
- GroupDeleted
- GroupDeleting
- GroupUpdated
-
GroupUpdating
You can Handle the following SharePoint User Events
- GroupUserAdded
- GroupUserAdding
- GroupUserDeleted
- GroupUserDeleting
- RoleAssignmentAdded
- RoleAssignmentAdding
- RoleAssignmentDeleted
- RoleAssignmentDeleting
- RoleDefinitionAdded
- RoleDefinitionAdding
- RoleDefinitionDeleted
- RoleDefinitionDeleting
- RoleDefinitionUpdated
-
RoleDefinitionUpdating
You can Handle the following Inheritance Events
- InheritanceBreaking
- InheritanceBroken
- InheritanceReset
- InheritanceResetting