We have a requirement to create users in a third part tool that we are integrating with. The user needs to be created as soon as a new JBoss portal user is created and is assigned a certain role. In order to do this, I am extending the core-identity class org.jboss.portal.core.identity.ui.actions.CreateUserAction.register(). I am calling my custom class that creates a user in the third party tool just after the registrationService.registerUser statement.
Just wanted to make sure if this is the correct approach and if it is ok to extend CreateUserAction in the above way? Please advise.