Handler for logging user operations

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:

  1. Subclass org.camunda.bpm.engine.impl.identity.db.DbIdentityServiceProvider
  2. Override methods like #saveUser and do your thing
  3. Plug the custom identity service provider into the engine by setting the configuration property identityProviderSessionFactory to instance of org.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

2 Likes