This code repository contains a sample maven project that demonstrates how to write a custom user operation event listener for WSO2 products.
More information on [1].
[1] http://tharindue.blogspot.com/2016/08/user-operation-event-listener-in-wso2.html