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

UserTerritory2Association doesn’t support adding custom fields.

Note

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.