---
schema_version: "1"
id: c78513c0fcc019c645d12923370b79871d3d316f712f90bcdd428eaee9d0e242
title: TerritoryMgmt Namespace
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_namespace_TerritoryMgmt.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_namespace_TerritoryMgmt.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: c00c8a2342ef03c6d84af669f929eb2fe6a2053504d0db0fd661978124ce3b1f
description: The TerritoryMgmt namespace provides an interface used for territory management.
---
# TerritoryMgmt Namespace

The TerritoryMgmt namespace provides an interface used for territory management.

The following is the interface in the TerritoryMgmt namespace.

- **[OpportunityTerritory2AssignmentFilter Global Interface](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_interface_TerritoryMgmt_OpportunityTerritory2AssignmentFilter.htm#apex_interface_TerritoryMgmt_OpportunityTerritory2AssignmentFilter)**  
    Apex interface that allows an implementing class to assign a single territory to an opportunity.