Detect when a user is deleted



 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


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.

Feb 15, 2009 14:53

Extending the SqlMembershipProvider worked a treat.

Many thanks

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.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.