# "自动设置为主组"具体有什么作用？

**URL:** https://meta.discourse.org/t/what-exactly-does-automatically-set-as-primary-group-do/62222
**Category:** Support
**Created:** [2017年五月6日 15:55 UTC](https://meta.discourse.org/t/what-exactly-does-automatically-set-as-primary-group-do/62222 "2017-05-06T15:55:19Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![tophee](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tophee/32/73406_2.png) [@tophee](https://meta.discourse.org/u/tophee)
#### Post date: [2017年五月6日 15:55 UTC](https://meta.discourse.org/t/what-exactly-does-automatically-set-as-primary-group-do/62222/1 "2017-05-06T15:55:19Z")

</div>

I understand that when I check the “Automatically set as primary group” option in a group’s settings, the idea is that when a user joins this group, this group will become the user’s primary group, right?

 ![](https://global.discourse-cdn.com/meta/original/3X/a/d/ad6a7f7871c2ad865f0b2800394ab5a0a846f3c9.png)

Furthermore, the effects of setting a primary group in general have been [well explained](https://meta.discourse.org/t/what-does-selecting-primary-group-for-a-user-do/25857).

But here are some questions:

1. Does this work retrospectively, i.e. if I check this option for a group that already has members, will this set the group as their primary group?
2. Am I right in assuming that it is always the last group that the user joins (and which has this setting activated) that becomes the primary group?
3. Where it gets more complicated is when you also automatically set a title based on the primary group. You’d think that the title changes when the primary group changes but this [does not seem to be the case](https://meta.discourse.org/t/how-to-automatically-set-the-user-title-for-certain-groups/26535). And some (not me) might argue the user title should only change if the new primary group actually has a user title assigned to it. So the question is twofold: what _is_ the current behaviour and what _should_ be the behaviour?

---

<div class="post-metadata">

### Author: ![dax](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dax/32/244677_2.png) [@dax](https://meta.discourse.org/u/dax)
#### Post date: [2017年五月6日 19:18 UTC](https://meta.discourse.org/t/what-exactly-does-automatically-set-as-primary-group-do/62222/2 "2017-05-06T19:18:26Z")

</div>

1. Yes

2. If you have more than one primary groups (for example groups A and B) and a user of A enter in the group B, the last group (B) will be automatically set as primary. Admins can change the primary group for each user

3. I don’t know about titles but in my memory some configurations of the group remain even if a user leave the group (e.g. if you set the group to assign TL4, when a user leave the group he still remain to TL4).

---

<div class="post-metadata">

### Author: ![tophee](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tophee/32/73406_2.png) [@tophee](https://meta.discourse.org/u/tophee)
#### Post date: [2017年五月6日 19:30 UTC](https://meta.discourse.org/t/what-exactly-does-automatically-set-as-primary-group-do/62222/3 "2017-05-06T19:30:23Z")

</div>

4. So if I combine 1. and 2. that means that if I activate “Automatically set as primary group” for multiple existing groups, the order in which I do that matters (because the last one overwrites all previous ones (in case of overlapping membership), right?

---

<div class="post-metadata">

### Author: ![dax](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dax/32/244677_2.png) [@dax](https://meta.discourse.org/u/dax)
#### Post date: [2017年五月6日 20:42 UTC](https://meta.discourse.org/t/what-exactly-does-automatically-set-as-primary-group-do/62222/4 "2017-05-06T20:42:56Z")

</div>

> [@tophee](#):
>
> So if I combine 1. and 2. that means that if I activate “Automatically set as primary group” for multiple existing groups, the order in which I do that matters (because the last one overwrites all previous ones (in case of overlapping membership), right?

Yes, in my case I have a single user in 2 primary groups. When I set the 2nd group as primary in his user setting the last group (2nd) became the primary

---

<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: [2024年六月8日 12:44 UTC](https://meta.discourse.org/t/what-exactly-does-automatically-set-as-primary-group-do/62222/5 "2024-06-08T12:44:44Z")

</div>

此主题已在 2589 天后自动关闭。不再允许回复。
