# Select a group when registering?

**URL:** https://meta.discourse.org/t/select-a-group-when-registering/268854
**Category:** Support
**Tags:** groups, user-custom-fields
**Created:** [June 19, 2023, 6:21am UTC](https://meta.discourse.org/t/select-a-group-when-registering/268854 "2023-06-19T06:21:01Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Ahmed26](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ahmed26/32/347069_2.png) [@Ahmed26](https://meta.discourse.org/u/Ahmed26)
#### Post date: [June 19, 2023, 6:21am UTC](https://meta.discourse.org/t/select-a-group-when-registering/268854/1 "2023-06-19T06:21:01Z")

</div>

select a group when registering ? is there an addon plugin ?

 ![ek1](https://global.discourse-cdn.com/meta/original/4X/8/a/7/8a7535aa8ab45953e74972bbe7a82625c9c98112.png)

---

<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: [June 19, 2023, 7:59am UTC](https://meta.discourse.org/t/select-a-group-when-registering/268854/2 "2023-06-19T07:59:17Z")

</div>

👋

There isn’t a feature /site setting that does this. However, I believe that the custom wizard plugin allows users to add themselves to groups on signup

> [@Custom Wizard Plugin mage](https://meta.discourse.org/t/custom-wizard-plugin/73345):
>
> pavilionSummary Forms for Discourse. This plugin lets you make rich and powerful forms for your Discourse forum. Better user onboarding, structured posting, data enrichment, automated actions and much more for your community.hammer_and_wrenchRepository Link [https://github.com/paviliondev/discourse-custom-wizard](https://github.com/paviliondev/discourse-custom-wizard)open_bookInstall Guide [How to install plugins in Discourse](https://meta.discourse.org/t/install-plugins-in-discourse/19157)people_huggingCommunity Community based support and discussions about this plugin are hosted on th…

---

<div class="post-metadata">

### Author: ![whitewaterdeu](https://avatars.discourse-cdn.com/v4/letter/w/57b2e6/32.png) [@whitewaterdeu](https://meta.discourse.org/u/whitewaterdeu)
#### Post date: [June 19, 2023, 9:37am UTC](https://meta.discourse.org/t/select-a-group-when-registering/268854/3 "2023-06-19T09:37:19Z")

</div>

maybe you can use a url which invite users to the specific group

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

---

<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: [June 19, 2023, 9:40am UTC](https://meta.discourse.org/t/select-a-group-when-registering/268854/4 "2023-06-19T09:40:19Z")

</div>

That’s a great suggestion! I missed the invite feature completely. As a side note that option is only available for staff.

---

<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: [June 22, 2023, 6:31pm UTC](https://meta.discourse.org/t/select-a-group-when-registering/268854/5 "2023-06-22T18:31:00Z")

</div>

I think there’s also an [Automation](https://meta.discourse.org/t/discourse-automation/195773) script that allows you to automatically add people to groups depending on the User Custom Field they select at signup (or whenever depending on how you set it up). For example:

**Create the groups:**

 ![create the groups](https://global.discourse-cdn.com/meta/original/4X/b/7/4/b7452e7041cba063b3161a0e5edb63bdba551c77.png)

  

**Create the User Custom Field:**

 ![example user custom field](https://global.discourse-cdn.com/meta/original/4X/1/a/e/1ae3e431c009a498a5231a130789ecbab420b06a.png)

  

**Create the Automation:**

 ![group-add automation](https://global.discourse-cdn.com/meta/original/4X/8/8/4/884a955f8f4ecdf75a90699cc9a8f85a70cae535.png)

  

**Sign-Up:**

 ![group-add sign-up](https://global.discourse-cdn.com/meta/original/4X/d/f/a/dfa5b15c81a7ddcefe87af1a88640ecef4c8d9ff.png)

  

**See them added to the group:** 🥳

 ![added to custom group](https://global.discourse-cdn.com/meta/original/4X/7/b/c/7bc62001e084e45902c121ac282ec9a17841da89.png)

  

* * *

**Fun quirk…**

If you’re using the ‘Recurring’ trigger rather than ‘User first logged on’ you’ll need to use the `user_field` id rather than the user field name, but you can grab that from the relevant json if you need it `/admin/customize/user_fields.json` (in this case, mine’s 4)

 ![user custom field id](https://global.discourse-cdn.com/meta/original/4X/1/1/e/11e678d0162c2cb64127ebb0ae6ba1b5f6fddf9b.png)

 ![automation - recurring trigger](https://global.discourse-cdn.com/meta/original/4X/f/5/7/f571b584c2f04623c5508943c47393a4060794cc.png)

**NB:** (note the format of the `user_field_4`)

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [July 22, 2023, 6:31pm UTC](https://meta.discourse.org/t/select-a-group-when-registering/268854/6 "2023-07-22T18:31:36Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
