---
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


---

# CMDB groups

# CMDB groups {#ariaid-title1}

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

A CMDB group is a collection of CIs that lets you apply CI actions collectively to all the CIs that are members in the group.
For example, a CMDB CI Lifecycle Management API can use a CMDB group scriptable API to retrieve the group's list of CIs, and then apply a CI Lifecycle Management action collectively to all the CIs. You can also use a CMDB group with the [Dynamic CI Group](https://servicenow-prod.fluidtopics.net/rQbD5myq1SSPhRlZi3skAQ "The Dynamic CI Group method for populating an application service, automatically generates a dynamic CI group. The members of the CMDB group that the dynamic CI group is based on, populates the application service. The application service continuously synchronizes with the CMDB group to reflect any changes in membership in the CMDB group.") service population method, to populate an application service.

## Group type {#cmdb-groups__section_dgj_gjc_4z}

A CMDB group is configured with a group type.

* If a CMDB group type is set to Health, then the CIs in the group can be monitored by CMDB Health, and the aggregated health is reported for the group as a whole in the CMDB group view dashboard. For example, you can monitor health only for CIs in a specific location.
* If a CMDB group is set to CMDB Workspace, then that group appears in the [Management view](https://servicenow-prod.fluidtopics.net/GLuGcKL5UFzylxe0LYOyGQ "The Management view provides CMDB Admins with quick access to key management tools and deep insights into CMDB health and activities. The view provides and details such as duplicate CIs and recent activities in the CMDB.") 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.").
{#cmdb-groups__ul_pzl_vxr_nrb}

## Create and populate a CMDB group {#ariaid-title2}

Depending on the group type, you can populate a CMDB group by manually adding
individual CIs, selecting saved CMDB queries, or building encoded queries in the CMDB group
itself. The resulting CIs from each query are added as members to the group.

### Before you begin

Roles required:

* To view CMDB groups - itil
* To use a CMDB queries - cmdb_query_builder on top of itil
* To manually add CIs - itil or asset

{#populate-cmdb-grp-saved-query__ul_c1h_3xk_bx}

Also, to populate a CMDB group using a CMDB query, a saved CMDB query must exist.

### About this task

The system property glide.cmdb.group.max_ci_limit determines the maximum number of CIs that a CMDB group can contain (by default 10,000). Once the specified limit is reached, CIs can't be added to the group
unless you increase the value of that property.

### Procedure

1. Navigate to AllConfigurationCMDB Groups.
2. In the CMDB Groups pane, select New.
3. Fill out the form, right-select the title bar and select Save.  
   {#populate-cmdb-grp-saved-query__table_lr4_xkc_4z__entry__2}

   | Field | Description |
   |-|-|
   | Group Name | A unique name for the group. |
   | Group type | * Default: Basic group type which can be populated by manually adding CIs, saved queries, and encoded queries. * Health: Sets CMDB Health to monitor the health of the group CIs and aggregate health results for the group as a whole. Can be populated only by encoded queries. Note: Dynamic filters are not supported when populating this type of CMDB groups. * CMDB Workspace: Custom class group which appears in the CI Overview panel in [CMDB Workspace store app](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."). Can be populated only by encoded queries. {#populate-cmdb-grp-saved-query__ul_jrr_jlc_4z} |
   [Table 1. CMDB Group form]

   {#populate-cmdb-grp-saved-query__table_lr4_xkc_4z}
4. To use saved CMDB queries:
   1. Select CMDB Group Contains Saved Queries and then select Add Query.
   2. Select a query from the Query Builder Saved Query list.
   3. Select Submit.

   {#populate-cmdb-grp-saved-query__substeps_qxk_cjy_1x}  
   The returned results consists of the CIs from all the classes that are referenced in the saved query. Those CIs become members of the CMDB group.
5. To manually add CIs:
   1. Select CMDB Group Contains Configuration Items and then select Edit Manual CI.
   2. **Optional:** Add filters.
   3. Select CIs in the Configuration Item list and select the '+' icon at the bottom.
   4. In the Group members list, select the CIs to add to the group.
   5. Select Save or Save and Exit.
   6. In the Save Confirmation dialog box, select OK.
   7. Select Submit.
   {#populate-cmdb-grp-saved-query__substeps_ffp_4zw_1x}
6. To use encoded queries:
   1. Select CMDB Group Contains Encoded Queries and then select New.
   2. Fill out the CMDB Group Contains Encoded Query form with the query conditions that filter the CIs to be included in the group.  
      Note:  
      Dynamic filters aren't supported for CMDB health-type groups, even though it's possible to add them in a condition clause.
      {#populate-cmdb-grp-saved-query__table_dht_rq2_2wb__entry__2}

      | Field | Description |
      |-|-|
      | Class | Class for which the encoded query applies to. |
      | CI Overview Condition | Filter that is used in the calculation for the CI Overview chart in [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."). Applies only if the sn_cmdb_ws.ci_overview.enable_simple_condition system property is set to true (false by default). Improves performance by yielding less results when there is a large amount of data in an environment that hasn't migrated to CSDM. This condition isn't used when selecting Show All CI. |
      | Condition | Filters the CIs that are included in the group. Used if CI Overview Condition isn't applicable. |
      [ ]

      {#populate-cmdb-grp-saved-query__table_dht_rq2_2wb}
   3. Select Submit.
   {#populate-cmdb-grp-saved-query__substeps_f1m_cbd_4z}

### What to do next

Select Show All CI to show all CIs from all the result columns of the query. However, only CIs from CMDB tables are shown.
**Related concepts**   

* [Exploring CMDB Query Builder](https://servicenow-prod.fluidtopics.net/7QLTrbVhLAwEN4IKv6ViLg "The CMDB Query Builder enables you to build complex infrastructure and service queries that span multiple CMDB classes, non-CMDB tables, and that involve many CIs that are connected by different relationships.")

## Show CI Lifecycle Management details for CMDB group CIs {#ariaid-title3}

Display CI Lifecycle Management operational state and CI actions that apply to the
CIs that are members of a CMDB group.

### Before you begin

Role required: none

### About this task

If the CMDB group is based on a CMDB query, then the query runs in real-time and displays the resulting CIs. If the query does not complete successfully due to timing out or for other reasons, then appropriate error messages are displayed.

### Procedure

1. Navigate to AllConfigurationCMDB Groups.
2. On the CMDB Groups page, click a CMDB group.
3. Click Show All CI.  
   {#show-cmdb-group-cis__table_a3g_wn2_bx__entry__2}

   | Field | Description |
   |-|-|
   | Configuration Item | CI group member. |
   | Class | Class of CI group member. |
   | Operational Status | CI Lifecycle Management operational state of the CI such as 'Repair in Progress' or 'Operational'. Possible operational states are defined in the choice list of the Operational status field in the cmdb_ci table. |
   | Actions | CI Lifecycle Management actions that apply to the CI such as 'Cloning' and 'Provision'. Possible actions are defined in the CMDB CI Actions \[statemgmt_cmdb_actions\] table. |
   [ ]

   {#show-cmdb-group-cis__table_a3g_wn2_bx}
**Related concepts**   

* [CMDB CI Lifecycle Management (legacy)](https://servicenow-prod.fluidtopics.net/a0joEf0edpM9z8wMvDbQKg "From the time of its creation to the time that it is no longer needed, a CMDB CI would typically transition through several operational states while undergoing various operations. CI LIfecycle Management provides the mechanism to define states and actions for a CI and lets you apply appropriate actions based on a CI's state to tailor the management of CI lifecycle to business needs.")

*[\>]: and then


