I have to update some list whenever a new user or group is added to the site.

Is there any event receiver available for users/groups?


There is no event receiver for users or user groups. So you'll have to create a timer job and do the checking for new groups yourselvers.

Or you can add some javascript to a delegate control (AdditionalPageHead) which checks for the current page being _layouts/newgrp.aspx and if it is hooks the clicked event of ctl00_PlaceHolderMain_ctl06_RptControls_btnOK to fire off an AjaxCall to your code.

  • Which button id it is "ctl00_PlaceHolderMain_ctl06_RptControls_btnOK" Also i am not going to add the user group through UI. Doing through code.
    – TinTin
    Apr 10 '12 at 9:38
  • 1
    That button id is the create button on the newgrp page, but I admit it's a hack to use. It's only if you need to run your code fast when a group is created through the UI. If you create the groups using code, then why not run your code in there or add a SPWorkItem for a timer job you create. Apr 10 '12 at 10:31

You have to donwload the SharePoint 2010 Event Manager, then in the user Assign your Assymbly(Event Receiver) to the User Information List of your site and Test!!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.