
00ufqy4mxkCMrc2vn0h1.5318579510676252E12 (Optiv) asked a question.
I am looking to search the DN of an incoming user for a value, and populate an Okta attribute based on finding. Something like: String.stringContains(appuser.firstName, “dummy”) ? appuser.firstName : appuser.lastName
Has anyone successfully searched the string for a match in the profile editor?

Hmm. I've worked a little bit with it. So it sounds like you're looking for a value in the distinguished name of the active directory integration and if it does to output their first name, otherwise lastname. If that's the case, it appears to be working for me.
This is what I have:
String.stringContains(appuser.dn,"itsupport")?appuser.firstName:appuser.lastName
My DN contains the words "itsupport", so it outputs my first name.
This was done in my AD mapping. If you're trying to do it in another map you have to reference the application variable name, for example "active_directory".
Hopefully I'm not off base.
If I understand your question correctly, yes, I have done this. Have you tried this yourself and encountered any kind of issue?
Just in case it helps, here's a link to the documentation on the Okta Expression Language:
developer.okta.com/reference/okta_expression_language/