---
sourceDocument: Brazil Platform security
sourceDocumentLink: https://www.servicenow.com/docs/r/platform-security

 Release :

    - brazil

ft:locale :

    - en-US

ft:publication_title :

    - Brazil Platform security

ft:clusterId :

    - psec

bundleId :

    - psec

workflow :

    - Platform


---

# Explore Scripting Governance Tool

# Scripting Governance Tool features {#ariaid-title1}

Release version: Brazil  
Updated September 10, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 5 minutes to read
Summarize  
![AI sparkle icon](https://servicenow.com/docs/portal-asset/ai-sparkle-icon) Summarized using AI  
This content was generated using new OpenAI-powered functionality. Results are provided on an as is basis and are not guaranteed to be accurate or complete.  

## Summary of Scripting Governance Tool features

The Scripting Governance Tool in the ServiceNow AI Platform provides centralized control over scripting access, introduced in the Zurich release.
It enforces a two-layer permission model that requires users to be members of theConditional Script Writergroup (which grants thesncrequiredscriptwriterpermissionrole) in addition to passing existing field-level ACLs to edit script fields.
This layered security approach helps administrators effectively govern scripting permissions, which is critical since scripting can bypass business logic and fundamentally alter platform behavior.
Show full answer Show less  

## Key Features

* **Two-layer access model:** Users must satisfy both the existing field-level ACL (Layer 1) and be members of the Conditional Script Writer group with the `sncrequiredscriptwriterpermission` role (Layer 2) to edit script fields.
* **Data type ACLs:** Nine data type ACLs enforce Layer 2 permissions for various script-related data types (e.g., `scriptclient`, `htmlscript`, `xml`).
* **Scheduled jobs and properties:** A one-time job after the Zurich upgrade auto-populates eligible users into the Conditional Script Writer group to preserve scripting access, followed by a weekly job that updates membership based on eligibility criteria. Automatic provisioning can be disabled via system properties.
* **Eligibility criteria:** Internal users with the `sncinternal` role plus an additional role qualify for scripting access; external users and those with the `sncexternal` role are excluded to prevent conflicts.
* **Scripting Governance Tool dashboard:** Administrators gain visibility into who has scripting access, which groups and roles contain the scripting permission, and can manage access by adding or removing users from the Conditional Script Writer group. The tool also enables scanning audit logs to identify users who have edited script fields within a specified timeframe.

## Why it matters

Scripting access is a powerful permission that can impact platform integrity by allowing users to read/write data across tables and bypass business rules. Prior to Zurich, access was managed only at the field ACL level without a centralized control point, making governance difficult. The Scripting Governance Tool introduces a mandatory second permission layer and centralized management, enhancing security and simplifying administration.

## Practical implications for ServiceNow customers

* Administrators must manage scripting permissions through the Conditional Script Writer group rather than relying solely on field ACLs.
* Existing users who had scripting access before Zurich must be members of this group post-upgrade to retain access.
* The admin role does not inherently grant scripting access; admins need explicit membership or role assignment.
* The Conditional Script Writer group is a Non-Assignable group type and cannot be used as an assignment group on task or incident records in the UI.
* Proper governance via this tool reduces risk by ensuring only authorized users can modify script fields, maintaining platform security and stability.  
The Scripting Governance Tool provides a single, centralized control for managing scripting access across your ServiceNow AI Platform.

The Scripting Governance Tool, introduced in the Zurich release, gives administrators centralized control over who can edit script fields on the ServiceNow AI Platform. The feature adds a new permission layer built on the Conditional Script Writer group and its child role, <kbd class="ph userinput">snc_required_script_writer_permission</kbd>. Users must be
members of this group to edit any script field, regardless of their existing ACL-based access. This permission layer is enforced through data-type ACLs and maintained by scheduled jobs and system properties.

To manage this feature, ServiceNow AI Platform provides the Scripting Governance Tool --- a dashboard where administrators can see which users have scripting access, scan the instance for users who have edited script fields, and
directly add or revoke scripting access from users.

## Why it matters {#explore-sgt__why_sgt_matters}

Scripting can read and write data across tables, bypass business logic, and alter platform behavior at a fundamental level making scripting access one of the most important permissions to govern on any instance.

Before Zurich, scripting access was controlled solely by ACLs on individual script fields. To determine which users could edit scripts, administrators had to check each ACL individually. There was no single place to view or manage
scripting access across the instance.

Scripting governance feature addresses it by adding a required second layer of access control on top of existing ACL-based permissions. Satisfying a field-level ACL alone is no longer sufficient to edit a script field.
Security administrators can manage scripting access centrally by adding or removing users from the Conditional Script Writer group.

## The two-layer access model {#explore-sgt__two_layer_model}

Scripting governance feature enforces a two-layer access model. Both layers must pass independently before a user can edit any script field. Passing one layer alone is not sufficient.

Layer 1 --- Existing field-level ACL
:   The user must pass the existing ACL on the scripting field (default or custom). This check is unchanged from pre-Zurich behavior.

Layer 2 --- Scripting Governance Tool role check

:   The user must also hold the <kbd class="ph userinput">snc_required_script_writer_permission</kbd> role, which is granted through membership in the Conditional Script Writer group.

Important:  
A user who could edit script fields before the Zurich upgrade --- because their roles satisfied the field-level ACL --- will be blocked after the upgrade unless they also satisfy Layer 2. The
`snc_required_script_writer_permission` role does not grant new scripting access on its own. It only unlocks access for users who already pass Layer 1.

The following table summarizes access outcomes under the two-layer model.
{#explore-sgt__two_layer_model__entry__3}

| Passes field-level ACL (Layer 1)? | Holds `snc_required_script_writer_permission` (Layer 2)? | Can edit script field? |
|-|-|-|
| Yes | Yes | ✅ Yes |
| Yes | No | ❌ No |
| No | Yes | ❌ No |
| No | No | ❌ No |
[ ]

## Data type ACLs {#explore-sgt__section_cy4_24x_x3c}

Scripting governance feature introduces 9 data type ACLs to enforce Layer 2. These are deny unless ACLs that require the <kbd class="ph userinput">snc_required_script_writer_permission</kbd> role for the following
data types:

Data type
:
    * script
    * script_client
    * script_plain
    * script_server
    * email_script
    * html_script
    * html_template
    * xml
    * condition_string

    {#explore-sgt__ul_q5m_m4x_x3c}  
    Note:  
    The admin role does not have scripting access by default. Admin users are subject to the same two-layer check and cannot edit script fields unless they are members of the Conditional Script Writer group or explicitly hold the <kbd class="ph userinput">snc_required_script_writer_permission</kbd> role. To learn more, see [Datatype ACL](IPxujg6cTAysc31uIKvDMQ "The datatype ACL enables you to write ACLs that apply to all fields of a specific type.").

## Scheduled jobs and properties {#explore-sgt__section_at1_w4x_x3c}

As part of the scripting governance feature, the Conditional Script Writer group is introduced, which has the <kbd class="ph userinput">snc_required_script_writer_permission</kbd> role as a child role. When the Zurich
upgrade completes, a one-time scheduled job runs to auto-populate all eligible users to this group so that no one loses scripting access after the upgrade.  
Note:  
* The Conditional Script Writer group uses the Non-Assignable group type. Groups with this type can't be selected as the assignment group on task-based or incident-based records (incident, change request, problem, and other extending tables) through the UI, so the Conditional Script Writer group doesn't appear in assignment group look-ups. Existing records that already have this group set as the assignment group aren't affected.
* The Conditional Script Writer group can no longer be selected as the assignment group on any task or incident based --- through the user interface with the base system configuration.
{#explore-sgt__ul_ssm_xsw_fkc}

Once that job completes, a recurring weekly job is created to keep the group membership up to date. Both jobs and their eligibility criteria are described as follows:

Add users to Conditional Script Writer group
:   A job that runs once immediately after the Zurich upgrade completes. It adds all users who meet the eligibility criteria to the Conditional Script Writer group, so that no user loses scripting access
    after the upgrade. After the job completes, the platform disables it.
:   The job uses the property <kbd class="ph userinput">glide.security.scripting_role.provisioning_job_running</kbd>, which is set to true while the job is running and false after it completes. When the job finishes, it creates the
    property <kbd class="ph userinput">glide.security.scripting_role.auto_provisioning</kbd> and sets it to true.

Update users in Conditional Script Writer group
:   A weekly job that adds new users who meet the eligibility criteria to the group and removes users who no longer meet the eligibility criteria. It is controlled by the
    <kbd class="ph userinput">glide.security.scripting_role.auto_provisioning</kbd> property.{#explore-sgt__table_e21_cpx_x3c__entry__2}

    | Value | Behaviour |
    |-|-|
    | true (default) | The weekly job runs on schedule and adds qualifying users to the group automatically. |
    | false | The job does not run. Users are only added to the group manually by an administrator. |
    [Table 1. Update behavior based on the property]

    {#explore-sgt__table_e21_cpx_x3c}
:
    To disable automatic provisioning, set <kbd class="ph userinput">glide.security.scripting_role.auto_provisioning</kbd> to false in System Properties.  
    Note:  
    The <kbd class="ph userinput">glide.security.scripting_role.auto_provisioning</kbd> property is created at runtime and has a different sys_id on every instance. Reference it by a property name.

## Eligibility criteria {#explore-sgt__section_k5b_kpx_x3c}

Both scheduled jobs use the same criteria to determine which users are added to the Conditional Script Writer group.
{#explore-sgt__table_cmv_kpx_x3c__entry__4}

| Explicit Role plugin | User type | Requirement | Added to group? |
|-|-|-|-|
| Enabled | External | --- | No |
| Enabled | Internal | Must have snc_internal and at least one additional role | Yes |
| Disabled | Any user | Must have at least one role | Yes |
[Table 2. Eligibility criteria]

{#explore-sgt__table_cmv_kpx_x3c}  
Note:  
The snc_external role and the <kbd class="ph userinput">snc_required_script_writer_permission</kbd> role are conflicting roles. ServiceNow AI Platform does not allow both roles to the same user. External users cannot have scripting access.

## Scripting Governance Tool {#explore-sgt__section_m5b_kpx_x3c}

The Scripting Governance Tool is a dashboard that helps administrators manage scripting access on the ServiceNow platform. It provides visibility into users who are members of the Conditional Script Writer
group --- giving a clear picture of how many users can script on your instance.

You can also view which groups contain the scripting role and which roles contain it as a child role. There are two ways to manage scripting access through the tool:

* Manual configuration: Manually add or remove users from the Conditional Script Writer group to control who has scripting access.
* 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.

{#explore-sgt__ul_n5b_kpx_x3c}   

Note:  
Manage scripting access exclusively through the Conditional Script Writer group. Adding the <kbd class="ph userinput">snc_required_script_writer_permission</kbd> role as a child role to other roles or groups reduces your ability to centrally control who can script on your instance.

