Skip to end of metadata
Go to start of metadata

MidPoint 3.9 and later

Imagine that you want to append all user password values (as soon as they are changed) as individual records to a CSV file.

It is possible to configure a notification to do so:

The first part i.e. <customNotifier> translates a modelEvent (after filtering out non-user related events and events that ended in a failure) into a notification message containing username;password value pair. This is the line that should be written to CSV file.

The second part i.e. <customTransport> writes the line into data.csv file.

Notes:

  1. The event.focusPassword method is present only in midPoint 3.9 and later. But other parts of this mechanism are present in midPoint 3.6.1 already.
  2. There's a slight limitation of event.getFocusPassword() method: it cannot distinguish between "no change of password" and "password set to null value". A more elaborate analysis of model context would be needed if such a distinction was required.

 

  • No labels