# חברות בקבוצה לא בוטלה לאחר שינוי דוא"ל של משתמשים

**URL:** https://meta.discourse.org/t/group-membership-not-revoked-after-users-email-change/249513
**Category:** Feature
**Created:** [20 בדצמבר,‏ 2022,‏ 7:51pm UTC](https://meta.discourse.org/t/group-membership-not-revoked-after-users-email-change/249513 "2022-12-20T19:51:42Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![ljpp](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ljpp/32/96506_2.png) [@ljpp](https://meta.discourse.org/u/ljpp)
#### Post date: [20 בדצמבר,‏ 2022,‏ 7:51pm UTC](https://meta.discourse.org/t/group-membership-not-revoked-after-users-email-change/249513/1 "2022-12-20T19:51:42Z")

</div>

We have a user group and a flair defined for people that register with a certain company email adress. One person left the company for another job and updated his email accordingly.

- The flair disappeared as expected.
- But he remains as the member of the group, even though the email no longer matches.

The group membership should be revoked, just like the flair, right?

---

<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: [20 בדצמבר,‏ 2022,‏ 11:02pm UTC](https://meta.discourse.org/t/group-membership-not-revoked-after-users-email-change/249513/2 "2022-12-20T23:02:11Z")

</div>

> [@ljpp](#):
>
> The group membership should be revoked, just like the flair, right?

I rather doubt it. I’m surprised that the flair was removed, but maybe the changes the primary group. I’m watching to see what someone else says. I’d need to check the source and can’t (easily) on my phone.

Edit: shows what I know.

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [20 בדצמבר,‏ 2022,‏ 11:39pm UTC](https://meta.discourse.org/t/group-membership-not-revoked-after-users-email-change/249513/3 "2022-12-20T23:39:21Z")

</div>

> [@ljpp](#):
>
> The group membership should be revoked, just like the flair, right?

Back in 2018 that was definitely the case, I can’t say I’ve used it lately. There could be a change or regression here.

> [@Does automatic group membership based on email domain work when user changes email?](https://meta.discourse.org/t/does-automatic-group-membership-based-on-email-domain-work-when-user-changes-email/89665/2):
>
> I recently (about a month ago) fixed it so the membership is checked every time the user “creates” or changes their email address wink

---

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [21 בדצמבר,‏ 2022,‏ 7:51am UTC](https://meta.discourse.org/t/group-membership-not-revoked-after-users-email-change/249513/4 "2022-12-21T07:51:24Z")

</div>

I can reproduce this on latest tests-passed: when a user changes their email address, they are **not** removed from the group.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [28 בדצמבר,‏ 2022,‏ 4:35am UTC](https://meta.discourse.org/t/group-membership-not-revoked-after-users-email-change/249513/8 "2022-12-28T04:35:36Z")

</div>

To me this feels like a feature request which involves changes to the way we communicate this feature as well.

 ![image](https://global.discourse-cdn.com/meta/original/4X/6/b/e/6be2ea39a4430ab3ffca782f8aa52775a24ace3a.png)

We currently only talk about **adding** to a group, not removing.

If we start auto removing

- We need to communicate upfront that this happens in our help text
- We need to clearly define what happens to users that are manually added to the group. (do they get automatically kicked out, how does the admin know the feature is working - do we flag them in the UI)

* * *

As a workaround for the missing feature I would recommend regular audits using a [data explorer](https://meta.discourse.org/t/32566?silent=true) query.
