Newer Version Available

This content describes an older version of this product. View Latest

UserTerritory2Association

Represents an association (by assignment) between a territory and a user record. Available only if Enterprise Territory Management has been enabled for your organization.

Supported Calls

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

Special Access Rules

As of Summer ’20 and later, only 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 subject to your org’s sharing settings. Users cannot view territory models in other states (such as Planning or Archived).

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.