Groovy Expressions

Last modified 15 Oct 2021 23:13 +02:00
Table of Contents

Groovy is a supported expression language in midPoint. Its language URL is:


User name

Following code returns a name property of a user. It is using groovy safe dereference operator (?.) to make sure this code works as expected even if user is null. User can be null is some situations, such as when evaluating outbound expression for a deleted user. Therefore the use of safe dereference operator is advised in almost all situations.


Create fullName

user.getGivenName() + " " + user.getFamilyName();
Was this page helpful?
Thanks for your feedback