---
schema_version: "1"
id: a960cbdae7d5925cf2844600c0ec256b5e2e02c81bb1979ef8ce4bbc6513d585
title: UserTerritory2Association
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_userterritory2association.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_userterritory2association.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: f2ac175b018e15800e021af64997a49220e4e44a1969d3da913d421bec2d9e64
description: Represents an association (by assignment) between a territory and a user record. Available only if Sales Territories has been enabled.
---
# UserTerritory2Association

Represents an association (by assignment) between a territory and a user record. Available only if Sales Territories has been enabled.

## Supported Calls

create(), delete(), describeSObjects(), query(), retrieve()

## Special Access Rules

Standard and partner users can access this object. If a territory model is in Active state, any standard or partner user can view that model, including its territories and assignment rules. For territories in an active model, any standard or partner user can view assigned records and assigned users based on your Salesforce sharing settings. Users cannot view territory models in other states (such as Planning or Archived).

## Fields

![Note](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/images/icon_note.png)

#### Note

UserTerritory2Association doesn’t support adding custom fields.

| Field Name | Details |
| --- | --- |
| IsActive | 
Type

boolean

Properties

Defaulted on create, Filter, Group, Sort

Description

Indicates whether the user is active (true) or inactive (false) in the given territory.



 |
| RoleInTerritory2 | 

Type

picklist

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

The role of the user in a territory. Possible values are: Owner, Administrator, Sales Rep. Label is Role in Territory.



 |
| Territory2Id | 

Type

reference

Properties

Create, Filter, Group, Sort

Description

The ID of the territory that the user is assigned to.



 |
| UserId | 

Type

reference

Properties

Create, Filter, Group, Sort

Description

The ID of the user who is assigned to the territory.



 |