MidPoint Expression Language Examples

Last modified 22 Jul 2026 05:50 UTC
MidPoint Expression Language feature
This page describes configuration of MidPoint Expression Language midPoint feature. Please see the feature page for more details.

MidPoint Expression Language (MEL) is an expression language, designed to support customization of midPoint functionality in an easy-to-use and secure way. This page lists examples of MEL usage in practical scenarios.

Assignments

Role OIDs

focus.assignment.map(a, a.isTargetRole(), a.targetRef.oid)
focus.assignment.map(a, a.isTarget('RoleType'), a.targetRef.oid)
focus.assignment.map(a, a.targetType() == 'RoleType', a.targetRef.oid)

Returns list of OIDs of all role assignments of the focus.

Relations

focus.assignment.map(a, a.hasOwnerRelation(), a.targetRef.oid)
focus.assignment.map(a, a.hasRelation('owner'), a.targetRef.oid)
focus.assignment.map(a, a.targetRelation() == 'owner', a.targetRef.oid)

Returns list of OIDs of all assignments of the focus that have owner relation.

Was this page helpful?
YES NO
Thanks for your feedback