- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2018 02:28 AM
Hi Experts,
I have a requirement to remove the HR confidential data after cloning. Is there any issues if we exclude the table from the exclude tables list.
Is there any other way to hide the hr data for admins such that admins should not be able to see the data.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2018 05:00 AM
Please use exclude tables module under clone, to skip any data to be copied.
There wont be any issues if you do exclude.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2018 04:05 AM
Hi Priya,
One such option would be to get the data deleted from HR table when clone is in place by use of below background script.
var gr = new GlideRecord('hr_table_name');
gr.query();
gr.deleteMultiple();
Thanks,
Jaspal Singh
Hit Helpful or Correct on the impact of response.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2018 05:00 AM
Please use exclude tables module under clone, to skip any data to be copied.
There wont be any issues if you do exclude.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2018 08:13 AM
Just exclude your HR tables when you request cloning
https://docs.servicenow.com/bundle/kingston-platform-administration/page/administer/managing-data/task/t_ExcludeATableFromCloning.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2018 12:17 AM
Thank you everyone for quick help. Appreciate it!
I have included the tables in the exclude tables in the clone app.
Along with this I have also written the BS to delete the existing records.