<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
System Status
Announcements
Announcements
Search
Search
Select Language
0D54z00007eQWszCAGOkta Classic EngineAdministrationAnswered2022-05-14T00:01:30.000Z2022-05-13T19:23:55.000Z2022-05-14T00:01:30.000Z

CalvinL.13916 (Customer) asked a question.

Help with multiple inputs in attribute mapping expression

Can Okta only handle one expression for attribute mapping? Can someone tell me why my expression returns "error evaluating expression"?

 

We have a "level" attribute in our Okta profile that we'd like to manipulate before sending to the app. The expressions work individually but when I paste the whole thing, I get an error. Is there a way for me to join these expressions together with an operator?

 

(user.costCenter=="40-275" OR user.managerEmail=="john.doe@test.com") ? String.replace(user.level, "E1", "EA, IT - Level 4") : String.replace(user.level, "E1", "Individual Contributor - Level 5") :

(user.costCenter=="40-275" OR user.managerEmail=="john.doe@test.com") ? String.replace(user.level, "E2", "EA, IT - Level 4") : String.replace(user.level, "E2", "Individual Contributor - Level 5") or

(user.costCenter=="40-275" OR user.managerEmail=="john.doe@test.com") ? String.replace(user.level, "E3", "EA, IT - Level 4") : String.replace(user.level, "E3", "Individual Contributor - Level 5") or

(user.costCenter=="40-275" OR user.managerEmail=="john.doe@test.com") ? String.replace(user.level, "E4", "EA, IT - Level 4") : String.replace(user.level, "E4", "Individual Contributor - Level 5") or

(user.costCenter=="40-275" OR user.managerEmail=="john.doe@test.com") ? String.replace(user.level, "E5", "EA, IT - Level 4") : String.replace(user.level, "E5", "Individual Contributor - Level 5") or

(user.costCenter=="40-275" OR user.managerEmail=="john.doe@test.com") ? String.replace(user.level, "E6", "EA, IT - Level 4") : String.replace(user.level, "E6", "Individual Contributor - Level 5") or

(user.costCenter=="40-275" OR user.managerEmail=="john.doe@test.com") ? String.replace(user.level, "E7", "EA, IT - Level 4") : String.replace(user.level, "E7", "Individual Contributor - Level 5") or

(user.costCenter=="40-275" OR user.managerEmail=="john.doe@test.com") ? String.replace(user.level, "E8", "EA, IT - Level 4") : String.replace(user.level, "E8", "Individual Contributor - Level 5") or

(user.costCenter=="40-275" OR user.managerEmail=="john.doe@test.com") ? String.replace(user.level, "E9", "EA, IT - Level 4") : String.replace(user.level, "E9", "Individual Contributor - Level 5") or

String.replace(user.level, "M4", "Manager - Level 3") or

String.replace(user.level, "M5", "Manager - Level 3") or

String.replace(user.level, "M6", "Manager - Level 3") or

String.replace(user.level, "M7", "Director - Level 2") or

String.replace(user.level, "M8", "Director - Level 2") or

String.replace(user.level, "M9", "Non-Lead VP - Level 1") or

String.replace(user.level, "M11", "Platform Lead")


This question is closed.
Loading
Help with multiple inputs in attribute mapping expression
Okta Support Agent (Beta)

Terms of Service

Hello! I'm the Okta Support Agent (Beta), your go-to resource for questions about Okta products. Please remember for your security and privacy, do not share any Personally Identifiable Information (PII) such as passwords, IP addresses, or other details with me.

Okta Privacy Policy and Terms of Service apply