---
schema_version: "1"
id: 7c5bf0d38940fcaa6e3d253ac5076c8ff460f19197fcb76c6f9bfde29235c6bd
title: ObjectUserTerritory2View
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_objectuserterritory2view.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_objectuserterritory2view.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 5bd3b81d00e799854c7eb3defd51c9d59bb30c4cc3b500eaa48a47621c2438ea
description: Represents a user and object, such as an account or lead, assigned to a territory. This object is available in API version 58.0 and later.
---
# ObjectUserTerritory2View

Represents a user and object, such as an account or lead, assigned to a territory. This object is available in API version 58.0 and later.

## Supported Calls

describeSObjects(), query(), retrieve()

## Special Access Rules

To see this object, enable Sales Territories.

## Fields

| Field | Details |
| --- | --- |
| ObjectId | 
Type

reference

Properties

Filter, Group, Nillable, Sort

Description

Required field for querying ObjectUserTerritory2View.

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

This field is a polymorphic relationship field.

Relationship Name

Object

Refers To

Account, Lead



 |
| RoleInTerritory2 | 

Type

picklist

Properties

Filter, Group, Nillable, Sort

Description

Role of the user assigned to the territory.



 |
| Territory2Id | 

Type

reference

Properties

Filter, Group, Nillable, Sort

Description

ID of the territory to which the object and user are assigned.

This field is a relationship field.

Relationship Name

Territory2

Refers To

Territory2



 |
| UserId | 

Type

reference

Properties

Filter, Group, Nillable, Sort

Description

ID of the user assigned to the territory.

This field is a relationship field.

Relationship Name

User

Refers To

User



 |