I am trying to perform certain action on user save event (Transaction committed phase) using tridion event system. This is working fine. I am surprised to see that the same user save event is getting triggered if I try to publish a component or a page. When i checked the saveeventargs, it showed 0 detected changes.
Why is User Save Event getting invoked while publishing using the publish window? If the publishing is performed by a Core Service call, it doesn't trigger the User Save event.
this.EventSystem.SubscribeAsync<User, SaveEventArgs>(this.OnUserCreate, EventPhases.TransactionCommitted);
private void OnUserCreate(User user, SaveEventArgs e, EventPhases phase)
//code to perform certain action on user create