# Short code to insert Join/Leave group button into a post

**URL:** https://meta.discourse.org/t/short-code-to-insert-join-leave-group-button-into-a-post/63673
**Category:** Feature
**Tags:** groups
**Created:** [May 31, 2017, 4:42pm UTC](https://meta.discourse.org/t/short-code-to-insert-join-leave-group-button-into-a-post/63673 "2017-05-31T16:42:45Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [June 1, 2017, 8:13am UTC](https://meta.discourse.org/t/short-code-to-insert-join-leave-group-button-into-a-post/63673/5 "2017-06-01T08:13:33Z")

</div>

> [@codinghorror](#):
>
> invites work to add existing users to a group

Currently the only way to add existing user to a group via invite is by using Invite Link (prepared via Invite Token), more details here:

> [@Generating lots of Invite Tokens](https://meta.discourse.org/t/generating-lots-of-invite-links/17563):
>
> warning This plugin is deprecated in favour of our core invite system. Summary: Generate multiple invite tokens link GitHub: [https://github.com/discourse/discourse-invite-tokens](https://github.com/discourse/discourse-invite-tokens)arrow_right Install: Follow the [plugin installation guide](https://meta.discourse.org/t/install-a-plugin/19157). Configuration Enable plugin After installing plugin enable site setting invite tokens enabled. Clone Discourse API Gem If you already have Git and Ruby installed on your system, you can install Discourse API by running following command from consol…

> [@sam](#):
>
> I think the use case is around self service

The Invite Link can serve this case because the user will only be added to a group if they click on that link.

---

_[View the full topic](https://meta.discourse.org/t/short-code-to-insert-join-leave-group-button-into-a-post/63673)._
