Chapter 5: Rule Groups and User Management
5.1 Understanding Rule Groups
What Are Rule Groups?
Rule Groups control WHO receives notifications. They filter which users or roles should be notified when a trigger fires and scenarios pass. Without Rule Group assignments, notifications would display to all users, regardless of relevance.
Rule Group Purpose:
Target appropriate audiences: Sales notifications to sales users, purchase notifications to purchasing users
Respect organizational structure: Manager approvals to managers, not data entry staff
Prevent notification overload: Users only see notifications relevant to their role
Enable role-based workflows: Different notifications for different responsibility levels
How Rule Groups Work:
You assign notifications to one or more Rule Groups
You assign users to one or more Rule Groups
When a notification triggers:
System checks which Rule Groups the notification belongs to
System checks which users are in those Rule Groups
Notification displays only to users in matching groups
📋 NOTE: Rule Groups are managed in the QUALIA Core Rule Engine (base system), not in the Notification app itself. The Notification app uses Rule Groups defined in the core configuration.
Rule Group Assignment
Rule Groups are assigned in the Rule Group subpage within the Triggers & Scenarios section of the notification card.
Procedure: Assign Notification to Rule Group
Open your notification card
In the Rule Group subpage, click to add a new line
Select a Rule Group Code from the dropdown
Save the notification
Multiple Rule Groups:
A notification can belong to multiple Rule Groups:
Example: Purchase Order Approval Notification
Rule Group Code | Description |
|---|---|
PURCH-MGR | Purchasing Managers |
EXEC | Executives |
This notification displays to users in either the PURCH-MGR group OR the EXEC group (OR logic for groups).
Creating and Managing Rule Groups
Rule Groups are created separately from notifications, then assigned as needed.
Accessing Rule Group Configuration:
Search for "QUA Rule Groups" in Business Central
The list shows all defined Rule Groups
Click New to create a new group
Click Edit to modify existing groups
Rule Group Fields:
Code (Text[20]):
Unique identifier for the group
Use meaningful codes: "SALES-TEAM", "PURCH-MGR", "FIN-USERS"
Description (Text[100]):
Explanation of the group's purpose
"Sales Team Members", "Purchasing Managers", "Finance Department Users"
User Assignments:
Within each Rule Group, you assign specific users:
Open the Rule Group card
In the Users subpage, add lines
Select User ID from the user list
Save the Rule Group
✅ EXAMPLE - Rule Group Structure:
Rule Group: SALES-TEAM
Description: Sales Team Members
Users:
JSMITH (John Smith)
MJONES (Mary Jones)
RDAVIS (Robert Davis)
Rule Group: SALES-MGR
Description: Sales Managers
Users:
MJONES (Mary Jones)
LWHITE (Laura White)
Note that users can belong to multiple groups (Mary Jones is in both).
💡 TIP: Align Rule Groups with your organization's structure and responsibilities. Common patterns: department-based groups (SALES, PURCH, FIN), role-based groups (MGR, CLERK, EXEC), or workflow-based groups (APPROVER, REQUESTER).
5.2 User Assignment Strategies
Department-Based Groups
Organize Rule Groups by business department:
Example Structure:
Group Code | Description | Purpose |
|---|---|---|
SALES | Sales Department | All sales-related notifications |
PURCH | Purchasing | All purchasing notifications |
WAREHOUSE | Warehouse Staff | Inventory and shipping notifications |
FINANCE | Finance Team | Financial and payment notifications |
Advantages:
Mirrors organization chart
Easy to understand and maintain
Clear responsibility boundaries
Disadvantages:
May be too broad (all sales users get all sales notifications)
Doesn't distinguish by authority level
Role-Based Groups
Organize Rule Groups by responsibility level:
Example Structure:
Group Code | Description | Purpose |
|---|---|---|
DATA-ENTRY | Data Entry Users | Confirmation and error notifications |
SUPERVISOR | Supervisors | Exception and threshold alerts |
MANAGER | Department Managers | Approval requests and summary notifications |
EXECUTIVE | Executive Team | High-level alerts only |
Advantages:
Filters by authority and responsibility
Prevents notification overload for junior staff
Ensures appropriate escalation
Disadvantages:
Requires more groups to cover all scenarios
Role changes require group reassignment
Hybrid Approach
Combine department and role dimensions:
Example Structure:
Group Code | Description |
|---|---|
SALES-CLERK | Sales Data Entry |
SALES-MGR | Sales Managers |
PURCH-CLERK | Purchasing Data Entry |
PURCH-MGR | Purchasing Managers |
FIN-ACCT | Finance Accountants |
FIN-MGR | Finance Managers |
Advantages:
Precise targeting
Flexible notification assignment
Scales well with organization growth
Disadvantages:
More groups to maintain
User assignment complexity
💡 TIP: Start simple with department-based groups. Add role-based granularity as your notification library grows and you identify patterns where broad targeting causes issues.
Dynamic Group Management
User assignments to Rule Groups can change over time:
When to Reassign Users:
Role changes: Employee promoted to manager
Department transfers: Employee moves from Sales to Purchasing
Onboarding: New employee needs notification access
Offboarding: Departing employee removed from groups
Project teams: Temporary assignment to special project groups
Maintenance Strategy:
Monthly Review:
Verify active users are in appropriate groups
Remove terminated employees
Add new hires
Change-Driven Updates:
Update groups when org changes occur
Document group assignments in HR/IT systems
Automate using PowerShell or BC web services if possible
📋 NOTE: Rule Group membership changes take effect immediately. Adding a user to a group means they'll start receiving those notifications right away. Removing a user means they'll stop receiving notifications from that group.
5.3 Testing with Rule Groups
Verifying Rule Group Assignments
Before deploying notifications broadly, test that Rule Groups filter correctly:
Test Plan:
Create test users representing different roles:
TestUser_Sales (in SALES group only)
TestUser_Manager (in MANAGER group only)
TestUser_Both (in both SALES and MANAGER groups)
TestUser_None (not in any groups)
Create test notification assigned to SALES group
Trigger notification (modify test record)
Verify results:
TestUser_Sales sees notification ✓
TestUser_Manager does NOT see notification ✓
TestUser_Both sees notification ✓
TestUser_None does NOT see notification ✓
Validation Log Review:
Check the QUA Validation Log to see notification evaluation:
Shows which users were evaluated
Shows whether user was in required Rule Groups
Helps troubleshoot filtering issues
Multi-Group Notification Testing
When notifications are assigned to multiple Rule Groups, verify OR logic:
Scenario:
Notification assigned to:
SALES group
MANAGER group
Expected Behavior:
Users in SALES group see notification
Users in MANAGER group see notification
Users in BOTH groups see notification once (not duplicated)
Users in NEITHER group don't see notification
Test by triggering notification and checking each user group representation.
This completes Chapter 5. Users understand Rule Groups, user assignment strategies, and testing approaches for role-based notification filtering.
0 Code Advanced Notifications
>
Chapter 01: Introduction & Getting Started
>
Chapter 02: Creating and Managing Notifications
>
Chapter 03: Interactive Notification Actions
>
Chapter 04: Configuring Triggers and Rules
>
Chapter 05: Rule Groups and User Management
>
Chapter 06: Template Management and Troubleshooting
Related Posts
Chapter 06: Template Management and Troubleshooting
Exporting notifications creates XML files containing complete configuration: Why Export: Backup: Save configurations before making changes Version control: Track configuration history
Chapter 05: Rule Groups and User Management
Rule Groups control WHO receives notifications. They filter which users or roles should be notified when a trigger fires and scenarios pass. Without Rule Group assignments, notifications would display to all users, regardless of relevance.
Chapter 04: Configuring Triggers and Rules
Triggers and scenarios are the intelligence behind notifications—they determine WHEN notifications appear and UNDER WHAT CONDITIONS. This chapter dives deep into trigger configuration, scenario creation, and the Rule Engine's evaluation logic. You'll learn how to monitor specific database events, filter trigger conditions with precision, write complex scenario formulas, and create sophisticated multi-condition rules.
