Manage Scripting Governance Tool
Summarize
Summary of Manage Scripting Governance Tool
The Scripting Governance Tool in ServiceNow helps enforce scripting policies and manages user access to scripting capabilities by automatically assigning users to script writer groups. It operates in two states: enabled and disabled. By default, the tool is enabled to ensure governance over scripting activities in your instance.
Show less
Key Features
- Enable/Disable Control: Only users with the
securityadminrole can enable or disable the Scripting Governance Tool by running specific scheduled scripts in the Scheduled Script Executions module. - Governance Enforcement: When enabled, scripting governance policies and ACLs are active. Users are evaluated against scripting access rules and assigned accordingly to Conditional Script Writer groups.
- Access Management: The tool automatically provisions and manages script writer group memberships, with audit logs available to the
securityadmin. - Non-disruptive Disable: Disabling the tool deactivates enforcement and user evaluation but preserves existing group memberships without enforcement effect, allowing easy reactivation later without data loss.
- Scheduled Jobs: Enabling or disabling the tool respectively activates or deactivates scheduled jobs that add or update users in the Conditional Script Writer group.
How to Enable or Disable Scripting Governance
To manage the state of the Scripting Governance Tool:
- Disable: Run the "Disable Scripting Governance" script via
All > Scheduled Script Executions. This disables key properties related to scripting role provisioning and governance, stops scheduled jobs, and removes users from the Conditional Script Writer group. - Enable: Run the "Enable Scripting Governance" script via
All > Scheduled Script Executions. This re-enables the necessary properties and scheduled jobs to resume user provisioning and enforcement of scripting policies.
Practical Benefits
ServiceNow customers benefit from centralized control over scripting permissions, improved security compliance, and auditability. The tool ensures that only authorized users gain scripting access and that governance policies are consistently enforced across the instance. The ability to toggle the tool on or off safely provides flexibility during maintenance or troubleshooting.
Enable or disable 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.
- Scripting Governance Tool is enabled by default. You can choose to disable.
- You must elevate your role to security_admin to enable or disable Scripting Governance Tool.
| States | Behavior of Scripting Governance Tool |
|---|---|
| Enabled |
|
| Disabled |
|
Disable scripting governance
To disable Scripting Governance, navigate (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 (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.