# Add users to a specific group via API

**URL:** https://meta.discourse.org/t/add-users-to-a-specific-group-via-api/213278
**Category:** Development
**Created:** [December 28, 2021, 11:10am UTC](https://meta.discourse.org/t/add-users-to-a-specific-group-via-api/213278 "2021-12-28T11:10:24Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Kumar\_Karuppaiah](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kumar_karuppaiah/32/243669_2.png) [@Kumar\_Karuppaiah](https://meta.discourse.org/u/Kumar_Karuppaiah)
#### Post date: [December 28, 2021, 11:10am UTC](https://meta.discourse.org/t/add-users-to-a-specific-group-via-api/213278/1 "2021-12-28T11:10:24Z")

</div>

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.

 ![image](https://global.discourse-cdn.com/meta/original/3X/3/a/3a669ad1d24bf18f09585c7c1869e28a2a5d3fc2.png)

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

Thanks  
Kumar

---

<div class="post-metadata">

### Author: ![gde](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gde/32/481170_2.png) [@gde](https://meta.discourse.org/u/gde)
#### Post date: [December 28, 2021, 1:14pm UTC](https://meta.discourse.org/t/add-users-to-a-specific-group-via-api/213278/2 "2021-12-28T13:14:10Z")

</div>

Hello,

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

> **[Discourse API Docs](https://docs.discourse.org/#operation/addGroupMembers)**

---

<div class="post-metadata">

### Author: ![Kumar\_Karuppaiah](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kumar_karuppaiah/32/243669_2.png) [@Kumar\_Karuppaiah](https://meta.discourse.org/u/Kumar_Karuppaiah)
#### Post date: [December 28, 2021, 2:11pm UTC](https://meta.discourse.org/t/add-users-to-a-specific-group-via-api/213278/3 "2021-12-28T14:11:56Z")

</div>

I got it. Thank you so much.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [December 30, 2021, 12:50pm UTC](https://meta.discourse.org/t/add-users-to-a-specific-group-via-api/213278/4 "2021-12-30T12:50:41Z")

</div>

I find that the best way to figure out the API is [How to reverse engineer the Discourse API](https://meta.discourse.org/t/how-to-reverse-engineer-the-discourse-api/20576)

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [October 13, 2024, 2:14pm UTC](https://meta.discourse.org/t/add-users-to-a-specific-group-via-api/213278/5 "2024-10-13T14:14:04Z")

</div>

A post was merged into an existing topic: [Can I duplicate a group?](https://meta.discourse.org/t/can-i-duplicate-a-group/330649/2)
