In the list view of chg_template, why do only templates created by the logged in user appear?

matthew_hughes
Kilo Sage

In ServiceNow, what we've noticed is that when a logged in user goes to the Change Templates (chg_template) table, the list only shows the templates created by the current logged in user:

matthew_hughes_0-1794988950521.png

 

This is also reflected on the Change Model Landing Page:

matthew_hughes_1-1794989064559.png

 

 

However, as an admin user, I can see all of the available templates:

matthew_hughes_2-1794989117229.png

matthew_hughes_3-1794989162612.png

 

I was just wondering if anyone knows what is causing this behaviour as we'd like to amend it so that members of the same assignment group can consistently access and reuse relevant change templates.

 

 

 

5 REPLIES 5

NagaChandaE
Mega Sage

Hi @matthew_hughes ,

This comes from the out-of-box business rule SNC Template Query (before query on sys_template). For users without the template_editor_global role, it limits the list to templates where one of these is true:

  • Global is checked
  • User is the logged-in user
  • Groups includes one of the user’s groups

Admins have the role, so they see everything.

NagaChandaE_0-1794990331450.png

 

To fix it:

  1. Add the assignment group to the Groups field on each template, so all group members can see it.
  2. Or check Global if everyone should see the template.
  3. Or give the users the template_editor_global role (they can then see and edit all templates).

Please don’t change the business rule itself. It’s marked High Risk and will be overwritten on upgrade.

If a template already has the right Groups or Global value and is still hidden, check the user’s group membership and any custom ACLs or query business rules on the table.

glideFather
Tera Patron

ahoy @matthew_hughes,

 

you can add new columns to the [change_template] table list view, there's a user:

glideFather_0-1794991003607.png

 

As an admin, you can check what template is created for what user and eventually you can update the user to group to make it available for more users. Otherwise the template is for "personal" use only

Hi @glideFather 

 

When I click on that as admin, I get the below:

matthew_hughes_0-1794991847646.png

 

Hi @matthew_hughes ,

Open the template record and select the Global checkbox. If the field isn’t on the form, add it through Form Layout (Configure > Form Layout) and then tick it.