
MylesH.35657 (Customer) asked a question.
I have an application (Rocketlane) that supports SCIM provisioning. In my downstream application, I have roles for employees, and contractors. There are different roles for different geographies. For example: "Contractor India", and "Contractor EMEA".
When I assign a user to the SCIM application, it allows to me specify a role value at the time. However, I'm planning only group assignments.
I want to use an expression to set the Role value dynamically. When I go to Mappings, and click on the "Roles" attribute It allows me to select "Expression' as the attribute value. I want the value to be based on their title or membership in a specific group. Is this possible?
The closest I've come is this, but it returns NULL when I test with a member of that group.
isMemberOfGroup("00g16dd5my1vQIgBS1t8") ? ["Contractors"] : [""]

@MylesH.35657 (Customer) Bracketing [] does not work for arrays in Okta EL. You might need to use a function like what is mentioned in this article.
Give the following a shot:
Arrays.add(Arrays.toCsvString({}), isMemberOfGroup("00g16dd5my1vQIgBS1t8") ? "Contractors" : null)
Regards.
--
Help others in the community by liking or hitting Select as Best if this response helped you.
Collect them all. Learn a new skill and earn a new Okta Learning badge.
Just released: More Okta Community badges just added