Skip to main content
rarora
Staff
Staff

Technical Tip: Edit security policy via CLI to add security profiles

Description
This article describes how to Edit security policy via CLI to add security profiles.

Related document.
https://docs.fortinet.com/document/fortigate/6.2.1/cli-reference/242620/firewall-policyExternal

Solution
In the below image, policy 1 does not have any security profiles added to it.



 
 
'show full-configuration' to view attached security profiles, will not give any result.
Also, modifying or attaching the security profiles will fail as depicted below:
 
 

 
 
In order to attach the security profiles to a policy, enable the UTM features first and then it will add any security profiles.
Same is illustrated in the below image:
 
 

 

Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024