Skip to main content

FULLNAME

This is used for the value of many target attributes (e.g., displayName on Active Directory):

iif( size($OTHER_NAME) > 0,
$FIRST_NAME[0] + " " + $OTHER_NAME[0] + " " + $LAST_NAME[0],
$FIRST_NAME[0] + " " + $LAST_NAME[0]
)

This first checks whether $OTHER_NAME has any values. If it does, then it composes a string such as “John Angus Doe”. If $OTHER_NAME does not have any values (the user has no middle name) then it composes a string such as “Bill Smith”.