# Is it possible to assign users to a group upon registration?

**URL:** https://meta.discourse.org/t/is-it-possible-to-assign-users-to-a-group-upon-registration/72221
**Category:** Support
**Created:** [16 באוקטובר,‏ 2017,‏ 9:29pm UTC](https://meta.discourse.org/t/is-it-possible-to-assign-users-to-a-group-upon-registration/72221 "2017-10-16T21:29:40Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![Oxyrus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/oxyrus/32/120626_2.png) [@Oxyrus](https://meta.discourse.org/u/Oxyrus)
#### Post date: [16 באוקטובר,‏ 2017,‏ 9:29pm UTC](https://meta.discourse.org/t/is-it-possible-to-assign-users-to-a-group-upon-registration/72221/1 "2017-10-16T21:29:40Z")

</div>

Hello!

I would like to know if it’s possible to assign users to an specific group after they have finished the registration process, automatically.

Say I register a new user, he would be put into the Members group automatically, is that possible?

Thank you!

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [16 באוקטובר,‏ 2017,‏ 9:52pm UTC](https://meta.discourse.org/t/is-it-possible-to-assign-users-to-a-group-upon-registration/72221/2 "2017-10-16T21:52:34Z")

</div>

You might get a better answer if you say why you want to assign people to a group, but here are a couple answers.

You can assign them automatically if they all have the same email domain.

You can invite them and include in the invite a group to assign them to.

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [16 באוקטובר,‏ 2017,‏ 10:01pm UTC](https://meta.discourse.org/t/is-it-possible-to-assign-users-to-a-group-upon-registration/72221/3 "2017-10-16T22:01:39Z")

</div>

Hi Oxyrus welcome to the forum

> [@Oxyrus](#):
>
> Members group automatically

If you mean trust level 2 then yes, there is a setting for the starting group. Typically it’s 1 until the forum gets started and then 0

Note that setting higher will circumvent a lot of things intended to save you from having problems eg. spam checks, spree posting.

Groups can also be assigned by email address domain. eg. every new member from ` ____ @example.com` to trust level 4

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [16 באוקטובר,‏ 2017,‏ 10:04pm UTC](https://meta.discourse.org/t/is-it-possible-to-assign-users-to-a-group-upon-registration/72221/4 "2017-10-16T22:04:32Z")

</div>

> [@Mittineague](#):
>
> Note that setting higher will circumvent a lot of things intended to save you from having problems eg. spam checks, spree posting.

I want to emphasize this. If your forum allows public registration, you’re in for **incredible pain** if you raise the default trust level.

---

<div class="post-metadata">

### Author: ![Oxyrus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/oxyrus/32/120626_2.png) [@Oxyrus](https://meta.discourse.org/u/Oxyrus)
#### Post date: [16 באוקטובר,‏ 2017,‏ 10:07pm UTC](https://meta.discourse.org/t/is-it-possible-to-assign-users-to-a-group-upon-registration/72221/5 "2017-10-16T22:07:40Z")

</div>

Thank you, I wasn’t thinking of the email approach before but now it makes sense. I was thinking of user groups (created at /admin/groups) because I want to display certain categories to certain groups, so a new comer can’t see all the categories, but someone who has been around (and been promoted to a higher group) can see them all.

I can’t do it based on trust levels because we need to handle promotion internally, that is, once a user meets certain criteria we decide.

Thank you all for the quick response!

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [16 באוקטובר,‏ 2017,‏ 10:19pm UTC](https://meta.discourse.org/t/is-it-possible-to-assign-users-to-a-group-upon-registration/72221/6 "2017-10-16T22:19:22Z")

</div>

> [@Oxyrus](#):
>
> I can’t do it based on trust levels because we need to handle promotion internally, that is, once a user meets certain criteria we decide.

If you’re going to decide based on “certain criteria” then can’t you just assign them to the “Good Group” once they’ve met the criteria? (Why do you need to automatically assign them to a group at all?)

---

<div class="post-metadata">

### Author: ![hellekin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hellekin/32/51636_2.png) [@hellekin](https://meta.discourse.org/u/hellekin)
#### Post date: [19 באוקטובר,‏ 2017,‏ 6:54pm UTC](https://meta.discourse.org/t/is-it-possible-to-assign-users-to-a-group-upon-registration/72221/7 "2017-10-19T18:54:20Z")

</div>

I have a similar request. Here is the use-case:

1. I assign a group G to a category C so that the category is only visible by G members.
2. I assign `g.c@example.org` to C with anonymous email-in enabled.
3. I send an email to `g.c@example.org`, with a number of emails in Cc so that they become staged.
4. When the user wants to confirm their account, I want them assigned to G, OR  
4bis. I want to assign them to G before they activate their account.

Any clue? (using API, SQL, or some eventual admin feature)

---

<div class="post-metadata">

### Author: ![schungx](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/schungx/32/70989_2.png) [@schungx](https://meta.discourse.org/u/schungx)
#### Post date: [20 באוקטובר,‏ 2017,‏ 2:33am UTC](https://meta.discourse.org/t/is-it-possible-to-assign-users-to-a-group-upon-registration/72221/8 "2017-10-20T02:33:53Z")

</div>

I don’t think there is a feature to auto assign groups based on email account To endpoints. There is a feature to assign groups based on From accounts.

You may want to put up a feature request.

---

<div class="post-metadata">

### Author: ![schungx](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/schungx/32/70989_2.png) [@schungx](https://meta.discourse.org/u/schungx)
#### Post date: [20 באוקטובר,‏ 2017,‏ 2:35am UTC](https://meta.discourse.org/t/is-it-possible-to-assign-users-to-a-group-upon-registration/72221/9 "2017-10-20T02:35:12Z")

</div>

But you’re inviting those staged users manually right? Just assign them to the right groups before you press the send invite button.

---

<div class="post-metadata">

### Author: ![hellekin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hellekin/32/51636_2.png) [@hellekin](https://meta.discourse.org/u/hellekin)
#### Post date: [22 באוקטובר,‏ 2017,‏ 4:02pm UTC](https://meta.discourse.org/t/is-it-possible-to-assign-users-to-a-group-upon-registration/72221/10 "2017-10-22T16:02:51Z")

</div>

> [@schungx](#):
>
> But you’re inviting those staged users manually right?

Not really: I couldn’t find a way to stage users without inviting them, and I find the invitation process limiting: either I can use individual invitations, each with their own group and message, but then I can’t choose the language of the invitation template – or can I choose to bulk invite in a group with a custom message for all, or I can bulk invite people in a group, but then I lose the ability to provide a custom message (and still can’t change template message.) So the option I choose is to let the system stage the users and not invite them.

---

<div class="post-metadata">

### Author: ![allu](https://avatars.discourse-cdn.com/v4/letter/a/cdc98d/32.png) [@allu](https://meta.discourse.org/u/allu)
#### Post date: [21 במאי,‏ 2018,‏ 8:19pm UTC](https://meta.discourse.org/t/is-it-possible-to-assign-users-to-a-group-upon-registration/72221/11 "2018-05-21T20:19:15Z")

</div>

Is using groups to differentiate certain subgroups within a community a suitable use-case for this feature? For example, suppose I had a discussion group about racket sports (not my case, just an example). Could I use groups to differentiate say badminton and tennis players? For example, with a badge for each type of player?

If this _would_ be a good use for groups, then it _would_ make sense to allow the players to choose a group when they register, wouldn’t it?

---

<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: [8 בנובמבר,‏ 2020,‏ 9:18pm UTC](https://meta.discourse.org/t/is-it-possible-to-assign-users-to-a-group-upon-registration/72221/12 "2020-11-08T21:18:22Z")

</div>


