
qk26f (qk26f) asked a question.
I'm using the Okta GlobalProect App. We need to have Okta send the email prefix with any periods removed back to the firewall as the username. Sending the string in lowercase would be ideal too.
For example if my okta username is Jason.Smith.39@gmail.com, we would like a string that will return "jasonsmith39" as the username from Okta to the GlobalProtect Palo Alto firewall.
I believe this should be done under the GlobalProtect App in the Okta dashboard on the "Sign On" tab of the application. I believe the custom string needs to be entered here?

Hi @qk26f (qk26f) , Thank you for reaching out to the Okta Community.
I used the following doc to help me with the Okta Expression Language functions:
https://developer.okta.com/docs/reference/okta-expression-language/#string-functions
The following syntax should help, but I recommend that you experiment with the functions in accordance with your specific needs.
String.replace(String.substringBefore(user.login, "@"), ".", "")
With this I got the following results: "user.name@domain.com" turned into "username"