---
sourceDocument: Xanadu ServiceNow AI Platform Capabilities
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/xanadu/servicenow-platform

 Release :

    - xanadu

ft:locale :

    - en-US

ft:publication_title :

    - Xanadu ServiceNow AI Platform Capabilities

ft:clusterId :

    - platcap

bundleId :

    - platcap

workflow :

    - Platform


---

# Create a CMDB Data Manager policy (in Core UI)

# Create a CMDB Data Manager policy (in Core UI) {#ariaid-title1}

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

Create a policy in the CMDB Data Manager legacy build on Core UI to automatically process CIs life cycle event such as deletion. Applying consistent and standard life cycle policies to CIs helps maintain the health of the CMDB.

## Before you begin

* The life-cycle policies Retire, Archive, and Delete, require that an active [retirement definition](https://servicenow-prod.fluidtopics.net/ZOiBfZIMIpVMTyPlNHyt1w "Specify a retirement definition for a class, to reflect protocols in your organization applicable to the class and to its child classes. These definitions support the transition of CIs through life cycle stages as implemented by CMDB Data Manager life-cycle policies. A class can have a retirement definition by derivation, or by a retirement definition specified for that class.") exists for each targeted class in the policy. If you attempt to create a policy of a policy type for which this requirement applies but isn't met, an error message appears and the operation fails.
* Ensure that any custom subflow that you want to associate with a policy, exists.
* To require a review and an approval for a policy task: Ensure that the Managed By Group attribute is populated in target CIs and that the assigned users have the privilege to approve the policy tasks.
* When [Asset Management](https://www.servicenow.com/docs/access?context=c_AssetManagement&version=xanadu&pubname=xanadu-it-service-management&ft:locale=en-US) is activated, check if there is an asset record associated with that CI before retiring the CI. Check the associated asset record, if there is one, to ensure that the asset state (install_status) is Retired.

{#create-data-manager-policy__ul_thm_jkv_mpb}  
Role required:

* data_manager_admin: Full access to policies
* data_manager_user: Can read and preview policies
{#create-data-manager-policy__ul_qgb_pnd_lpb}

## About this task

Specify for each policy a policy type, a life-cycle subflow, and a set of CIs to operate on as target CIs. Target CIs must be from classes extending the Configuration Item \[cmdb_ci\] table, and with the Delete CMDB Related Entry
policy type, also tables in the Related Entries \[cmdb_related_entry\] table.  
Set condition filters to specify the initial set of CIs that the policy applies to. You can then further narrow down the initial set of CIs by using a CI exclusion list for the policy type. During the final preview of the policy, or from a policy task, you can select individual CIs to also exclude for the policy type. In addition, for operations that require that CIs are in a retired state, [retirement definitions](https://servicenow-prod.fluidtopics.net/ZOiBfZIMIpVMTyPlNHyt1w "Specify a retirement definition for a class, to reflect protocols in your organization applicable to the class and to its child classes. These definitions support the transition of CIs through life cycle stages as implemented by CMDB Data Manager life-cycle policies. A class can have a retirement definition by derivation, or by a retirement definition specified for that class.") are enforced. In these cases:

* CIs that meet the policy filters but aren't retired according to the class retirement definitions, aren't targeted for the policy.
* A filter on the Life Cycle Stage or the Life Cycle Stage Status attributes has no effect if the respective class retirement definition is based on those attributes.

{#create-data-manager-policy__ul_gvy_nnb_j1c}The policy eventually applies to the resulting set of CIs, after applying all those filters.  
Note:  
CMDB Data Manager limits the number of target CIs per task to 10,000. Therefore, when a task exceeds that number, Data Manager automatically creates as many additional tasks as needed to include all the CIs for the task. For example, if you target 30,000 CIs in an attestation task, Data Manager breaks down that task into three tasks, each targeting 10,000 CIs.  
More information:

* About life cycle state definitions, see [Working with CMDB Data Manager](https://servicenow-prod.fluidtopics.net/o9cp2c7DEDKvzl96tTDJdg "CMDB Data Manager is a policy-driven framework for bulk management of CI life cycle operations such as deletion, archival, and attestation. The CMDB Data Manager is a comprehensive and integrated solution that scales to large CMDBs and copes with rapid changes in a cloud-based world.").
* About creating a policy in the CMDB Data Manager in CMDB Workspace, see [Create a CMDB Data Manager policy in CMDB Workspace](https://servicenow-prod.fluidtopics.net/N2KtQqz0J3ocQj3_uU7Dhg "Create a CMDB Data Manager policy to automatically process CIs life-cycle events such as deletion. Applying consistent and standard life-cycle policies to CIs helps maintain the health of the CMDB.").
{#create-data-manager-policy__ul_qhg_cns_dzb}

## Procedure

1. Navigate to AllConfigurationCMDB Data Manager.
2. On the CMDB Data Manager landing page, in the Policies tile, click View Policies.
3. In the CMDB Data Manager Policy and Attributes list view, click New.
4. Fill out the fields in the different sections on the Define Policy tab.  
   Note:  
   Some fields are applicable only to specific policy types. Therefore some of the following fields, might not appear for the policy type that you choose.
   {#create-data-manager-policy__table_fsv_fpx_z4b__entry__2}

   | Field (General) | Description |
   |-|-|
   | Name | Unique name for the policy. |
   | Task Assignment Group | Group to assign the task to. |
   | Task Due In Days | Due date for completing the policy tasks such as attestation tasks. |
   | Needs Review | Check to require a review and an approval of the policy tasks, by the group assignment in CIs' Managed by Group attribute or by an administrator. Otherwise, all policy tasks are approved automatically. |
   | Policy Type | Life-cycle event or data management action, such as Delete or Attestation, that this policy manages, indicating the type of actions to perform on target CIs. |
   | User Group | Group to use as the task assignment group for the Delete CMDB Related Entry policy type. The list is a subset of user groups from the Group \[sys_user_group\] table, where at least one member has a data_manager_user role. |
   | Apply Retention Time | The length of time for retaining archived CIs in the archive table before they are deleted. During the specified retention period, you can use the ServiceNow AI Platform® data archiving feature to restore archived CIs. . |
   [ ]

   {#create-data-manager-policy__table_fsv_fpx_z4b} {#create-data-manager-policy__table_ej1_zqq_wsb__entry__2}

   | Field (Condition Filter) | Description |
   |-|-|
   | Related Entry Table | The related table to apply a Delete CMDB Related Entry policy. The list contains related tables from the Related Entry \[cmdb_related_entry\] table. |
   | Condition Filter | Criteria that CIs must meet to be included for the policy as target CIs. Additional filtering such as a CI exclusion list, can further narrow down the set of target CIs. |
   [ ]

   {#create-data-manager-policy__table_ej1_zqq_wsb} {#create-data-manager-policy__table_mdd_zqq_wsb__entry__2}

   | Field (Action) | Description |
   |-|-|
   | Subflow | A subflow with the actions that will run on the target CIs for the policy. The subflow typically matches the policy type. For example, if Policy type is set to Delete CMDB Related Entry, then set Subflow to Delete Related Entry Configuration Item. Note: The Attestation policy type is not associated with a subflow. |
   [ ]

   {#create-data-manager-policy__table_mdd_zqq_wsb} {#create-data-manager-policy__table_sz2_zqq_wsb__entry__2}

   | Field (Schedule) | Description |
   |-|-|
   | Frequency | How often to run the task. |
   | Start Time | Time to start running the task when it is due to run. |
   [ ]

   {#create-data-manager-policy__table_sz2_zqq_wsb}
5. **Optional:** Click Run filter in the Condition Filter section, to see the resulting list of CIs that match the condition filters.
6. Click Save.
7. Click Preview and wait for an impact analysis for the policy on the Preview Policy Impact page to complete.  
   This analysis estimates the number of CIs that the policy applies to based on the policy filters, any CI exclusion lists, and the life cycle stage of CIs. For example:
   * If the policy type is retired, CIs that meet the policy filters but are already in a retired state, are not targeted for the policy.
   * If the policy type is archive or delete, CIs that meet the policy filters but are not retired, are not targeted for the policy.
   {#create-data-manager-policy__ul_rzv_wcm_qpb}
8. **Optional:** Select CIs in the target CIs list that you want to also exclude for the policy type. Click Exclude CI and then click Recalculate Preview to recalculate the data on the preview page.
9. Click Publish to activate the policy.  
   Unpublished tasks are saved as draft policies.
{#create-data-manager-policy__steps_kql_tfg_32c}

## Result

After you publish a policy:  
* A daily scheduled job processes the published policy and policy tasks are assigned as set in the policy. If the policy is associated with a subflow, then policy tasks trigger the policy subflow. Policy execution issues
  are recorded in an error log with notifications sent to the CMDB Data Manager Administrator.

  If the policy is configured to require an approval for its tasks, then email notifications are sent to members of the assignment group in the Managed by Group attribute of the CI. If the policy is
  associated with a subflow, then a policy task triggers the policy subflow only after the task is approved.
* If the policy is associated with a subflow, then after a policy task is complete, the policy subflow closes the task. For an Attestation policy (which is not associated with a subflow), a user must process all CIs in the task and submit the task to close it.
* For Attestation policies, attestation tasks are assigned to users as specified, and those tasks appear in the [CMDB Workspace](https://servicenow-prod.fluidtopics.net/I__NBWRpmKjGtpFABIzs7w "The CMDB Workspace is an efficient, central, and modernized way for you to work. Use CMDB Workspace to search and explore the CMDB, examine health and recent activities, and access CMDB dashboards and tools to support tasks in your organization.") when those users log in.
* For some policy types, such as Delete, the list of the target CIs is rolled up in a CSV file that is then attached to the task for tracking purposes.
* Stale tasks are set to Closed Cancelled by a daily scheduled job. A task becomes stale when it is still open and not approved after at least 90 days. The number of days after which a task is considered stale is determined by the cmdb.data.manager.stale.task.life.in.days system property.
{#create-data-manager-policy__ul_lwc_hzv_ypb}

## What to do next

* Click View Open Tasks in the Open Policy Tasks tile to track the processing of policy tasks in the CMDB Data Management Task Control list view. The Success Percent column shows the percentage of CIs in the task, for which the task is completed. A CI is counted as complete in an archival task only after the archival process has been fully completed for the CI (and isn't counted as complete while the CI is just staged for archival for example).
* Users log in to the [CMDB Workspace](https://servicenow-prod.fluidtopics.net/I__NBWRpmKjGtpFABIzs7w "The CMDB Workspace is an efficient, central, and modernized way for you to work. Use CMDB Workspace to search and explore the CMDB, examine health and recent activities, and access CMDB dashboards and tools to support tasks in your organization.") to [review and process attestation tasks](https://servicenow-prod.fluidtopics.net/UsbBTFfUuIOmPipMqYx~Ag "Review attestation tasks that are assigned to you or to an assignment group that you belong to in accordance with CMDB Data Manager Attestation policies. Check the physical existence of IT infrastructure or applications associated with CIs in the attestation task and then process those CIs as appropriate.") assigned to them.
* You can open a policy in CMDB Data Manager and click Deactivate to temporarily prevent the policy from running.
* [Manage exclusion lists of CMDB Data Manager (in Core UI)](https://servicenow-prod.fluidtopics.net/gHVGQuypK_jAWBtAVAk_sQ "Create an exclusion list for the various policy types of the CMDB Data Manager, by using the CMDB Data Manager legacy build on Core UI. Policies of a specific policy type will not target the CIs or other records in the exclusion list for that policy type.").
{#create-data-manager-policy__ul_wbp_qyq_lpb}
**Related concepts**   

* [Working with CMDB Data Manager](https://servicenow-prod.fluidtopics.net/o9cp2c7DEDKvzl96tTDJdg "CMDB Data Manager is a policy-driven framework for bulk management of CI life cycle operations such as deletion, archival, and attestation. The CMDB Data Manager is a comprehensive and integrated solution that scales to large CMDBs and copes with rapid changes in a cloud-based world.")

*[\>]: and then


