Recently, I’ve come across SharePoint 2013 New Event Receivers for Groups, Users, Roles and Inheritance article while doing some investigation for my other issue. Straight away in my mind, I wished they’ve could done it in SharePoint 2010 and solve my nightmare 2-3 years ago.
The way to implement the SPSecurityEventReceiver event receiver is a bit unusual.
- Class needs to be created and inherited from SPSecurityEventReceiver.
- Then, you need to override desired SPSecurityEventReceiver available methods inside the class.
- Finally on FeatureActivated, the SPSecurityEventReceiver needs to be attached to the current web.
You could see more detail in one of my reference links.
SharePoint Group Events:
SharePoint User Events: