Detect when a user is deleted

 

Hi,

 I've created a SidSettingsArea plugin for the user administration section and have implemented the IUserSettings interface which defines the methods LoadSettings and SaveSettings but I would like to know how I can detect when a user is deleted?

 When a user is created, a page is added to the system, which I would like to auto delete if they are deleted. Does anybody know how this could be done?

 Many thanks

Matt

#27949 Feb 13, 2009 18:22
  •  

    It depends on what Membership and RoleManager Provider you are using.

    If you want an event to be triggered when DeleteUser is called on SqlMembershipProvider you have to create a sub class and override the method.

    If you are using EPiServer Community there are hooks available.

    #27962 Feb 15, 2009 14:53
  •  

    Extending the SqlMembershipProvider worked a treat.

    Many thanks

    #28381 Mar 05, 2009 16:03
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
Please login to post a reply