# Domain-based assignment enhancement

**URL:** https://community.zammad.org/t/domain-based-assignment-enhancement/17314
**Category:** Development
**Created:** [March 28, 2025, 10:35am UTC](https://community.zammad.org/t/domain-based-assignment-enhancement/17314 "2025-03-28T10:35:29Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![stonerl](https://community.zammad.org/user_avatar/community.zammad.org/stonerl/32/6929_2.png) [@stonerl](https://community.zammad.org/u/stonerl)
#### Post date: [March 28, 2025, 10:35am UTC](https://community.zammad.org/t/domain-based-assignment-enhancement/17314/1 "2025-03-28T10:35:29Z")

</div>

Hiho,

we are currently heavily using the domain-based assignment feature in Zammad, since we have a lot of contact with Universities. Many of them use subdomains for their faculties and departments, and there the domain-based assignment does not apply.

So I want to enhance this feature to allow subdomain matching on a per-organization basis. There are two ways this could be implemented, and I wanted to ask the devs which one they prefer.

**1. Add a new boolean**

I could add a new field called _include subdomains_ with a `yes` and `no` toggle. That field would be active and evaluated based on whether _domain-based assignment_ is enabled or not.

**2. Change the current `boolean` to an `int` with `enum`**

This would implicate a change of the current field from a `boolean`to an `int`:

- 0 = no = no
- 1 = yes = yes
- 2 = yes\_include\_subdomains = yes, include subdomains

Before I start working on this, what would be your preferred way of implementing this?

Best

Toni

---

<div class="post-metadata">

### Author: ![MrGeneration](https://community.zammad.org/user_avatar/community.zammad.org/mrgeneration/32/9260_2.png) [@MrGeneration](https://community.zammad.org/u/MrGeneration)
#### Post date: [March 28, 2025, 10:37am UTC](https://community.zammad.org/t/domain-based-assignment-enhancement/17314/2 "2025-03-28T10:37:20Z")

</div>

There’s a feature request somewhere in this Community or on Github regarding Domain Based assignment. It doesn’t cover subdomains, but rather looks at “several different domains”.

I personally believe both would be good and important in todays time. However, I cannot decide.

Maybe @YetAnotherGerrit has an answer or at least opinion on that.

---

<div class="post-metadata">

### Author: ![YetAnotherGerrit](https://community.zammad.org/user_avatar/community.zammad.org/yetanothergerrit/32/8413_2.png) [@YetAnotherGerrit](https://community.zammad.org/u/YetAnotherGerrit)
#### Post date: [April 1, 2025, 8:45am UTC](https://community.zammad.org/t/domain-based-assignment-enhancement/17314/3 "2025-04-01T08:45:15Z")

</div>

I think the best solution would be to allow multiple entries and wildcards. This way it could look like: `zammad.org` `*.zammad.org`

This would allow for most of the uses-cases.

Because another common example is that a company has several TLD’s as well.

---

<div class="post-metadata">

### Author: ![stonerl](https://community.zammad.org/user_avatar/community.zammad.org/stonerl/32/6929_2.png) [@stonerl](https://community.zammad.org/u/stonerl)
#### Post date: [April 1, 2025, 9:00am UTC](https://community.zammad.org/t/domain-based-assignment-enhancement/17314/4 "2025-04-01T09:00:54Z")

</div>

> I think the best solution would be to allow multiple entries and wildcards. This way it could look like: `zammad.org` `*.zammad.org`

So the domain field should accept multiple space or comma separated values then?

---

<div class="post-metadata">

### Author: ![YetAnotherGerrit](https://community.zammad.org/user_avatar/community.zammad.org/yetanothergerrit/32/8413_2.png) [@YetAnotherGerrit](https://community.zammad.org/u/YetAnotherGerrit)
#### Post date: [April 2, 2025, 6:37am UTC](https://community.zammad.org/t/domain-based-assignment-enhancement/17314/5 "2025-04-02T06:37:53Z")

</div>

> [@stonerl](#):
>
> So the domain field should accept multiple space or comma separated values then?

There is a UI element, e.g. used for operators, that does not need seperation characters:

![grafik](https://community.zammad.org/uploads/default/original/2X/6/63f56825fb83f228e0a68514711cc0c769494c3f.png)

This can be used here as well.

---

<div class="post-metadata">

### Author: ![system](https://community.zammad.org/uploads/default/original/1X/5c5afaea2d23f811dbec33cd4edb02fa29d3262f.png) [@system](https://community.zammad.org/u/system)
#### Post date: [March 23, 2026, 10:35am UTC](https://community.zammad.org/t/domain-based-assignment-enhancement/17314/6 "2026-03-23T10:35:40Z")

</div>

This topic was automatically closed after 360 days. New replies are no longer allowed.
