I've added a GroupUserAdded event receiver to a SPWeb and confirmed the correct deployment via SharePoint Manager.
Additionally, the call to the receiver class is working fine when adding a user via SP Site Settings page People and Groups.
The caveat I'm experiencing right now - and couldn't find a fix for - is that programmatically adding a user to a group as follows won't trigger the event receiver. Any idea as though why this behaviour occurs would be appreciated.
var firstGroup = web.SiteGroups; var adminUser = web.EnsureUser("administrator"); firstGroup.AddUser(adminUser); firstGroup.Update();