OBLYTECH Logo
OBLYTECH Logo

Exclude CI relationships from tag-based discovery

To exclude CI relationships from tag-based discovery, open Tag-based Service Traversal Rules, select the preconfigured relationship, clear Active, and submit the form. This requires service_mapping_admin. The change controls relationship traversal when building application services; recalculate relevant existing tag-based services after changing the configuration so you can assess their updated membership.

Understand why untagged CIs enter an application service

Tag-based discovery can include CIs through preconfigured relationships even when those CIs have no tags assigned. A tag match therefore does not explain the entire membership of a resulting application service. Relationships provide another route into the service, which can be desirable for dependent infrastructure but can also extend the map beyond the boundary you intended.

Start with a specific unexpected CI and identify the relationship connecting it to the service’s intended infrastructure. Record the two CIs, their classes, and the relationship direction. This gives you a concrete case to compare after the change. Avoid choosing a rule merely because its relationship name resembles the connection you saw.

The Traversal Rules for Application Services [svc_traversal_rules] table contains the relationships used for this traversal. Preconfigured relationships are identified by a true value in Base System Rule. Their participation can be controlled through Active, while their supplied definitions are protected against modification and deletion. Treat exclusion as a decision about service composition.

If you need help interpreting the connections before choosing a rule, review the CMDB relationships diagram. A relationship’s meaning and direction matter more than whether its line makes a service map look crowded.

Prepare a focused exclusion change

Use an account with service_mapping_admin for excluding a preconfigured relationship. The same role is required for adding or editing tag-based traversal relationships and for recalculating application services. These permissions apply to those specific actions; they should not be treated as a blanket grant to change underlying CMDB data.

Before opening the rule, write down what success means. For example, a service owner might want a particular infrastructure class to stop entering a tag-based service through a selected relationship. Identify both the unexpected member and a legitimate member that should remain. This makes the review more reliable than comparing total CI counts alone.

  • Capture the application service you will use for the initial comparison.
  • Record the candidate rule’s current Active value and Base System Rule value.
  • List other tag-based services that should be reviewed following the configuration change.
  • Agree on which dependencies the service owner expects to retain.

These are recommended change controls, rather than additional product settings. They help distinguish a successful boundary adjustment from a map that has simply become smaller. If several rules appear relevant, review them separately so that you can explain which change produced each result.

Service Mapping Plus 1.16.3 and later offer the Tag-based Service Mapping workspace for mapping application services. The steps below use the Tag-based Service Traversal Rules administration list. The navigation below describes the administration procedure for the traversal-rule configuration.

Exclude CI relationships from tag-based discovery

  1. Navigate to Service Mapping > Administration > Tag-based Service Traversal Rules.
  2. Find the preconfigured relationship you intend to exclude. Use Base System Rule set to true to identify the supplied rules.
  3. Open that relationship and confirm it matches the connection selected during your review.
  4. Clear the Active check box.
  5. Click Submit in the Traversal Rules for Application Services form.

Reopen the rule as a verification step and check that Active is cleared. Record the saved state alongside the original value. If you cannot identify the intended relationship confidently, pause the exclusion and resolve the relationship definition before changing another record.

Do not attempt to delete the preconfigured rule or rewrite its supplied relationship definition. Those operations are restricted for preconfigured relationships. The exclusion procedure uses Active to remove the selected rule from participation while leaving its definition available for future review.

Clearing Active changes the rule for every tag-based service that relies on it, not only the service you are viewing. Before you save, list the other tag-based services that include the same relationship, because a boundary that suits one owner can remove a dependency another owner needs.

Choosing what to exclude works as a selection rather than a reset. Service Mapping ships with preconfigured CI relationships, and tag-based discovery includes CIs through them even when those CIs carry no tags. Once you exclude one relationship, the remaining relationships keep participating in discovery, so the review should centre on the single relationship you identified rather than a general tidy-up of the rule list.

Recalculate existing services and inspect the result

A configuration edit and an existing service’s recalculation are separate steps. After refining the default tag-based discovery configuration, recalculate the relevant application services. Saving an inactive traversal rule is not enough evidence that an existing service now reflects the intended boundary.

  1. Navigate to Service Mapping > Services > Application Services.
  2. Open the relevant application service.
  3. Under Related Links, click Recalculate Service.
  4. Repeat the procedure for the other relevant tag-based services.

Services created before the change are the ones that need recalculating. Recording which ones you recalculated keeps the before-and-after comparison fair, because a service you never recalculated still shows its old membership.

This action requires service_mapping_admin. Once the service has been recalculated, compare its membership with the case you recorded before the change. Check whether the unwanted relationship-based inclusion has been addressed and whether the expected service components remain represented.

If the unexpected CI remains, inspect its actual route into the service before excluding more rules. The presence of a CI by itself does not prove that the rule failed to save. Recheck the saved Active value, the selected service, and whether you recalculated that service. Then revisit the relationship that led you to the rule.

Use the tag and traffic-based Service Mapping configuration guide when the investigation extends to how the service was assembled. Keep a record of the traversal change so that a broader configuration review has a clear starting point.

Keep traversal configuration separate from CMDB repair

The CI relationship editor works with relationships between actual CIs. The base CI can be a parent or child depending on the selected relationship type. A tag-based traversal rule instead determines how a relationship participates in discovery. Confusing those two layers can lead to changing valid CMDB information to solve a service-boundary problem.

If a relationship is factually correct but brings unwanted infrastructure into a tag-based service, investigate traversal participation. If the relationship itself is wrong, investigate the underlying data separately. The guide to creating, editing, and deleting CMDB relationships covers that neighboring task.

Relationship access controls also belong to a separate security concern. CI relationship security involves controls on CI Relationship [cmdb_rel_ci] and the editCIRelations operation on the * table. Do not weaken those controls as a way to make a traversal-rule exclusion possible. Resolve access to the specific action you need.

For help planning this work, see ServiceNow implementation.

Restore participation or define a different relationship

If validation shows that the excluded relationship is needed, the tag-based discovery configuration supports activating preconfigured relationships that are not included by default. Revisit the relationship’s participation and evaluate the resulting services again. Use your recorded starting state to keep the restoration deliberate.

When you need an additional traversal relationship, the administration list provides New and the Traversal Rules for Application Services form. Adding a relationship is a separate configuration decision requiring service_mapping_admin. It should follow a clear requirement for which classes and connections the service needs, rather than serve as a quick replacement for a misunderstood preconfigured rule.

Record the rule, the services recalculated and the membership change before closing the work.

Relationship direction, endpoint types and upgrade access questions answered

Can I use a Service Mapping endpoint relationship as a normal CI relationship?

Implement End Point To:Implement End Point From, Use End Point To: Use End Point From, and Applicative Flow To:Applicative Flow From are reserved for Service Mapping endpoints. The CI relationship editor cannot use these types to connect two CIs.

How does the relationship editor identify a parent or child?

Without suggested relationships selected, Downstream relationships shows connections where the base CI is the parent. Upstream relationships shows connections where the base CI is the child. This distinction can help you interpret a relationship before investigating traversal.

Why is the relationship editor unavailable on a new Brazil instance?

Starting with Brazil, the editor is hidden and no longer activated on new instances as it is prepared for future deprecation. It remains supported, and Unified Map provides the newer relationship-editing experience.

What happens to existing editCIRelations security during an upgrade?

When an instance has security defined for editCIRelations, the upgrade applies it to edit_ci_relations and removes the outdated security. Include that distinction when investigating relationship access after an upgrade.