How to add users to multiple groups using discourse connect?

I am trying to add users to multiple groups using discourse connect?


                username: email,
                name: 'Ninety',
                add_groups: "Healthcare_WO, Manufacturing"

I am sending the group details in add_groups but user is only added to Healthcare and not manufacturing? It is supposed to be comma separated as per the documentation.

Maybe try removing the space? You have a comma and a space, so when it’s split by comma, then second item will start with a space.

2 Likes