# Group Invitation Plugin

**URL:** https://meta.discourse.org/t/group-invitation-plugin/201534
**Category:** Plugin
**Created:** [August 24, 2021, 11:10am UTC](https://meta.discourse.org/t/group-invitation-plugin/201534 "2021-08-24T11:10:12Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![misaka4e21](https://avatars.discourse-cdn.com/v4/letter/m/c57346/32.png) [@misaka4e21](https://meta.discourse.org/u/misaka4e21)
#### Post date: [August 24, 2021, 11:10am UTC](https://meta.discourse.org/t/group-invitation-plugin/201534/1 "2021-08-24T11:10:12Z")

</div>

**Summary** : Allow users in a group to invite other users joining the group.

🔗 **GitHub** : [GitHub - hitorino/group-invitation: A Discourse plugin that allows you to invite another user into a group. · GitHub](https://github.com/hitorino/group-invitation)  
➡ **Install** : Follow the [plugin installation guide](https://meta.discourse.org/t/install-a-plugin/19157). Don’t forget to run `rake db:migrate` to create additional tables.

### Features

- Group members can invite users not in the group to join.
- Site admin can set minimum trust level for inviters and invitees.
- Automatic or manual approval.
  - In automatic approval mode, the invitee that meets the requirements will be added to the group, and a report containing the inviters list will be sent to group owners through private message.
  - In manual approval mode, a group-joining request will be generated on behalf of the eligible invitee, and a report containing the inviters list **and** a link to view the group request will be sent to group owners, so that they can approve or reject the invitee.

### Configuration

Setup invitation requirements such as minimum trust levels in site settings.

 ![image](https://global.discourse-cdn.com/meta/original/3X/6/4/6478ed599cf56426965f34d385540994d7c32d2a.png)

Create a group and go to http(s)://your-domain/g/(your-group-name)/manage/membership, turn on “allow inviting members”

 ![image](https://global.discourse-cdn.com/meta/original/3X/4/1/4176a8ec15f4e06205cf3b30efcd95d582cc05b7.png)

Save, and click “Invite user” on the top-right corner.

 ![image](https://global.discourse-cdn.com/meta/original/3X/9/6/9633cec48f5649d797150c4ae82f003cecff0a3e.png)

Invitations can be withdrawn by the inviter or the group owners. Group owners can go to  
http(s)://your-domain/group-invitaion/manage-invitations/(your-group-name)  
to see or withdraw invitations.

### CHANGELOG

### TODO

- Rate limiting.
- Implement invitation reason.

---

<div class="post-metadata">

### Author: ![Zup](https://avatars.discourse-cdn.com/v4/letter/z/c37758/32.png) [@Zup](https://meta.discourse.org/u/Zup)
#### Post date: [August 24, 2021, 8:19pm UTC](https://meta.discourse.org/t/group-invitation-plugin/201534/2 "2021-08-24T20:19:41Z")

</div>

This is perfect for my needs!

Is ‘Minimum inviter numbers’ the number of unique inviter accounts required to initiate an invite?

---

<div class="post-metadata">

### Author: ![Simon\_Manning](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon_manning/32/198596_2.png) [@Simon\_Manning](https://meta.discourse.org/u/Simon_Manning)
#### Post date: [August 24, 2021, 9:54pm UTC](https://meta.discourse.org/t/group-invitation-plugin/201534/3 "2021-08-24T21:54:53Z")

</div>

Looking at the code, I believe this is the minimum number of people who must initiate an invite for it to take effect. E.g. with the settings shown in the example screenshot, (the defaults) `Bob` and `Susan` must both invite `Fred` and the combined trust level of `Bob` and `Susan` must be 4 or higher.

If `Susan` is trust level 4, she would meet the requirement for the trust level on her own but the minimum number of inviters would not be met, so `Bob` would still need to invite `Fred` before it takes effect.

---

<div class="post-metadata">

### Author: ![Zup](https://avatars.discourse-cdn.com/v4/letter/z/c37758/32.png) [@Zup](https://meta.discourse.org/u/Zup)
#### Post date: [August 24, 2021, 9:56pm UTC](https://meta.discourse.org/t/group-invitation-plugin/201534/4 "2021-08-24T21:56:43Z")

</div>

All right, this is really great. 🙂

---

<div class="post-metadata">

### Author: ![Heliosurge](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/heliosurge/32/571810_2.png) [@Heliosurge](https://meta.discourse.org/u/Heliosurge)
#### Post date: [August 25, 2021, 12:47pm UTC](https://meta.discourse.org/t/group-invitation-plugin/201534/5 "2021-08-25T12:47:57Z")

</div>

This is a cool idea. If I might make a suggestion?

A good option would be to have a blacklist available to group owners in the event they need to remove a member for issues. With a message if someone tries to reinvite they see a notification “x user is banned; contact group owners”

---

<div class="post-metadata">

### Author: ![Simon\_Manning](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon_manning/32/198596_2.png) [@Simon\_Manning](https://meta.discourse.org/u/Simon_Manning)
#### Post date: [August 25, 2021, 1:25pm UTC](https://meta.discourse.org/t/group-invitation-plugin/201534/6 "2021-08-25T13:25:55Z")

</div>

This might also be useful for the blacklist to accept groups, such that members of entered groups can’t be invited - though probably not with the “banned” wording. This might be useful if you want to prevent users from inviting members of opposing teams in an eSports community, for example.

Preventing users from inviting staff to groups might also be a good site setting to add.

---

<div class="post-metadata">

### Author: ![Heliosurge](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/heliosurge/32/571810_2.png) [@Heliosurge](https://meta.discourse.org/u/Heliosurge)
#### Post date: [August 25, 2021, 1:51pm UTC](https://meta.discourse.org/t/group-invitation-plugin/201534/7 "2021-08-25T13:51:07Z")

</div>

Wording of course could be configurable. Having a blacklist that could use groups and individual users.

As they say with an idea like this the more feature rich will be more usable for wider audience.

---

<div class="post-metadata">

### Author: ![sunjam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sunjam/32/175682_2.png) [@sunjam](https://meta.discourse.org/u/sunjam)
#### Post date: [August 28, 2021, 3:25pm UTC](https://meta.discourse.org/t/group-invitation-plugin/201534/8 "2021-08-28T15:25:06Z")

</div>

One small thing I’d appreciate is giving _invitees_ a different default title than group owners. Or, giving invitees no title at all. afaik this is not currently possible.

example:  
Joe Blow - eSports Commentator – Owner  
Ivan McInvitee - eSports Enthusiast
