Is there any event reciver available for user group events?
-
08-12-2019 - |
Pergunta
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?
Solução
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.
Outras dicas
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!!
Licenciado em: CC-BY-SA com atribuição
Não afiliado a sharepoint.stackexchange