Event handler for user substitute

Hi,

I was wondering if there is a way to trigger an event handler or any similar mechanism when a user adds a user substitute.

My goal is to automatically set a property once the user substitute is added, in order to grant the user specific workflow transaction rights based on that property.

I've tried:

  • BeforeModifyUserAccount

  • AfterModifyUserAccount

None of these are triggered when a substitute is added.

I didn’t really want to go with a synchronous method that keeps checking who the substitutes are and updates the property, but is there any other way to do this?

Thank you.