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.