
User16466979768222858263 (Customer) asked a question.
Hello,
I have an application and I have added an attribute in Profile Editor with a list of enumerated values.
I would like to add a default value of null, but it doesnt seem to work.
I cant save it with an empty value, and any regex I put there gets accepted as as literal String value
is there any way to set a null value?
Example of what i see in the logs when it sends this to application
"authorityProfile":"String.stringSwitch(\"This is a test\", null, \"key1\", \"value1\")"
Thanks!

Hi @User16466979768222858263 (Customer) Thank you for reaching out to the Okta Community!
I'm not finding any indication that null is supported as part of enumeration values in the SAML assertion.
You can send an empty string by using "" (double quotes, no space in between), for example:
"(\"This is a test\", "", \"key1\", \"value1\")"
OR
null as a result of a conditional expression, for example:
user.attribute == "this is a test" ? "add desired value" : null
So if the user.attribute did not match the value THEN the output would be null.
Referenced the Okta Expression Language guide:
https://developer.okta.com/docs/reference/okta-expression-language/
This is the closest thing that I could find with tangential information which does not really fit your use case, but it does reference some useful information.
https://support.okta.com/help/s/question/0D51Y000069Udk6SAC/how-can-i-print-multivalued-attributes-via-attribute-statements-in-saml-response?language=en_US
Hope this helps!
Hi Mihai,
It appears that the enumerated list does not support conditional expressions
If you enter user.attribute == "this is a test" ? "add desired value" : null then it will take that as the string value you want to pass, and not parse it as an expression