
IsaacB.81593 (Customer) asked a question.
I'm trying to map an Okta attribute value to Cornerstone. The attribute is "Organization." In Cornerstone, this attribute is an "object" type.
It appears that I can map a set of values via a JSON literal in Profile Editor, e.g., {"id":0,"name":"xxxx","typeId":2}:
But I want to do this with a stringSwitch expression, as in
String.stringSwitch(user.department, {default JSON},"accounting",{accounting JSON})
But I get "Error in evaluating expression" in Profile editor.
Is there a way to sent JSONs in the stringSwitch expression?
Thanks

Thanks Mihai. I found an alternate approach to setting the organization. Since we assign the app via group and each group is associated with a specified organization, we can set the organization value at group assignment while setting the profile mapping to "do not map:"