How to change attribute values to array list comma separated

Greetings everyone!!

I have a requirement to change the assertion values to array list with comma separated. I enabled the SAML_SUPPORT_ARRAY_ATTRIBUTES flag however not sure how do I configure it to make it work.

I need below format

FROM:

   <saml2:Attribute Name="role" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified">
     <saml2:AttributeValue
         xmlns:xs="http://www.w3.org/2001/XMLSchema"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">OKTA_MYAPP_Internal_BusinessAdmin
     </saml2:AttributeValue>
     <saml2:AttributeValue
         xmlns:xs="http://www.w3.org/2001/XMLSchema"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">OKTA_MYAPP_Eastern_Field Supervisor
     </saml2:AttributeValue>
     <saml2:AttributeValue
         xmlns:xs="http://www.w3.org/2001/XMLSchema"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">OKTA_MYAPP_Internal_SystemAdmin
     </saml2:AttributeValue>
 </saml2:Attribute>

TO:

<saml2:Attribute Name="role" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified">
    <saml2:AttributeValue 
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
	xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">OKTA_MYAPP_Internal_BusinessAdmin,OKTA_MYAPP_Eastern_Field Supervisor,OKTA_MYAPP_Internal_SystemAdmin
	</saml2:AttributeValue>
</saml2:Attribute>

Please help.

Is anyone aware of this then please suggest!