Group rules
The members of dynamic and hybrid employee groups come from a membership rule. A rule is made of conditions that look at the employees’ attributes: “Collar type is Blue collar”, “Works in the Production unit or below it”, “Managers”. Defthand applies the rule to all your employees and puts the matching ones in the group.
The rule editor is in the new group dialog and in the Membership rule section of the group page (Employee groups).
Parts of the editor
Section titled “Parts of the editor”- Rule: The outermost condition group.
- Combinator: At the start of each condition group you choose how its conditions combine:
- match all of: The employee must meet every condition (AND).
- match any of: Meeting one condition is enough (OR).
- The Condition button: Adds a new condition to the group.
- The Group button: Adds a new nested condition group. It has its own combinator, so you can write “A and (B or C)”.
- Each condition and group has a remove button next to it.
Conditions and groups are numbered: “Condition 1”, “Group 2”, “Condition 2.1” and so on. Error messages use these numbers to say what is missing where.
Writing a condition
Section titled “Writing a condition”- Click the Condition button.
- Pick a Field (see the table below).
- Pick an Operator. The operators the field allows are listed.
- Enter the value:
- For list fields (collar, unit, position…), pick one or more values in the Add value… box. The chosen values show as tags; the cross on a tag removes the value.
- For a date field, enter a date; for the between operator, a start and an end date.
- For the Is manager field, pick yes or no.
Fields and operators
Section titled “Fields and operators”| Field | Operators | Value |
|---|---|---|
| Collar type | is any of, is none of | White collar, Blue collar, Gray collar, Field, Academic, Clinical, Executive |
| Employee type | is any of, is none of | Permanent, Temporary, Contractor, Intern, Consultant, Outsourced, Seasonal |
| Employment status | is any of, is none of | Active, On leave, Suspended, Terminated |
| Hire date | before, after, between | A date or two dates |
| Org unit | is in (incl. sub-units), is any of, is none of | Units |
| Position | is any of, is none of | Positions |
| Job | is any of, is none of | Jobs |
| Job family | is any of, is none of | Job families |
| Title | is any of, is none of | Titles |
| Grade | is any of, is none of | Grades |
| Business unit | is in (incl. sub-units), is any of, is none of | Business units |
| Legal entity | is any of, is none of | Legal entities |
| Is manager | is | Yes or no |
What the operators mean:
- is any of: Matches if it equals one of the values.
- is none of: Matches if it equals none of the values.
- is in (incl. sub-units): Matches if it is the chosen unit or any unit below it. is any of looks only at the unit itself.
- before / after: Strictly before / strictly after the date. The chosen day is not included.
- between: Between two dates; both ends are included.
- is: Matches if it equals the value.
What the rule looks at
Section titled “What the rule looks at”- Unit, position, job, job family, title, grade, business unit, legal entity and is manager are read from the employee’s primary assignment valid today. The job family comes from the position’s job; the business unit and legal entity come from the position’s unit.
- An employee without a primary assignment counts as empty in these fields: is any of and is in do not match, is none of matches, and Is manager is no matches. A rule like “not in Production” also covers employees without an assignment.
- Employees with the Terminated status do not join the group unless Employment status appears somewhere in the rule. If you want terminated employees on purpose, add the condition “Employment status is any of Terminated”.
- The rule is always evaluated as of today. There is no backward-looking query such as “last month’s members”.
Live preview
Section titled “Live preview”While you write the rule, the counter next to the editor shows how many employees match: “42 matches”. The counter works without saving and does not count members added by hand or excluded.
If the rule is incomplete, the counter stops and says why: “Live preview paused — …”. The messages for what is missing:
- “Add at least one condition.”
- “Group 2 has no conditions.”
- “Condition 1 needs a field.” / “… needs an operator.”
- “… needs a value.”
- “… needs a start and an end date.”
- “…: the start date is after the end date.”
Examples
Section titled “Examples”Blue-collar workers in Production
- Rule: match all of
- Condition 1: Org unit · is in (incl. sub-units) · Üretim
- Condition 2: Collar type · is any of · Blue collar, Gray collar
Managers and the quality team
- Rule: match any of
- Condition 1: Is manager · is · Yes
- Condition 2: Org unit · is in (incl. sub-units) · Kalite
In İzmir, permanent, and either a supervisor or a manager
- Rule: match all of
- Condition 1: Org unit · is in (incl. sub-units) · İzmir Fabrikası
- Condition 2: Employee type · is any of · Permanent
- Group 3: match any of
- Condition 3.1: Title · is any of · Supervisor
- Condition 3.2: Title · is any of · Manager
Hired in 2026 (interns excluded)
- Rule: match all of
- Condition 1: Hire date · between · 01.01.2026 – 31.12.2026
- Condition 2: Employee type · is none of · Intern
All seasonal workers, terminated ones included
- Rule: match all of
- Condition 1: Employee type · is any of · Seasonal
- Condition 2: Employment status · is any of · Active, On leave, Suspended, Terminated
Because the second condition uses the Employment status field, terminated employees also join the group.