---
sourceDocument: Xanadu Employee Service Management
sourceDocumentLink: https://www.servicenow.com/docs/r/xanadu/employee-service-management

 Release :

    - xanadu

ft:locale :

    - en-US

ft:publication_title :

    - Xanadu Employee Service Management

ft:clusterId :

    - emplsm

bundleId :

    - emplsm

workflow :

    - Employee


---

# Add or modify an HR assignment rule

# Add or modify an HR assignment rule {#ariaid-title1}

* Release version: Xanadu
* 
* Updated August 1, 2024
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

Assignment rules are used to assign the HR group when it is not assigned from the
catalog item template. You can create HR assignment rules as needed.

## Before you begin

Role required: sn_hr_core.admin

## Procedure

1. Navigate to AllHR AdministrationAssignment RulesHR Assignment Rules.
2. Click New.
3. Complete the form.  
   {#t_CreatingAnAssignmentRule__table_bgn_41w_r4__entry__2}{#t_CreatingAnAssignmentRule__ol_execution_order}

   | Field | Description |
   |-|-|
   | Name | Descriptive name for the HR assignment rule. |
   | Execution Order | Order in which the rule processes. Rules with lower-order numbers process first. For example: * The first HR assignment rule has an execution order of 100. * A second HR assignment rule has an execution order of 200. * If a group has members that fit the conditions defined in the first HR assignment rule, it assigns an agent with the least amount of assigned cases. * If the first HR assignment rule cannot find an agent to assign, the second HR assignment rule runs. {#t_CreatingAnAssignmentRule__ul_xt2_1dx_5lb} |
   | Application | Indicates core application scope the assignment rule applies to. |
   | Active | Check box that specifies the rule is in use. |
   | Applies To ||
   | Table | Table with the records that the assignment rule applies to. Default is the HR Task \[hr_task\] table. |
   | Conditions | Conditions in which the assignment rule applies. Note: When defining conditions like case sensitivity or null values, see API[GlideFilter - Scoped, Global](https://www.servicenow.com/docs/access?context=c_GlideFilterScopedAPI&version=xanadu&pubname=xanadu-api-reference&ft:locale=en-US). |
   | Assign To ||
   | User | User to assign to the case when this rule is applied. |
   | Group | Group to assign to the case when this rule is applied. |
   | Script ||
   | Script | Script to define advanced assignment 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. |
   [Table 1. Assignment Rules form]

   {#t_CreatingAnAssignmentRule__table_bgn_41w_r4}
4. Click Update.

## What to do next

After creating the assignment rule, you can test it to verify that it works.
**Related concepts**   

* [HR Administration](https://www.servicenow.com/docs/FnYCwg~Y5s9xqiJif7DTBg "Administer the Case and Knowledge Management application to improve HR efficiency and make it easier for employees to get the services they need.")

*[\>]: and then


