Convert profile attribute csv to multi-value SCIM attribute

Hey Everyone,

We currently have a profile attribute which contains roles as a CSV, we need to convert this to SCIM multi-value attribute.

The CSV is not a fixed length.

Example:

1234-ABC,1234-DEF

into

roles: [
    {
        "type": "1234-ABC",
        "value": "1234-ABC"
    },
    {
        "type": "1234-DEF",
        "value": "1234-DEF"
    }
]