Object Reference for the Salesforce Platform
Newer Version Available
UserTerritory
The original territory management feature is now unavailable. For more information, see The Original Territory Management Module Will Be Retired in the Summer ’21 Release. The information in this topic applies to the original territory management feature only, and not to Enterprise Territory Management.
Note
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
Special Access Rules
- Only available if territory management has been enabled for your organization.
- As of Spring ’20 and later, only users with the View Setup and Configuration permission can access this object, and only users with the Manage Territories permission can edit this object.
Fields
| Field | Details |
|---|---|
| IsActive |
|
| IsDeleted |
|
| TerritoryId |
|
| UserId |
|
Usage
If a user is inactive in a territory, and the opportunities they own that are associated with the territory are all closed, the user is not returned in the Territories related list on the User page in Setup. Regardless of whether the user is inactive or the opportunities are closed, the user is returned in the Quotas related list.