--- title: Add or modify a matching rule description: You can add or modify a matching rule to assign HR cases to specific users or groups. locale: en-US canonical_url: https://www.servicenow.com/docs/r/australia/employee-service-management/hr-service-delivery/CreateModMatchingRule.html release: australia product: HR Service Delivery classification: hr-service-delivery topic_type: task last_updated: "2026-03-12" reading_time_minutes: 1 breadcrumb: [Assignment and matching rules in HR, HR Service Delivery case assignment, HR Administration, Configure, Case and Knowledge Management, HR Service Delivery, Employee Service Management] --- # Add or modify a matching rule You can add or modify a matching rule to assign HR cases to specific users or groups. ## Before you begin Role required: sn\_hr\_core.admin ## Procedure 1. Navigate to **All** > **HR Administration** > **Assignment Rules** > **HR Matching Rules**. 2. Complete or edit the form.
| Field | Description |
|---|---|
| Name | Descriptive name for the HR matching rule. |
| Execution Order | Order in which the rule processes. Rules with lower-order numbers are processed first. If a rule is applied, the rules with a higher-order number are not processed.For example, a matching rule with order 100 states to assign the case to an agent with the specified skill. Matching rule with order 200 states to assign the case to the group **HR**. If a group has the specified skill, then it is assigned. If not, then the second rule runs and assigns it to **HR**. |
| Active | Check box that specifies the rule is in use. |
| Applies To | |
| Table | Table with the records that the matching rule applies to. Default is the HR Task \[hr\_task\] table. |
| Conditions | Conditions in which the matching rule applies.**Note:** When defining conditions like case sensitivity or null values, see API [GlideFilter - Scoped, Global](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/api-reference/server-api-reference/c_GlideFilterScopedAPI.md). |
| Resource | |
| Matching | Indicates the option to match the rules. Default is Scripted. |
| Script | Script to define advanced matching rule functionality. Current.variable\_pool set of variables is available.**Note:** Two example scripts are provided as a comment. You can modify either script or use the information as a starting point for your own script. Remove the examples when you are finished. |