Add users to a specific group via API

Hi,

I want to add the users to a specific group through create user API. Currently, we don’t have an option to pass the group name/ id.

Can someone please suggest me how can I add the users to specific group?

Thanks
Kumar

Hello,

It’s not on the user section that you specify the group.
You need to specify the members at group level.

https://docs.discourse.org/#operation/addGroupMembers

2 Likes

I got it. Thank you so much.

I find that the best way to figure out the API is How to reverse engineer the Discourse API

2 Likes

A post was merged into an existing topic: Can I duplicate a group?