# Primary group not made primary

**URL:** https://meta.discourse.org/t/primary-group-not-made-primary/102619
**Category:** Bug
**Created:** [November 23, 2018, 5:16pm UTC](https://meta.discourse.org/t/primary-group-not-made-primary/102619 "2018-11-23T17:16:49Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![jtbayly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jtbayly/32/119510_2.png) [@jtbayly](https://meta.discourse.org/u/jtbayly)
#### Post date: [November 23, 2018, 5:16pm UTC](https://meta.discourse.org/t/primary-group-not-made-primary/102619/1 "2018-11-23T17:16:49Z")

</div>

I have two groups. One has “Automatically set as primary group” checked, the other doesn’t. I was in the regular group. Then I created the primary group and added myself to it. Somehow my flair and title are still set according to the regular group. I can’t think of anything other than flair and title that would indicate that the group is “primary.” Am I missing something?

According to [this post](https://meta.discourse.org/t/what-exactly-does-automatically-set-as-primary-group-do/62222), even competing primary groups should be set based on the latest assignment. In this case I’m dealing with a primary group, set second, competing with a regular group, and it’s still not doing anything.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [November 23, 2018, 7:33pm UTC](https://meta.discourse.org/t/primary-group-not-made-primary/102619/2 "2018-11-23T19:33:20Z")

</div>

Hmm, someone worked on this recently. Do you recall who @david?

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [November 23, 2018, 7:37pm UTC](https://meta.discourse.org/t/primary-group-not-made-primary/102619/3 "2018-11-23T19:37:34Z")

</div>

@xrav3nz has made some changes recently

> [@User in multiple groups, title display and group link don't match](https://meta.discourse.org/t/user-in-multiple-groups-title-display-and-group-link-dont-match/96502/22):
>
> I’ve made two changes that can hopefully make the flow a bit more intuitive. muscle If the user’s title is granted by their primary group, we will keep the title in sync when switching primary groups. ([FEATURE: match user title when primary group changes by xrav3nz · Pull Request #6404 · discourse/discourse · GitHub](https://github.com/discourse/discourse/pull/6404)) When removing a title (due to leaving a group, etc), we will now automatically grant the user another of their available titles. This favors primary group title over the ot…

@jtbayly when you view the user in the admin panel, has the “primary group” updated correctly? (i.e. has the primary group failed to change, or have the title/flair failed to follow the primary group)

---

<div class="post-metadata">

### Author: ![jtbayly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jtbayly/32/119510_2.png) [@jtbayly](https://meta.discourse.org/u/jtbayly)
#### Post date: [November 23, 2018, 8:03pm UTC](https://meta.discourse.org/t/primary-group-not-made-primary/102619/4 "2018-11-23T20:03:01Z")

</div>

The user is both in the group, and it shows that group as the primary.

---

<div class="post-metadata">

### Author: ![xrav3nz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/xrav3nz/32/76894_2.png) [@xrav3nz](https://meta.discourse.org/u/xrav3nz)
#### Post date: [November 23, 2018, 9:22pm UTC](https://meta.discourse.org/t/primary-group-not-made-primary/102619/5 "2018-11-23T21:22:22Z")

</div>

> [@jtbayly](#):
>
> title … still set according to the regular group.

Currently, by design, joining a primary group will only update title if:

- the user do not already have a title
- or, the user’s title is from the previous primary group

Should we maybe add another rule?

- or, the user did not have a primary group

> [@jtbayly](#):
>
> flair … still set according to the regular group.

I haven’t worked on flairs but I think they are only tied to the user’s primary group, could you confirm that it is showing the previous _regular_ group’s flair?

---

<div class="post-metadata">

### Author: ![jtbayly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jtbayly/32/119510_2.png) [@jtbayly](https://meta.discourse.org/u/jtbayly)
#### Post date: [November 23, 2018, 9:44pm UTC](https://meta.discourse.org/t/primary-group-not-made-primary/102619/6 "2018-11-23T21:44:02Z")

</div>

Why would it update and override a title from a prior primary group but not a title that doesn’t even rise to primary?

Seems like it should update _unless_ title was set manually.

The regular group has no flair at all. And no flair is showing on the user in spite of the primary group having flair.

---

<div class="post-metadata">

### Author: ![jtbayly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jtbayly/32/119510_2.png) [@jtbayly](https://meta.discourse.org/u/jtbayly)
#### Post date: [November 23, 2018, 11:46pm UTC](https://meta.discourse.org/t/primary-group-not-made-primary/102619/7 "2018-11-23T23:46:19Z")

</div>

I’m not sure what changed, but the flair is showing now. Perhaps user error? If so, I’m sorry for the confusion.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [November 24, 2018, 5:11am UTC](https://meta.discourse.org/t/primary-group-not-made-primary/102619/8 "2018-11-24T05:11:49Z")

</div>


