System Clone: restoring status of "Included in System Clone" attribute for Preservers?

Hangmanmio
Tera Contributor

Hello all, 

I've accidently changed the status of the attribute "Included in System Clone" from Preserver table in the prod instance from "true" to "false". The records "disappeared", however they are still in the table. Long story short, after some research (Solved: What is the field "Include in System Clone" do whe... - ServiceNow CommunityKB0999587) I figured that the table has a pre-defined filter set that prevents customer to see records with "false" value for that attribute. In fact, there is an "allow if" ACL granting "read" access to Clone Admins if the "Include in System Clone" is set to TRUE, which looks like the source of my problems. However, it is a OOTB ACL and I am not willing to change it, if I am not sure how it's affecting the whole instance. 

So, my question is: does anyone of you know how to restore the status of Preserver records to "Included in System Clone" = true? Or how to revert back to the OOTB list of Preservers, without a roll back of the whole instance?

 

Thanks & Regards!

 

1 REPLY 1

pavani_paluri
Giga Guru

Hi @Hangmanmio ,

 

Elevate your permissions temporarily

The key here is that only users with Clone Admin role can see Preserver records with Included in System Clone = false. So:

Log in as a user with the clone_admin role.

If you don’t have one, you might need to ask your system admin to grant your user this role temporarily.

2. Run a background script to update the records

Once you have visibility, run a script to flip the attribute back to true for those Preserver records.

Here’s a sample script you can run in Scripts - Background:

// Get all Preserver records where Included in System Clone is false
var preserverGR = new GlideRecord('sys_preserver');
preserverGR.addQuery('include_in_system_clone', false);
preserverGR.query();

while (preserverGR.next()) {
preserverGR.include_in_system_clone = true; // Set back to true
preserverGR.update();
}

gs.print('All Preserver records restored to Included in System Clone = true');


This script updates all Preserver records currently set to false back to true.

After running, those records should be visible again to users without clone_admin.

3. Verify and remove clone_admin role (if needed)

After the fix, verify that the records appear again normally.

Remove the clone_admin role from your user if it was added just for this fix.

 

Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Pavani P