Include claim only if it has value - User claim evaluation failure error

Hello,

I created a custom user profile field and this is not mandaoty for all users. I am include this in list of claims as shown below. I see this claim when it has value, but I see “User claim evaluation failure” error in the system log.

Please let me know if I am missing anything.

Thanks for your time!

The User claim evaluation failure is likely just a warning message since Okta is not expecting null values. A potential workaround is to add a check to the expression such as (user.empId != null) ? user.empId : ''

1 Like

Thank you for the clarification. These failures/warnings are counted as failed logins on the dashboard and that is creating the confusion.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.