
0eh4p (0eh4p) asked a question.
Hello,
We receive the nickname, prefix and birthname of an employee from our HR-system, which is the source for the Okta identities. When an employee has a partner, the prefix and the partner birthname is also provided. And a field which indicates how the employee wants to be addressed as name. They have 4 options:
- BirthName
- Partner BirthName - BirthName
- Partner BirthName
- BirthName - Partner BirthName
In Okta I want to compose the prefered name, but sometimes the names in the source have trailing spaces (and sometimes also heading spaces). How can I remove those spaces? I know there is function String.RemoveSpaces, but this also removes the spaces between double nicknames like "Bob John".
Thanks in advance
Kind regards, Eric

Hello Eric,
In this case, it might be best to look at how this could be done through workflows instead of an expression language.
The expression language would have to take into account so many variables and using workflows we would be able to populate the values into a workflows table then massage the data as needed and output when done.
Still would have to look at how to handle special situations where the user is deciding preferred name or what unique value to key off of.
I would recommend opening a Support case and this may also involve Professional Services if the workflow use case and requirements are too demanding for Support to work through.
I hope this helps.
Michael Hendrickson
Senior Tier 2 Technical Support Engineer
Okta Global Customer Care