# Allow groups to be invited to topics

**URL:** https://meta.discourse.org/t/allow-groups-to-be-invited-to-topics/73954
**Category:** Feature
**Created:** [November 12, 2017, 11:34pm UTC](https://meta.discourse.org/t/allow-groups-to-be-invited-to-topics/73954 "2017-11-12T23:34:58Z")
**Posts on this page:** 16
**Page:** 1

<div class="post-metadata">

### Author: ![HAWK](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hawk/32/86627_2.png) [@HAWK](https://meta.discourse.org/u/HAWK)
#### Post date: [November 12, 2017, 11:34pm UTC](https://meta.discourse.org/t/allow-groups-to-be-invited-to-topics/73954/1 "2017-11-12T23:34:58Z")

</div>

Rate limiting is blocking group invitations to topics.

This seems counter-intuitive. Ideally this should be fixed but if not, is there a work-around?

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

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [November 13, 2017, 12:14am UTC](https://meta.discourse.org/t/allow-groups-to-be-invited-to-topics/73954/2 "2017-11-13T00:14:28Z")

</div>

Is this something @techapj could look at? I am not clear exactly what is being reported, can you give repro steps?

---

<div class="post-metadata">

### Author: ![HAWK](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hawk/32/86627_2.png) [@HAWK](https://meta.discourse.org/u/HAWK)
#### Post date: [November 13, 2017, 12:17am UTC](https://meta.discourse.org/t/allow-groups-to-be-invited-to-topics/73954/3 "2017-11-13T00:17:26Z")

</div>

Yep yep.

Create a group (my example group contains 22 members).  
Click Invite on a topic. Invite the group to the topic.

You can’t because of the rate limiting error above.

This is Discourse 1.8.10

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [November 13, 2017, 12:22am UTC](https://meta.discourse.org/t/allow-groups-to-be-invited-to-topics/73954/4 "2017-11-13T00:22:23Z")

</div>

I’m assuming that is for an admin account? If so, that should be a bug since rate limits do not apply to admins.

---

<div class="post-metadata">

### Author: ![HAWK](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hawk/32/86627_2.png) [@HAWK](https://meta.discourse.org/u/HAWK)
#### Post date: [November 13, 2017, 12:23am UTC](https://meta.discourse.org/t/allow-groups-to-be-invited-to-topics/73954/5 "2017-11-13T00:23:52Z")

</div>

Correct – it’s an admin account.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [December 10, 2017, 10:21pm UTC](https://meta.discourse.org/t/allow-groups-to-be-invited-to-topics/73954/6 "2017-12-10T22:21:02Z")

</div>

Note, removed #starter-task from here, anything that involves fiddling with rate limiting code can get very hairy.

---

<div class="post-metadata">

### Author: ![xrav3nz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/xrav3nz/32/76894_2.png) [@xrav3nz](https://meta.discourse.org/u/xrav3nz)
#### Post date: [January 24, 2018, 11:36pm UTC](https://meta.discourse.org/t/allow-groups-to-be-invited-to-topics/73954/7 "2018-01-24T23:36:34Z")

</div>

Interestingly enough, this is not due to rate limiting at all: the `invites are rate limited` message [is hardcoded](https://github.com/discourse/discourse/blob/dc9723904045a5cf1a3d5f55e34fb582abe73214/config/locales/client.en.yml#L1808) and will be shown regardless.

* * *

The real cause - **groups can only be invited to private messages** :

> <https://github.com/discourse/discourse/blob/dc9723904045a5cf1a3d5f55e34fb582abe73214/app/controllers/topics_controller.rb#L469-L475>

Do we want to either:

1. Disable being able to select a group altogether
2. Allow groups to be invited to topics

---

<div class="post-metadata">

### Author: ![HAWK](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hawk/32/86627_2.png) [@HAWK](https://meta.discourse.org/u/HAWK)
#### Post date: [January 24, 2018, 11:50pm UTC](https://meta.discourse.org/t/allow-groups-to-be-invited-to-topics/73954/8 "2018-01-24T23:50:11Z")

</div>

> [@xrav3nz](#):
>
> Allow groups to be invited to topics

This. Inviting groups to topics is a core workflow for many community managers.

---

<div class="post-metadata">

### Author: ![maja](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/maja/32/129533_2.png) [@maja](https://meta.discourse.org/u/maja)
#### Post date: [February 7, 2018, 7:21am UTC](https://meta.discourse.org/t/allow-groups-to-be-invited-to-topics/73954/9 "2018-02-07T07:21:33Z")

</div>

Hey @xrav3nz, are you working on this or would still like to? Just want to make sure because I was thinking of taking this up.

---

<div class="post-metadata">

### Author: ![xrav3nz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/xrav3nz/32/76894_2.png) [@xrav3nz](https://meta.discourse.org/u/xrav3nz)
#### Post date: [February 7, 2018, 1:20pm UTC](https://meta.discourse.org/t/allow-groups-to-be-invited-to-topics/73954/10 "2018-02-07T13:20:52Z")

</div>

👋 have been a bit inactive, but yeah I’m working on this. Thanks for checking with me.

---

<div class="post-metadata">

### Author: ![xrav3nz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/xrav3nz/32/76894_2.png) [@xrav3nz](https://meta.discourse.org/u/xrav3nz)
#### Post date: [February 15, 2018, 5:12am UTC](https://meta.discourse.org/t/allow-groups-to-be-invited-to-topics/73954/11 "2018-02-15T05:12:53Z")

</div>

Here is the PR 😉

[https://github.com/discourse/discourse/pull/5597](https://github.com/discourse/discourse/pull/5597)

I hope I didn’t miss anything…

* * *

[https://global.discourse-cdn.com/meta/original/3X/8/6/86ad7d6443aa51311cbf64fbb305107f693b04e7.mp4](https://global.discourse-cdn.com/meta/original/3X/8/6/86ad7d6443aa51311cbf64fbb305107f693b04e7.mp4)

(sorry for the poor video quality, shouldn’t have saved as 480p…)

---

<div class="post-metadata">

### Author: ![HAWK](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hawk/32/86627_2.png) [@HAWK](https://meta.discourse.org/u/HAWK)
#### Post date: [February 18, 2018, 10:14pm UTC](https://meta.discourse.org/t/allow-groups-to-be-invited-to-topics/73954/12 "2018-02-18T22:14:54Z")

</div>



---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [February 22, 2018, 7:50am UTC](https://meta.discourse.org/t/allow-groups-to-be-invited-to-topics/73954/13 "2018-02-22T07:50:04Z")

</div>



---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [February 22, 2018, 8:05am UTC](https://meta.discourse.org/t/allow-groups-to-be-invited-to-topics/73954/14 "2018-02-22T08:05:58Z")

</div>

Updated the title to reflect that this is a feature request as we’ve never allowed groups to be invited into public topics before. In fact, being able to type a group name in the invite modal of a public topic is actually a bug.

@HAWK Would mentioning a group work for your use case? I’m asking because inviting group in the context of a private message is basically to give the group members access to the private message. The only access control methods we have for public topics are at the category level and I’m not sure if it would be easy to bypass that with invites at the moment.

---

<div class="post-metadata">

### Author: ![HAWK](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hawk/32/86627_2.png) [@HAWK](https://meta.discourse.org/u/HAWK)
#### Post date: [February 22, 2018, 5:55pm UTC](https://meta.discourse.org/t/allow-groups-to-be-invited-to-topics/73954/15 "2018-02-22T17:55:56Z")

</div>

> [@tgxworld](#):
>
> Would mentioning a group work for your use case?

It’s not elegant and creates noise but yeah, technically it works so not a show stopper.

---

<div class="post-metadata">

### Author: ![outofthebox](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/outofthebox/32/83708_2.png) [@outofthebox](https://meta.discourse.org/u/outofthebox)
#### Post date: [October 9, 2018, 7:09pm UTC](https://meta.discourse.org/t/allow-groups-to-be-invited-to-topics/73954/16 "2018-10-09T19:09:35Z")

</div>

It would be elegant to be able to invite groups to Topics.
