
DarylS.93577 (Customer) asked a question.
Im trying to bring our managers into Okta in a readable format to push to other apps. They are imported as a DN. I have found this query that works on our one domain that uses firstname.lastname as the username format:
(appuser.managerDn == "" OR appuser.managerDn == null) ? null :
String.toLowerCase(substring(String.substringBefore(String.substringAfter((substring(user.firstName, 0, 1) + user.lastName), "="), ","), " ", ".")) + "@domain.com"
But for our other domain, I need to pull the first initial and the last name. I think this should get me close, but Im unable to figure out how to put it all together:
substring(user.firstName, 0, 1) + user.lastName

Hello!
(appuser.FirstName[0] + appuser.LastName + '@domain.com') should work for you. If you want it all in lowercase you want to add String.toLowerCase. Hope that helps!