Hi @milunas,
User/group changes are not forwarded as history events to history handlers. I doubt there is a straightforward solution to this. Here’s the rough way how to build this with internal API:
- Subclass
org.camunda.bpm.engine.impl.identity.db.DbIdentityServiceProvider
- Override methods like
#saveUser
and do your thing - Plug the custom identity service provider into the engine by setting the configuration property
identityProviderSessionFactory
to instance oforg.camunda.bpm.engine.impl.persistence.GenericManagerFactory
like here for the default factory: https://github.com/camunda/camunda-bpm-platform/blob/7.10.0-alpha5/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/ProcessEngineConfigurationImpl.java#L1443
Cheers,
Thorben