Create a policy through script
task brazil Updated Sep 10, 2026 1 min read ccg-create-policy-through-script.md
Use the ServiceNow platform native scripting mechanism to define the policy condition. You can externalize the decision making to script includes and reuse the code across different policies.
Before you begin
Role required: sn_itom_ccg.governor
Procedure
-
Navigate to Cloud Configuration Governance > Policies.
-
Select New.
-
On the Policy form, fill in the fields.
For the description of the form fields, see Cloud Configuration Governance Policy form.
Refer to one of the base system script-based policies as an example for creating the custom policy.
-
Select Submit.
What to do next
Test the policy to make sure that it is working properly. For more information, see Test the policy.
42 lines · 1.7 KB
---
title: Create a policy through script
description: Use the ServiceNow platform native scripting mechanism to define the policy condition. You can externalize the decision making to script includes and reuse the code across different policies.
locale: en-US
canonical_url: https://www.servicenow.com/docs/r/it-operations-management/itom-cloud-accelerate/ccg-create-policy-through-script.html
release: brazil
product: ITOM Cloud Accelerate
classification: itom-cloud-accelerate
topic_type: task
last_updated: "2026-09-10"
reading_time_minutes: 1
breadcrumb: [Cloud Configuration Governance policies, Use, Cloud Configuration Governance, ITOM Cloud Accelerate, IT Operations Management]
---
# Create a policy through script
Use the ServiceNow platform native scripting mechanism to define the policy condition. You can externalize the decision making to script includes and reuse the code across different policies.
## Before you begin
Role required: sn\_itom\_ccg.governor
## Procedure
1. Navigate to **Cloud Configuration Governance** > **Policies**.
2. Select **New**.
3. On the Policy form, fill in the fields.
For the description of the form fields, see [Cloud Configuration Governance Policy form](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/it-operations-management/itom-cloud-accelerate/ccg-policy-form.md).
Refer to one of the base system script-based policies as an example for creating the custom policy.
4. Select **Submit**.
## What to do next
Test the policy to make sure that it is working properly. For more information, see [Test the policy](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/it-operations-management/itom-cloud-accelerate/test-ccg-policy.md).
| title | Create a policy through script |
| description | Use the ServiceNow platform native scripting mechanism to define the policy condition. You can externalize the decision making to script includes and reuse the code across different policies. |
| locale | en-US |
| canonical_url | https://www.servicenow.com/docs/r/it-operations-management/itom-cloud-accelerate/ccg-create-policy-through-script.html |
| release | brazil |
| product | ITOM Cloud Accelerate |
| classification | itom-cloud-accelerate |
| topic_type | task |
| last_updated | 2026-09-10 |
| reading_time_minutes | 1 |
| breadcrumb | Cloud Configuration Governance policiesUseCloud Configuration GovernanceITOM Cloud AccelerateIT Operations Management |