---
schema_version: "1"
id: 0b16cd08fc92c41e1df15696eab56732f80900e4b12222d85127a9af13db4656
title: Add or Remove Connection Protection for Agentforce Gateway Policies
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ai/264-0-0/agentforce_gateway_add_remove_connection_protection.md
canonical_url: https://help.salesforce.com/s/articleView?id=ai.agentforce_gateway_add_remove_connection_protection.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 74ae1238772d2bfc141601f28396733b4d1e72a7cf3114549cda7bf61695e223
description: Edit matching criteria or manual selection in Policy Builder to add or remove a connection from a policy.
products:
  - Agentforce
  - Cross Cloud
release: "264"
---
# Add or Remove Connection Protection for Agentforce Gateway Policies

Edit matching criteria or manual selection in Policy Builder to add or remove a connection from a policy.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">See <a href="https://help.salesforce.com/s/articleView?id=ai.agentforce_gateway_policies.htm&amp;release=264.0.0&amp;type=5" title="Use Agentforce gateway policies to protect connections to your external APIs and Model Context Protocol (MCP) servers. Control access, set usage limits, and ensure compliance.">Agentforce Gateway</a> for supported editions and required permissions.</td></tr></tbody></table>

1. From **Setup**, in the Quick Find box, enter Policies, then select **Policies**.
2. On the Agentforce Gateway Policies page, select the **APIs** or **MCP Servers** tab, and select the policy that currently protects the connection.
3. On the policy details page, click **Open in Policy Builder**.
4. From the sidebar, select **Target Entities** ![Selection for Target Entities in Policy Builder.](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ai-generative_ai-264-0-0-production-enus/f8ef6498-d7b2-44e3-9b34-ffd5a850aae9/generative_ai/images/rules_gray.png), then update protection.
    
    - **Matching Criteria** tab: Edit or delete matching criteria.
    - **Manual Selection** tab: Use the dropdown next to the API connection or MCP server description to change or remove protection.
5. Click **Save Policy**.