---
schema_version: "1"
id: 6764991c17f91e64b287e68db48a6bf7e1dbef5ea0cc95eb09dabac945597197
title: Default Policy Execution Order for Agentforce Gateway
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ai/264-0-0/agentforce_gateway_default_policy_execution_order.md
canonical_url: https://help.salesforce.com/s/articleView?id=ai.agentforce_gateway_default_policy_execution_order.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: e951c1743db17f3360d8e6aabbc647bbb96823fd6c46dea2f30c80b03c8dd2a7
description: The default policy execution order makes sure that you protect your connections as intended. The execution order is based on the policy type, application method, and timestamp.
products:
  - Agentforce
  - Cross Cloud
release: "264"
---
# Default Policy Execution Order for Agentforce Gateway

The default policy execution order makes sure that you protect your connections as intended. The execution order is based on the policy type, application method, and timestamp.

### 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.</td></tr></tbody></table>

- **Policy template priority:**
    - **API connections:** Restrictive Access policies take precedence over Quota Management.
    - **MCP server connections:** MCP Attribute-Based Access Control policies take precedence over MCP Quota Management.
- **Same policy type:** If multiple policies of the same type apply, manually applied policies take precedence over rule-based policies.
- **Same application method:** If policies have the same type and application method, the one with the latest timestamp takes precedence.

If manual selection and rule methods overlap and apply the same policy to a connection twice, the policy executes only once.

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ai-generative_ai-264-0-0-production-enus/f8ef6498-d7b2-44e3-9b34-ffd5a850aae9/images/icon_note.png)

Note You can’t modify the default policy ordering.