OBLYTECH Logo
OBLYTECH Logo

Read how the compliance score is calculated for an entity

An entity compliance score in ServiceNow can be calculated in one of two ways. The existing method averages the controls directly tied to the entity. The hierarchy method also averages the scores of immediate downstream entities, so a non-compliant child can pull the parent score down. The Entity hierarchy based scoring property decides which method applies.

What the direct-control method measures

Under the existing method, an entity’s score is the average of the controls attached directly to that entity. Controls attached to child entities do not enter the figure. A parent can therefore keep a clean score while one of its children is failing, and the parent’s number gives no hint of the problem unless someone opens the child.

Take a parent entity with two direct controls, both compliant. Its score is 100. Now suppose one of its child entities has two controls, one compliant and one non-compliant. That child scores 50. The parent stays at 100, because the child’s controls sit outside its calculation.

Why the parent number can mislead a reader

A score built from direct controls answers a narrow question: how well does this entity’s own control set hold up? Readers who assume the figure rolls up the whole tree will interpret it wrongly. Put a short note beside any report that shows entity scores, stating which method produced the numbers, so readers compare them against the right question.

How the hierarchy-based calculation works

With hierarchy-based scoring turned on, an entity’s score is the average of two values: the average of its immediate downstream entities’ scores, and the average of its direct controls. In plain notation, the calculation is Average [Average (downstream entities) + Average (direct controls)].

Take a parent with two child entities, each scoring 50, and two direct controls, both compliant. The downstream average is 50. The direct-control average is 100. The parent score is (50 + 100) divided by 2, which gives 75.

Now take a parent with three children scoring 100, 50 and 0. Their average is 50. If the parent’s own direct controls average 100, the parent score is again 75. Two very different child patterns produce the same parent figure, so read the child scores alongside the parent when you investigate a number.

Why immediate children feed the parent

The formula reads the score of each immediate downstream entity, not the controls underneath those entities. Each child’s score is what reaches the parent, and deeper entities reach the parent through the children in between. Confirm how your tree is nested before you read a parent score, so you know which children sit directly beneath it.

What an average can hide

An average smooths out a single failure. A parent with four healthy children and one failing child can still show a high score, and a single non-compliant control on the parent is diluted by the other inputs. Look at the individual children when a parent score looks better than the underlying facts.

Preparing the entity tree before you switch

Preparation matters more than the switch itself. Work through these items before anyone touches the property.

  • List the parent entities that people read scores for, and the child entities that sit beneath each one.
  • Record the current score of each parent so you can explain any change afterward.
  • Identify the reports, dashboards or reviews that display those scores, and note which question each one answers.
  • Confirm which people hold the sn_compliance.admin or sn_compliance.manager role, since the property and job steps depend on it.
  • Choose a time to run the update job when reviewers are not reading entity scores.

Turning on hierarchy-based scoring

Switching methods starts with a property change. The Entity hierarchy based scoring property defaults to false, which keeps the direct-control calculation. Setting it to true switches the calculation to the hierarchy method. Labels and menu paths can differ between releases, so confirm each name on your instance before you start.

Role required: sn_compliance.admin, sn_compliance.manager

  1. Go to All > Policy and Compliance > Administration > Properties.
  2. Select the Entity hierarchy based scoring property.
  3. Set the property to true.

The property change does not refresh scores that already exist. Those are updated by the job described in the next section, so do not treat the switch as finished at this point.

Recalculating existing scores with the update job

The Update compliance scores for hierarchy entities job recalculates the scores of all entities against the current value of the property. Run it each time you switch the value. Skipping the run after a change leads to inconsistent entity scores, so treat it as part of the change rather than a later clean-up step.

Before you run the job, deactivate the Compliance Score V2 scheduled job, and keep it deactivated until the update job finishes.

  1. Go to All > Scheduled Definition > Scheduled Jobs.
  2. Select the Update compliance scores for hierarchy entities on-demand job from the list.
  3. Select Execute Now in the Scheduled Script Execution Update compliance scores for hierarchy entities.

When the update job has finished, make the Compliance Score V2 scheduled job active again, then check that the new figures match the method you chose.

Choosing a method for your entity structure

Choose the method by the question each score must answer. The direct-control method suits a review of each entity’s own controls. The hierarchy method suits a parent-level view that should reflect the condition of the entities beneath it. Decide before you change the property, because the update job recalculates scores for all entities.

A workable sequence is to list the parent entities that leadership or auditors read, note each one’s current score, and then mark which parents should pick up child results. Typically, a parent that must show a failing child needs the hierarchy method. A parent used to review its own control set usually keeps the direct-control method. Write the decision next to the entity list, so the reasons survive a change of owner.

Before you map parents and children, review the entity model classes, types, tiers and filters, since those shape the tree you are scoring. For help planning this work, see ServiceNow implementation.

Checks to run after a scoring change

Run these checks on a small set of entities whose controls you know before you rely on the new numbers.

  • Pick a parent with a known failing child. Confirm its score moved in the direction the selected method predicts.
  • Pick an entity with two direct controls of known status. Confirm its score matches the average of those controls under the method you are running.
  • Confirm the update job ran to completion before you read the new figures.
  • Confirm the Compliance Score V2 scheduled job is active again.

If the scores feed a metric, the metric definition should match the method in use. The steps for that are in calculated metric definitions for GRC metrics. For the wider setup around these scores, start with the governance, risk and compliance section or the ServiceNow risk pages.

Questions about the compliance score method

Why does a parent score stay high after a child control fails?

The parent is probably using the direct-control method, which leaves child controls out of its average. Check the value of the Entity hierarchy based scoring property first. If the property is set to true and the parent still did not move, confirm that the update job ran after the last change, since scores that were not recalculated will not reflect the new method.

Does the hierarchy method average each child control separately?

No. The parent takes the score of each immediate downstream entity and averages those scores with its direct-control average. It does not pull each child control into the parent’s average one by one, so the effect of any single control is diluted by the scores around it.

Should all entity trees use hierarchy-based scoring?

Not necessarily. A parent that leadership reads as a summary of its children benefits from the hierarchy method. An entity score used for a narrow control review usually fits the direct-control method better, because the number then reflects its own controls alone. The right choice depends on the question the score answers, not on which method sounds more thorough.

What should I do to switch back to the direct-control method?

Set the Entity hierarchy based scoring property back to false, then run the Update compliance scores for hierarchy entities job using the same deactivate, run and reactivate sequence. The job recalculates scores against whatever value is in place when it runs, so the same discipline applies in both directions.