
xeis3 (xeis3) asked a question.
For a mapping to an app I want to append the middle name and the lastname, but only if the middle name is not empty.
But I keep getting the error: Invalid expression syntax
What is wrong with:
(String.len(user.middleName) == 0 ? (user.lastName) : (user.middleName + " " + user.lastName)

Just found it myself; no error with:
user.middleName != "" ? (user.middleName + " " + user.lastName) : (user.lastName)
Correction, it should be
user.middleName != null ? (user.middleName + " " + user.lastName) : (user.lastName)
Now I got my mapping right, but how can I let Okta show users with their middle names?
(Like in the Directory, and any other person fields.)