# Exclude certain email sub-domains from automatic group membership

**URL:** <https://meta.discourse.org/t/exclude-certain-email-sub-domains-from-automatic-group-membership/86212>\
**Category:** Feature\
**Tags:** groups\
**Created:** [26 באפריל,‏ 2018,‏ 11:51am UTC](https://meta.discourse.org/t/exclude-certain-email-sub-domains-from-automatic-group-membership/86212 "2018-04-26T11:51:14Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)\
**Post date:** [26 באפריל,‏ 2018,‏ 12:11pm UTC](https://meta.discourse.org/t/exclude-certain-email-sub-domains-from-automatic-group-membership/86212/2 "2018-04-26T12:11:42Z")

</div>

It already works that way.

It matches the full domain after the @, so when you configure your group to automatically assign membership for `uni.edu` it will match `foo@uni.edu`, but not `foo@student.uni.edu`

---

_[View the full topic](https://meta.discourse.org/t/exclude-certain-email-sub-domains-from-automatic-group-membership/86212)._
