Scripting Governance Tool management
Enable or turn off the Scripting Governance Tool on your instance by running the appropriate script. Only users with the security_admin role can run these scripts and modify the associated properties.
Scripting Governance Tool states
Scripting Governance Tool operates in one of two states. The active state determines whether scripting governance policies are enforced and whether users are provisioned to the Conditional Script Writer group.
Note:
- Scripting Governance Tool is enabled by default. You can choose to turn off.
- You must elevate your role to
security_adminto enable or turn off Scripting Governance Tool.
|
States |
Behavior of Scripting Governance Tool |
|---|---|
|
Enabled |
|
|
Disabled |
|
To turn off Scripting Governance, navigate to All > Scheduled Script Executions (sysauto_script_list.do) and run the Disable Scripting Governance script to deactivate Scripting Governance Tool on your instance.
Running this script performs the following actions:
- Disables the
glide.security.scripting_role.provisioning_job_runningproperty. - Disables the
glide.security.scripting_role.auto_provisioningproperty. - Disables the
glide.security.scripting_governance.enabledproperty. - Disables the Add Users to Conditional Script Writer Group and Update Users in Conditional Script Writer Group scheduled jobs.
- Removes all users from the Conditional Script Writer Group through a scheduled job.
Enable scripting governance
To enable Scripting Governance, navigate to All > Scheduled Script Executions (sysauto_script_list.do) and execute the Enable Scripting Governance script to activate Scripting Governance Tool on your instance.
Running this script performs the following actions:
- Enables the
glide.security.scripting_role.provisioning_job_runningproperty. - Enables the
glide.security.scripting_governance.enabledproperty. - Enables the Add Users to Conditional Script Writer Group and Update Users in Conditional Script Writer Group scheduled jobs.
- Schedules the Add Users to Conditional Script Writer Group job to run.
--- title: Scripting Governance Tool management description: Enable or turn off the Scripting Governance Tool on your instance by running the appropriate script. Only users with the security\_admin role can run these scripts and modify the associated properties. locale: en-US canonical_url: https://www.servicenow.com/docs/r/platform-security/manage-sgt.html release: brazil topic_type: reference last_updated: "2026-09-10" reading_time_minutes: 2 keywords: [Scripting Governance Tool, SGT, scripting, Conditional Script Writer] breadcrumb: [Scripting Governance Tool, Access Management] --- # Scripting Governance Tool management Enable or turn off the Scripting Governance Tool on your instance by running the appropriate script. Only users with the `security_admin` role can run these scripts and modify the associated properties. ## Scripting Governance Tool states Scripting Governance Tool operates in one of two states. The active state determines whether scripting governance policies are enforced and whether users are provisioned to the Conditional Script Writer group. **Note:** - Scripting Governance Tool is enabled by default. You can choose to turn off. - You must elevate your role to `security_admin` to enable or turn off Scripting Governance Tool. <table id="table_chd_vxm_djc"><thead><tr><th> States </th><th> Behavior of Scripting Governance Tool </th></tr></thead><tbody><tr><td> Enabled </td><td> - Scripting Governance Tool and all associated ACLs are active on the instance. - Users are evaluated against scripting access rules and assigned to the appropriate script writer groups. - The `security_admin` role can run scans to identify users with scripting access and manage group membership. - Scripting governance policies are enforced across all applicable records and transactions. - Audit logs and visibility into scripting access are available to the security admin. </td></tr><tr><td> Disabled </td><td> - Scripting Governance Tool and all associated ACLs are deactivated on the instance. - No scripting governance policies are enforced. Users are not evaluated or assigned to script writer groups. - Existing group memberships from a prior enabled state are preserved but have no enforcement effect. - The Scripting Governance Tool interface remains accessible to the security admin but scanning and access management actions are inactive. - Scripting Governance Tool can be re-enabled by the `security_admin` role at any time without data loss. </td></tr></tbody> </table>## Disable scripting governance To turn off Scripting Governance, navigate to **All** > **Scheduled Script Executions** \(`sysauto_script_list.do`\) and run the **Disable Scripting Governance** script to deactivate Scripting Governance Tool on your instance. Running this script performs the following actions: - Disables the `glide.security.scripting_role.provisioning_job_running` property. - Disables the `glide.security.scripting_role.auto_provisioning` property. - Disables the `glide.security.scripting_governance.enabled` property. - Disables the **Add Users** to **Conditional Script Writer Group** and **Update Users** in **Conditional Script Writer Group** scheduled jobs. - Removes all users from the **Conditional Script Writer Group** through a scheduled job. ## Enable scripting governance To enable Scripting Governance, navigate to **All** > **Scheduled Script Executions** \(`sysauto_script_list.do`\) and execute the **Enable Scripting Governance** script to activate Scripting Governance Tool on your instance. Running this script performs the following actions: - Enables the `glide.security.scripting_role.provisioning_job_running` property. - Enables the `glide.security.scripting_governance.enabled` property. - Enables the **Add Users** to **Conditional Script Writer Group** and **Update Users** in **Conditional Script Writer Group** scheduled jobs. - Schedules the **Add Users** to **Conditional Script Writer Group** job to run.
| title | Scripting Governance Tool management |
| description | Enable or turn off the Scripting Governance Tool on your instance by running the appropriate script. Only users with the security\_admin role can run these scripts and modify the associated properties. |
| locale | en-US |
| canonical_url | https://www.servicenow.com/docs/r/platform-security/manage-sgt.html |
| release | brazil |
| topic_type | reference |
| last_updated | 2026-09-10 |
| reading_time_minutes | 2 |
| keywords | Scripting Governance ToolSGTscriptingConditional Script Writer |
| breadcrumb | Scripting Governance ToolAccess Management |