Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi,
How do I hook into the Save User event in the backoffice?
I want to call an external webapi if the user has been disabled.
Thanks!
I suggest you use the ApplicationEventHandler.
using Umbraco.Core.Models.Membership; using Umbraco.Core.Services; namespace MyApplication { public class UmbracoEventHandler : ApplicationEventHandler { protected override void ApplicationStarting(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext) { UserService.SavedUser += UserServiceSaved; base.ApplicationStarting(umbracoApplication, applicationContext); } private void UserServiceSaved(IUserService sender, SaveEventArgs<IUser> e) { throw new NotImplementedException(); } } }
Thanks David!
That looks perfect!
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Hook into the Save User event?
Hi,
How do I hook into the Save User event in the backoffice?
I want to call an external webapi if the user has been disabled.
Thanks!
I suggest you use the ApplicationEventHandler.
Thanks David!
That looks perfect!
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.