# Join Group Button on Group Pages

**URL:** https://meta.discourse.org/t/join-group-button-on-group-pages/291220
**Category:** Support
**Tags:** groups
**Created:** [January 10, 2024, 7:58pm UTC](https://meta.discourse.org/t/join-group-button-on-group-pages/291220 "2024-01-10T19:58:41Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![Marc\_S](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/marc_s/32/312279_2.png) [@Marc\_S](https://meta.discourse.org/u/Marc_S)
#### Post date: [January 10, 2024, 7:58pm UTC](https://meta.discourse.org/t/join-group-button-on-group-pages/291220/1 "2024-01-10T19:58:42Z")

</div>

I’m trying to require users to join groups in order to post and reply. I did my research and have already configured the groupings and in each individual group, I’ve configured everything in the security section to not allow replies and posts for everyone and only for members. So that part is working.

However, it isn’t clear to users how or where to join the group. Is there a button that I can add, perhaps ‘Join Group’ that will allow them to join the group? Am i missing the button somewhere? I don’t see anything.

I technically can create a button and just link them to /g but that isn’t the best experience for users. Any insights and help would be appreciated!

---

<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: [January 10, 2024, 8:24pm UTC](https://meta.discourse.org/t/join-group-button-on-group-pages/291220/2 "2024-01-10T20:24:53Z")

</div>

Hi Marc

> [@Marc\_S](#):
>
> in order to post and reply

So everyone can see the category? Just not create/reply when not in the group? If this is the case, I think a workable solution would be this:

In the category settings, scroll down and find this

 ![image](https://global.discourse-cdn.com/meta/original/4X/0/3/b/03b3bcd05f877952d253209026c1879bde4f7608.png)

Then add something like this

`You must be part of the <a href="https://your-site-name/g/group-name-here">Group-name-here</a> group to create topics in this category`

This will display a small banner to users who are not in the group. Once they join it disappears.

---

<div class="post-metadata">

### Author: ![Marc\_S](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/marc_s/32/312279_2.png) [@Marc\_S](https://meta.discourse.org/u/Marc_S)
#### Post date: [January 10, 2024, 9:18pm UTC](https://meta.discourse.org/t/join-group-button-on-group-pages/291220/3 "2024-01-10T21:18:14Z")

</div>

Is there not a simple ‘+ Join Group’ button I can use? It seems like a pretty standard feature that should be available, no?

---

<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: [January 10, 2024, 9:34pm UTC](https://meta.discourse.org/t/join-group-button-on-group-pages/291220/4 "2024-01-10T21:34:29Z")

</div>

If you

> [@Marc\_S](#):
>
> I technically can create a button and just link them to /g

You could just link it to the group straight away and have the join button on the group.

 ![image](https://global.discourse-cdn.com/meta/original/4X/9/4/2/942bfc00c3280480830144a2e79d0d8e81e712d9.png)

To configure this go to the **Manage** tab in the group then **Membership** and check `Allow users to join the group freely`

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

---

<div class="post-metadata">

### Author: ![Marc\_S](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/marc_s/32/312279_2.png) [@Marc\_S](https://meta.discourse.org/u/Marc_S)
#### Post date: [January 12, 2024, 1:45am UTC](https://meta.discourse.org/t/join-group-button-on-group-pages/291220/5 "2024-01-12T01:45:36Z")

</div>

I can technically do this yes. However, that button will be fixed even if you are already a member of the group which can be confusing.

If for example you are already a member of Group A but you still see a button that says ‘+ Join Group’. I need a more dynamic solution. I find it hard to believe that there isn’t already a native solution to this built in Discourse.

Any other ideas?

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [January 12, 2024, 7:27am UTC](https://meta.discourse.org/t/join-group-button-on-group-pages/291220/6 "2024-01-12T07:27:40Z")

</div>

The button changes to ‘Leave’ if you’re already a member of the group, if that helps you out at all? (assuming you also have ‘Allow users to leave the group freely’ set. If not, the join button isn’t present if you are already a member of the group)

---

<div class="post-metadata">

### Author: ![Marc\_S](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/marc_s/32/312279_2.png) [@Marc\_S](https://meta.discourse.org/u/Marc_S)
#### Post date: [January 19, 2024, 4:51am UTC](https://meta.discourse.org/t/join-group-button-on-group-pages/291220/7 "2024-01-19T04:51:36Z")

</div>

This won’t work. I have over 30+ groups. One thing I’d like to do is add a button at the top of each Group to Join. I can add a static “Join” button that goes to the group page but that’s not the experience I am looking to do. I’d like users to join the group that they are on by simply pressing a button on the page without having to unnecessarily load the /g groups page. There’s just so many groups on that /g groups page that it is confusing. Unless there is a way to dynamically insert the button using handlebars or something, perhaps someone can help me with that?

---

<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: [January 20, 2024, 11:44pm UTC](https://meta.discourse.org/t/join-group-button-on-group-pages/291220/8 "2024-01-20T23:44:39Z")

</div>

As @ondrej mentioned

Here is M be in th category setting.

```plaintext
To participate in category you need to <a href="/g/Pimaxians/members">Apply</a>
```

Mine strips part of the HTTPS to just

“/g/Groupname/members”

This promp will submit a Join request to group owners. Just swap out Groupname with your groupname

---

<div class="post-metadata">

### Author: ![Marc\_S](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/marc_s/32/312279_2.png) [@Marc\_S](https://meta.discourse.org/u/Marc_S)
#### Post date: [February 2, 2024, 1:05pm UTC](https://meta.discourse.org/t/join-group-button-on-group-pages/291220/9 "2024-02-02T13:05:07Z")

</div>

This is a good workaround but I’d rather have the dynamic button that says ‘Join Group’ when a user isn’t part of the group or ‘Leave Group’ when they are. I wonder why this isn’t native to Discourse.

---

<div class="post-metadata">

### Author: ![Firepup650](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/firepup650/32/465200_2.png) [@Firepup650](https://meta.discourse.org/u/Firepup650)
#### Post date: [February 2, 2024, 2:11pm UTC](https://meta.discourse.org/t/join-group-button-on-group-pages/291220/10 "2024-02-02T14:11:34Z")

</div>

> [@Marc\_S](#):
>
> I wonder why this isn’t native to Discourse.

I’d assume that this isn’t a common use-case, and so it wasn’t seen as a needed core feature. I _think_ you could theoretically do something with [reverse engineering the discourse API](https://meta.discourse.org/t/reverse-engineer-the-discourse-api/20576), but I’m not sure.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [February 2, 2024, 2:46pm UTC](https://meta.discourse.org/t/join-group-button-on-group-pages/291220/11 "2024-02-02T14:46:38Z")

</div>

Just an FYI, but it looks like your Join Groups button may be misaligned on some pages:

 ![image](https://global.discourse-cdn.com/meta/original/4X/1/9/f/19f311f025e14b0894e68e1d61c1b95b501ec3f3.png)

---

<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: [February 3, 2024, 12:21am UTC](https://meta.discourse.org/t/join-group-button-on-group-pages/291220/12 "2024-02-03T00:21:59Z")

</div>

On your Group Page if your Group settings allow free to join public and also have leave group enabled. You should see something like this.

 ![Screenshot_20240202-202002](https://global.discourse-cdn.com/meta/original/4X/4/e/a/4ea780c6cecdea24a20884ba3403c765e461213e.jpeg)
