To create a SaaS security posture rule from Inventory page using NGL query:
- Navigate to API-enabled Protection > Security Posture SaaS > Inventory.
- Click the Resources tab.
- Beside + ADD FILTER, click the Switch to NGL icon.
- On the search edit box, enter your NGL query. For more information, see Netskope Governance Language.
- Click Search. You will see the list of resources that match the filter.
- Beside + ADD FILTER, click the Create Rule icon. The New Custom Rule page opens.
- Under Rule Name, enter a rule name.
- Under Severity, select the rule severity from the drop-down list.
- Under Definition, you will see the NGL query you used to filter.
Tip: Click Validate Definition to validate the rule and fix any syntax errors. - Under the Category tab, specify the category, and sub-category.
- (Optional) Under the Remediation tab and enter the manual remediation steps.
- (Optional) Under the Description tab and a short description of the custom rule.
- Click Save to save the rule. The rule is displayed in the Rules section of the Rules page.
- Navigate to Policies > Security Posture, click Apply Changes.
The rule is displayed in the Policies > Security Posture menu > Rules tab. You can add this rule to the policy.

