Continuing the discussion from Custom field in discourseconnect:
While site admins can create multiselect fields in Admin → Customize → User Fields in Discourse, at the moment it’s not possible to populate those fields with multiple values via a DiscourseConnect payload.
The plan is to add support for array params in the SSO payload like:
This almost works but is garbled by this line:
Array.to_s means it gets persisted as
['valueA', 'valueB'].to_s => "[\"valueA\", \"valueB\"]"
Restricting the persisted values to the existing options in the Discourse Admin screen is not necessary.