# Can users create private groups and invite other members to join?

**URL:** https://meta.discourse.org/t/can-users-create-private-groups-and-invite-other-members-to-join/159336
**Category:** Feature
**Created:** [July 30, 2020, 7:13pm UTC](https://meta.discourse.org/t/can-users-create-private-groups-and-invite-other-members-to-join/159336 "2020-07-30T19:13:13Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![ankit](https://avatars.discourse-cdn.com/v4/letter/a/cab0a1/32.png) [@ankit](https://meta.discourse.org/u/ankit)
#### Post date: [July 30, 2020, 7:13pm UTC](https://meta.discourse.org/t/can-users-create-private-groups-and-invite-other-members-to-join/159336/1 "2020-07-30T19:13:13Z")

</div>

Hi All,

I checked out couple of topics and have some say only admins can create while others suggest a way to make it possible. Also couple of these posts are pretty old so thought of reposting this question.

My requirement is for any user to be able create private groups and invite their friends (existing or new) to join this group. This group shouldn’t be visible to only the users in this group.

---

<div class="post-metadata">

### Author: ![IAmGav](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/iamgav/32/235598_2.png) [@IAmGav](https://meta.discourse.org/u/IAmGav)
#### Post date: [July 30, 2020, 7:50pm UTC](https://meta.discourse.org/t/can-users-create-private-groups-and-invite-other-members-to-join/159336/2 "2020-07-30T19:50:10Z")

</div>

Only admins can create groups

---

<div class="post-metadata">

### Author: ![ondrej](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ondrej/32/198804_2.png) [@ondrej](https://meta.discourse.org/u/ondrej)
#### Post date: [July 30, 2020, 8:51pm UTC](https://meta.discourse.org/t/can-users-create-private-groups-and-invite-other-members-to-join/159336/3 "2020-07-30T20:51:53Z")

</div>

Hello,

Users may utilise the function of messaging. The user who started the message can add or remove members at will.

---

<div class="post-metadata">

### Author: ![ankit](https://avatars.discourse-cdn.com/v4/letter/a/cab0a1/32.png) [@ankit](https://meta.discourse.org/u/ankit)
#### Post date: [July 31, 2020, 12:28pm UTC](https://meta.discourse.org/t/can-users-create-private-groups-and-invite-other-members-to-join/159336/4 "2020-07-31T12:28:52Z")

</div>

Okay. Is it possible for us to create these groups via APIs then for the users ?

---

<div class="post-metadata">

### Author: ![blake](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blake/32/157322_2.png) [@blake](https://meta.discourse.org/u/blake)
#### Post date: [August 3, 2020, 2:29pm UTC](https://meta.discourse.org/t/can-users-create-private-groups-and-invite-other-members-to-join/159336/5 "2020-08-03T14:29:23Z")

</div>

Yes you can create groups via the API. You will have to use an API key that is tied to a user with admin privileges though.

---

<div class="post-metadata">

### Author: ![Vik](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vik/32/187438_2.png) [@Vik](https://meta.discourse.org/u/Vik)
#### Post date: [August 4, 2020, 10:17am UTC](https://meta.discourse.org/t/can-users-create-private-groups-and-invite-other-members-to-join/159336/6 "2020-08-04T10:17:07Z")

</div>

can you explain, how you are going to make groups using api? which api will you be using?

---

<div class="post-metadata">

### Author: ![blake](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blake/32/157322_2.png) [@blake](https://meta.discourse.org/u/blake)
#### Post date: [August 4, 2020, 1:39pm UTC](https://meta.discourse.org/t/can-users-create-private-groups-and-invite-other-members-to-join/159336/7 "2020-08-04T13:39:08Z")

</div>

You can use the [`/admin/groups`](https://docs.discourse.org/#tag/Groups/paths/~1admin~1groups/post) endpoint. You can also use the discourse\_api gem if you are using ruby to make the api requests.
