I’m looking to make a multi-valued attribute based on several isMemberOfGroupName() functions to provide custom output. Because of this, I can’t use the group attribute statement functionality. The closest I’ve been able to get is creating a new array, but I really don’t want an array - I want a multi-valued attribute… like below
I’ll include the SAML chunk that applies, maybe that’ll shed some light.
“gid” is an attribute statement we’re generating in the application that references the “appuser.gid” value. Appuser.gid is an array using the function:
I included both the attribute statement, and the group attribute statement for comparison. I’m not sure if it’s the Arrays.flatten() function that’s screwing with it, but I can’t really create an array with anything else that I can see.
What is your Okta Org name you are using? We have an opt-in feature that changes the way we process multi-value SAML attribute statements and might be what you are looking for.
For future reference, the Early Access feature flag is called “SAML_SUPPORT_ARRAY_ATTRIBUTES” which Okta support can enable. It serializes any UD Array attribute as a multi-value SAML attribute statement instead of as a CSV. We added a new Okta EL function to convert Array to CSV if you still need that functionality for an existing app.
Hello! I’m basically trying to do the same thing. I’ve asked Okta support to enable the “SAML_SUPPORT_ARRAY_ATTRIBUTES” and they say that they have, but I’m not sure how to get it to work. I’ve tried using Arrays.flatten(“a”, “b”) as the value of my attribute statement, but I just get the literal string Arrays.flatten("a", "b") as the saml2:AttributeValue, rather than two saml2:AttributeValues.
How can I verify that the flag has actually been turned on for my account?
What should I type into the Value field in the Attribute Statements section of my SAML app to get multiple AttributeValue fields in my SAML assertion?