Skip to end of metadata
Go to start of metadata

For a basic introduction to notifications, please see this general overview.

Here we describe detailed information pertaining to configuring the notifications from the point of view of system administrator.

Configuring transports

Currently, there are a couple of transports available: mail, sms, custom and file.

They have to be configured to work properly. For the time being, here we show a sample configuration, hopefully self-explanatory enough:

Ensure your SMTP server will accept multiple connection (message rate limit) as midPoint notifications are being sent as the objects are created, e.g. one user can have 15 accounts or one organization 40 entitlements created at the same time. This is especially important for Microsoft Exchange, where the default limit seems to be very low (5 connections per minute).

The SMS transport implementation is very simple for now; it even does not allow for specifying username and password for http connection. If necessary, it can be augmented in com.evolveum.midpoint.notifications.transports.SimpleSmsTransport class (or you can add another class, and register it under transport name other than "sms").

Also please note that SSL-related settings for mail messaging are currently experimental (e.g. there is no support for setting certificate validation-related properties; default behavior of javax.mail implementation is used). You may also need to store the mail server self-signed SSL certificate in your Java "cacerts" keystore.

For Microsoft Exchange, we've successfully tested the configuration with port=587, transportSecurity=starttlsRequired and a valid username/password combination.

"File" transport

This transport can be used to diagnose notifications. It works in a similar way as "redirectToFile" option, but:

  1. can be used when you want to send messages both via mail/sms and log them into a file,
  2. can be used selectively for some classes of notifications, and not for others.

An example:

"File" transport is available since 3.6.1.

Configuring notifiers


It can accept any event and produce any notification(s). All is directed by parameters and expressions, as described in the following table. Please note that the following parameters can be used in any kind of notifier.

Parameter nameTypeCardinalityMeaning
name (attribute)String0..1Name of the notifier - just a help to the administrator in order to increase readability of the configuration.
descriptionString0..1Description of the notifier - also just a help to the admin.

Recipient(s) that should get the notifications. (TODO: Exact form is to be determined yet, but here may be mail addresses, phone numbers, etc. We need to think how to distinguish these kinds of destinations.) Default: mail address of the requestee - user that is being dealt with by repository object change or within a workflow; or account owner.

subjectExpressionExpressionType0..1How to construct the subject of the message that is to be sent.

Simpler alternative to subjectExpression: the subject itself will be constructed by the notifier (applicable to concrete kinds of notifiers, like e.g. userPasswordNotifier), but it will be prefixed by value specified here.

bodyExpressionExpressionType0..1How to construct the body (text) of the message that is to be sent.

Whether to send a notification when only auxiliary attributes (namely: validityStatus, validityChangeTimestamp, effectiveStatus, disableTimestamp, modifyChannel, modifyTimestamp, modifierRef and maybe others) are modified. Default value: false. This setting also influences the list of modifications that is shown within the notification when using simpleUserNotifier and simplePasswordNotifier - if set to false, modifications of auxiliary attributes are not listed among account/user modifications.

showModifiedValuesBoolean0..1Whether to show modified values (or only names of changed attributes). Default: true. (NOT IMPLEMENTED YET. THE NAME MIGHT CHANGE.) Applies to concrete notifiers, not to the general one.
showTechnicalInformationBoolean0..1Whether to show technical information (e.g. model context or account operation details) in the notification. Applies to concrete notifiers, not to the general one.
transportString0..NTo what transport(s) should the message be sent.

An example:



Sends out a notification about the change of a user. It has no special parameters in addition to parameters of a general notifier.


Sends out a notification about the change of a resource object.It has one parameter:

Parameter nameTypeCardinalityDescription

Whether to send a notification when only auxiliary attributes related to synchronization situation (synchronizationSituationDescription, synchronizationSituation) are modified. Default: false.

userPasswordNotifier, accountPasswordNotifier

Send a notification when a user/account password is generated or changed. No special parameters.


Send a notification when a process instance or work item is started or completed. No special parameters.

Configuring filters

category filter

Passes events that are of one of the specified categories. There are the following categories available:

Category nameExpressionDescription
userEventevent.isUserRelated()Event connected to a user object in repository.
resourceObjectEventevent.isAccountRelated() (TODO: change this in code and in docs)Event connected to an object on a resource.
workItemEventevent.isWorkItemRelated()Start/completion of a work item.
workflowProcessEventevent.isWorkflowProcessRelated()Start/completion of a workflow process instance.
workflowEventevent.isWorkflowRelated()workItemEvent or workflowProcessEvent

(Expressions are used in scripts connected to event processing, see below.)

An example:

status filter

Passes events that can be described by one of specified status descriptions. This has a slightly different meaning depending on the event category:

NameExpressionMeaning for user eventsMeaning for account eventsMeaning for workflow events****
successevent.isSuccess()All modifications were carried out successfully*.

The operation was successful.

The request was approved.
alsoSuccessevent.isAlsoSuccess()At least one modification was carried out successfully*.
onlyFailureevent.isOnlyFailure()All modifications failed**.The operation was unsuccessful.The request was denied.
failureevent.isFailure()At least one modification failed**.
inProgressevent.isInProgress()At least one modification is in progress***.The operation is in progress.The result of request is not known.


(*) The result is either SUCCESS, WARNING, or NOT_APPLICABLE.


(***) The result is IN_PROGRESS.

Please note that we take into account only user (i.e. focus) modifications, not modifications of user's accounts.

(****) Alternatively, it is possible to use the following expressions for workflow events: event.isApproved(), event.isRejected(), event.isResultKnown().

operation filter

Filters events based on operation that was executed (or attempted to execute).

NameExpressionDescription for user and account events.Description for workflow events.
addevent.isAdd()User/account is created.Work item or process instance is started.
modifyevent.isModify()User/account is modified.N/A
deleteevent.isDelete()User/account is deleted.Work item or process instance has been competed.

expression filter

Passes events based on arbitrary expression. Some examples:


Any expressions supported by midPoint can be used.

Variables that are available are:

NameTypeDescription event that is being processed.

The user who requested the operation (if known).

requesteeObjectTypeThe object (typically a user) that is modified by the operation, or the owner of an account that is modified by the operation (if known).
assigneeUserTypeThe user who is assigned the work item (only for WorkItemEvent).
transportNameStringName of transport (e.g. "mail", "sms", etc.). Available in expressions for getting recipient(s), message subject and body. Not available in expressionFilters.

Configuring Office365

You need to put certificate to midPoint keystore, please see this. You can download cert over:

openssl s_client -connect -starttls smtp

Example config:

<password> <clearValue>password</clearValue> </password>
<!-- <redirectToFile>mail-notifications.log</redirectToFile> -->
  • No labels