---
schema_version: "1"
id: dd995c6c53d0e8918c087fa5e8057da528cf42b8b863a8e5029a8409c6a890a0
title: AccountUserTerritory2View
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_accountuserterritory2view.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_accountuserterritory2view.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: ad0359d7a1f9bc327ef228b1e1cb092f080fad2babaf863a0bfe0c706bcf48a9
description: Represents the view of the Users in Assigned Territories related list in Lightning Experience for Sales Territories. Available in API version 42.0 and later.
---
# AccountUserTerritory2View

Represents the view of the Users in Assigned Territories related list in Lightning Experience for Sales Territories. Available in API version 42.0 and later.

## Supported Calls

describeSObjects(), query(), retrieve()

## Special Access Rules

Standard and partner users can access this object.

## Fields

| Field Name | Details |
| --- | --- |
| AccountId | 
Type

reference

Properties

Filter, Group, Nillable, Sort

Description

Unique identifier for the account associated with the Users in Assigned Territories related list.



 |
| RoleInTerritory2 | 

Type

picklist

Properties

Filter, Group, Nillable, Sort

Description

The role of each user in the Users in Assigned Territories related list.



 |
| Territory2Id | 

Type

reference

Properties

Filter, Group, Nillable, Sort

Description

Unique identifier for each territory in the Users in Assigned Territories related list.



 |
| UserId | 

Type

reference

Properties

Filter, Group, Nillable, Sort

Description

Unique identifier for each user in the Users in Assigned Territories related list.



 |

## Usage

Use this object to show the users who are assigned to the territories assigned to an account.

A filter criterion with one AccountId is required when you execute a SOQL query on this object.