To configure these rules, you can use conditions, sections, and subsections combined with the AND and OR logical operators.
This article explains how to structure your rules and combine criteria to target the desired employee population.
1. How does a dynamic visibility group work?
A dynamic visibility group relies on rules that automatically identify employees who meet the defined criteria.
Unlike manual employee selection, dynamic group membership is based on employee attributes.
Criteria can be based on:
Standard fields.
Custom fields.
Job-related fields.
Additional fields.
The available fields, comparison operators, and values depend on your environment's configuration.
2. Understanding the structure of a dynamic rule
A dynamic rule can consist of three elements:
Element | Definition | Example |
Condition | A criterion used to select employees. | Country = France |
Section | A group of conditions and/or subsections combined using an AND or OR operator. | Country = France AND Department = HR |
Subsection | A group of conditions within a section, with its own AND or OR operator. | Department = HR OR Department = Finance |
A dynamic rule can contain multiple sections. A section can also contain individual conditions and multiple subsections.
Sections can be added, deleted, or duplicated as needed.
3. Understanding the AND and OR operators
The AND operator
The AND operator means that all conditions within a group must be met for an employee to match the rule.
For example:
Country = France
AND Department = HR
The employee must work in France and belong to the HR department.
The OR operator
The OR operator means that at least one condition within a group must be met for an employee to match the rule.
For example:
Department = HR
OR Department = Finance
The employee can belong to either the HR department or the Finance department.
Not all conditions need to be met. An employee who meets multiple conditions also matches the rule.
4. How do sections work?
A section allows you to group multiple conditions or subsections and define how they should be combined.
The operator selected at the section level applies to all individual conditions and the evaluation results of the subsections it contains.
Example: A section using the AND operator
You want to select only employees who work in France and belong to the HR department.
Configure your section as follows:
Section — AND
Country = France
Department = HR
The rule is interpreted as follows:
Country = France AND Department = HR
Country | Department | Matches the rule? |
France | HR | Yes |
France | Finance | No |
Spain | HR | No |
Spain | Finance | No |
Example: A section using the OR operator
You want to select all employees working in France, as well as all employees belonging to the HR department, regardless of their country.
Configure your section as follows:
Section — OR
Country = France
Department = HR
The rule is interpreted as follows:
Country = France OR Department = HR
Country | Department | Matches the rule? |
France | HR | Yes |
France | Finance | Yes |
Spain | HR | Yes |
Spain | Finance | No |
Choosing between the AND and OR operators therefore has a direct impact on the selected employee population.
5. How do subsections work?
A subsection allows you to group multiple conditions within a main section using its own AND or OR operator.
A subsection works like parentheses in a logical expression: its conditions are evaluated together, and the result is then combined with the other elements of the main section.
Example: Combining a mandatory criterion with multiple alternatives
You want to select employees who work in France and belong to either the HR or Finance department.
Configure your rule as follows:
Main section — AND
Country = France
Subsection — OR
Department = HR
Department = Finance
The rule is interpreted as follows:
Country = France AND (Department = HR OR Department = Finance)
The country is a mandatory criterion, while the department can match either of the two specified values.
Country | Department | Matches the rule? |
France | HR | Yes |
France | Finance | Yes |
France | Marketing | No |
Spain | HR | No |
Spain | Finance | No |
In this example, the subsection ensures that the Country criterion remains mandatory while allowing multiple possible departments.
Example: Selecting two distinct employee populations
You want to select two employee populations:
Employees working in France who belong to the HR department.
Employees working in Spain who belong to the Finance department.
Configure your rule as follows:
Main section — OR
Subsection 1 — AND
Country = France
Department = HR
Subsection 2 — AND
Country = Spain
Department = Finance
The rule is interpreted as follows:
(Country = France AND Department = HR) OR (Country = Spain AND Department = Finance)
An employee must meet all the conditions of at least one of the two subsections.
Country | Department | Matches the rule? |
France | HR | Yes |
France | Finance | No |
Spain | HR | No |
Spain | Finance | Yes |
Italy | HR | No |
Subsections therefore allow you to target multiple distinct employee populations within a single dynamic rule.
6. How are multiple independent sections combined?
When you add multiple independent sections at the same level, they are combined using an AND operator.
An employee must therefore match every section to be selected.
For example:
Section 1 — OR
Country = France
Country = Spain
Section 2 — OR
Department = HR
Department = Finance
The rule is interpreted as follows:
(Country = France OR Country = Spain) AND (Department = HR OR Department = Finance)
Country | Department | Matches the rule? |
France | HR | Yes |
France | Finance | Yes |
Spain | HR | Yes |
Spain | Finance | Yes |
France | Marketing | No |
Italy | Finance | No |
Important: Selecting the OR operator within a section does not mean that this section will be combined with other sections using an OR operator.
If you want to create an alternative between two sets of conditions, use a main section with an OR operator containing multiple subsections.
7. Special case: Hierarchical relationships
When configuring dynamic visibility groups, a dedicated section may allow you to define rules based on hierarchical relationships between employees.
Unlike standard conditions, which rely on employee attributes, hierarchical rules are based on existing relationships between employees.
These rules are processed differently. The resulting employee population cannot be previewed in the same way as a fixed list of employees.
Therefore, the absence of an employee count in the preview of a hierarchical rule does not necessarily mean that no employees match the rule.
8. How can you verify the targeted employee population?
Whenever possible, the rule builder displays a preview of the number of employees matching the defined criteria.
This preview allows you to verify that your rule configuration matches the employee population you want to target.
If the number of employees does not match your expectations, check the following:
The selected fields.
The comparison operators used.
The specified values.
The AND and OR operators in each section.
The AND and OR operators in each subsection.
How the different sections are combined.
The data entered in employee profiles.
Some rules, particularly those based on hierarchical relationships, do not support a standard employee population preview.
9. Best practices for configuring dynamic rules
Before configuring a dynamic visibility group, we recommend clearly defining the employee population you want to target.
Your objective | Recommended configuration |
All criteria must be met. | A section using AND |
At least one criterion must be met. | A section using OR |
One mandatory criterion and multiple alternatives. | A section using AND containing a subsection using OR |
Multiple distinct employee populations, each with its own mandatory criteria. | A section using OR containing subsections using AND |
Multiple sets of criteria must be met simultaneously. | Multiple independent sections |
Keep your rule structure as simple as possible and use subsections when you need to combine different logical operators.
Whenever available, check the employee population preview before finalizing your configuration.
Key takeaway: A section defines how its elements are combined. A subsection allows you to apply different logic to a group of conditions within that section. Multiple independent sections are combined using an AND operator.
The fields and values used in this article are provided for illustrative purposes. Their availability depends on your environment's configuration.
