{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":30951,"path":"it-operations-management/itom-cloud-accelerate/ccg-create-policy-through-script.md","title":"Create a policy through script","bundle":null,"doc_type":null,"release":"australia","body":"\n# Create a policy through script\n\nUse 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.\n\n## Before you begin\n\nRole required: sn\\_itom\\_ccg.governor\n\n## Procedure\n\n1.  Navigate to **Cloud Configuration Governance** &gt; **Policies**.\n\n2.  Select **New**.\n\n3.  On the Policy form, fill in the fields.\n\n    For the description of the form fields, see [Cloud Configuration Governance Policy form](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/it-operations-management/itom-cloud-accelerate/ccg-policy-form.md).\n\n    Refer to one of the base system script-based policies as an example for creating the custom policy.\n\n4.  Select **Submit**.\n\n\n## What to do next\n\nTest the policy to make sure that it is working properly. For more information, see [Test the policy](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/it-operations-management/itom-cloud-accelerate/test-ccg-policy.md).\n\n"}}