Create a policy through script

  • リリースバージョン: Australia
  • 更新日 2026年03月12日
  • 所要時間:1分
  • 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.

    始める前に

    Role required: sn_itom_ccg.governor

    手順

    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.

      Refer to one of the base system script-based policies as an example for creating the custom policy.

    4. Select Submit.

    次のタスク

    Test the policy to make sure that it is working properly. For more information, see Test the policy.