Skip to content
Release: Australia · Updated: 2026-04-09 · Official documentation · View source

Scan for users who have scripted

Scan your instance to find users who have scripted within a specific time frame. The scan queries the audit logs and identifies any user who has performed write or update to a table having script field.

Before you begin

Role required: security_admin

Important: You must have elevate your role security_admin. See Elevate to a privileged role.

Procedure

  1. Navigate to All > System Security > Scripting Governance Tool.

  2. Select Scan for scripting users.

  3. Select a time period from the drop-down list.

    • 7 days
    • 15 days
    • 30 days
    • 90 days
    • 120 days
    • 180 days
Image omitted: sgt-scan-scripting.png
Scan for scripting users
The default value is **180 days**.
  1. Select how you want to run the scan.

    • Run this scan now — starts the scan immediately.
    • Schedule this scan — runs the scan at a time you specify.
    • Select Done to scan.
  2. Select the scan record from View scan section.

    The following details are available on the View scan section.

    LabelDescription
    Scan numberA unique identifier for the scan, for example SGTSCAN0000001.
    StatusStatus of the scan
    CompletedCompletion state of the scan
    ScheduledScheduled time of execution for the scan
    Created byUser who initiated the scan
    ActionActions the scan took
Image omitted: sgt-view-scans.png
View scan
  1. Select the scan record to open the scan results page.

    The scan results page opens and displays the following information:

    • Scan record number — a unique identifier for the scan, for example SGTSCAN0000001.
    • Date range — the start and end timestamps of the period that was scanned.
    • Users that have scripted — the total count of users in the Conditional Script Writer group and has <> role who modified at least one script field within the scanned period.
    • Users that have not scripted — the total count of users in the group who made no scripting changes within the scanned period. These users are candidates for access review and removal.
    • Users that have scripted table — a detailed list of active scripters, showing each user's Name, Last scripted date, Title, and Department. Note: If the Users that have scripted count is zero and the table shows No data to display, no users in the ServiceNow AI Platform have scripted within the selected time period.
Image omitted: sgt-view-scans-result.png
Scan results page
  1. Review the results and identify users who require action.

  2. To act on the results, select Manage conditional script writers on the scan results page.

    The Manage users in the conditional script writer group opens, where you can review group membership and remove users who no longer require scripting access using the Schedule removal option. To learn more about how to schedule removal, see Remove users from the Conditional Script Writer group.

Result

The scan produces a clear picture of active and inactive scripters on the ServiceNow AI Platform.

What to do next

After reviewing the scan results, remove any users from the Conditional Script Writer group who no longer require scripting access. Removing a user from the group does not affect any other permissions they hold on the ServiceNow AI Platform.