Defining territory roles

What a territory role is, why the package ships none, and how to add yours. Until you add some, users cannot be added to territories at all — the role selector has nothing to offer.

This page was part of Setting up the org and is now its own, because it is the one setup step that is a design decision rather than a configuration value. The others have a right answer. This one is your organisation's vocabulary and nobody else can supply it.


These are not the roles you are thinking of

🔴 A territory role is not a Salesforce role.

Role (Setup → Users → Roles)Territory role (this page)
What it isYour sharing hierarchyWhat a person does in one territory
Where it is setOn the userOn the membership — this person, in this territory
Can one person have several?NoYes — one per territory they are in
What it affectsRecord visibilityWhat the territory tree and reports say about them

The same person can be a Regional Director in one territory and an Account Executive in another. That is the whole reason territory roles exist separately.


Why the package ships none

Deliberately. A territory role is your organisation's vocabulary, and inheriting someone else's org chart would be worse than starting empty — you would spend longer deleting ours than writing yours.

The cost of that decision is the one symptom to recognise: **before you define any roles, the Assign users button never enables and nobody can be put into a territory.** That is this step not being done, not a defect.


Adding a role

Setup → Custom Metadata Types → Territory Role → Manage Records → New.

The form has four name-ish fields and they are not interchangeable. Two are Salesforce's, two are ours, and both of ours are required.

FieldWhoseRequiredWhat to put in it
LabelSalesforce✅What you will see in the Custom Metadata Types list — Repair/Sales Manager
Territory Role NameSalesforce✅The record's own machine name. Salesforce fills this in from Label as you type — Repair_Sales_Manager
Role Labelours✅What people see in the role selector when assigning someone to a territory — Repair/Sales Manager
Role Nameours✅🔴 The machine name stored on the membership. Set it to the same value as Territory Role Name — Repair_Sales_Manager
Parent Role API Nameours—Leave blank to start a new tree, or name another role to nest under it. ⚠️ It matches on Territory Role Name (the record's own name), not on Label or Role Name
Is Assignableours—Untick for a heading that groups other roles but should not be given to anyone
Sort Orderours—Order within its level
Territory Model Nameours—Leave blank. See below
Functional Groupours—Optional. Places the role in a group — see Functional groups

🔴 Why Role Name and Territory Role Name should match. Nothing enforces it, and the product works if they differ — but Parent Role API Name resolves against Territory Role Name, while Role Name is what every membership shows. A mismatch means you type one value to build the hierarchy and see the other everywhere else. Every example on this page keeps the two identical; keep yours identical too.

⚠️ Label and Role Label can differ and nothing breaks; Label is for you in Setup, Role Label is for the people assigning territories. Keeping them the same is the simplest thing that works.


Flat, hierarchical, or both

Parent Role API Name is the only field that decides the shape. Leave it blank on every role and you get a flat list. Fill it in and you get trees. Mix them freely — there is no setting to switch between the two, and no limit on how many trees you have.

Sales                        ← blank parent, Is Assignable unticked
  Sales Manager
    Sales Rep
Operations                   ← blank parent, a second tree
  Dispatcher
Contractor                   ← blank parent, no children: a flat role

Leaving Territory Model Name blank

Blank means the role applies to every territory model you load, which is what almost everyone wants.

It also means your roles survive cloning a territory model, which is how territory realignment normally works. A per-model role set would have to be re-created on every planning cycle.

Fill it in (with a model's Developer Name) only when one model genuinely needs a different set of roles. A model-specific set replaces the org-wide one for that model rather than adding to it.


Functional groups

Setup → Custom Metadata Types → Functional Group → Manage Records.

A functional group is a bucket of roles — Sales, Operations, or however your business divides up. Set Functional Group on each role to place it in one.

Groups are optional, and most of the product works without them. If you define none, the group selector does not appear and nothing on the map stops working.

"Show by Role" does not need them. The descendants panel — seeing everything beneath a territory — can group what it lists by role instead of by tree position. Territory Mapper always offers an All Groups choice holding every role that applies to the model, so that control works as soon as you have roles; groups only narrow it.

So: if Show by Role is greyed out, it is not a permissions problem and not a defect. No territory role applies to this model yet — add one, as above.


If you want clean reporting on Role in Territory

The role is stored on the standard Role in Territory field of the user-territory association. That field is a Salesforce picklist with its own separate value set, and it does not learn your role names automatically.

Everything works without doing anything about this — the field accepts your values as they are. But **reports and list views that filter on Role in Territory will not offer your role names as choices. If you need that, mirror them into Setup → Picklist Value Sets → RoleInTerritory2**.

🔴 Do not tick "restrict to defined values" on that picklist unless you have mirrored every role name first. If you do, every attempt to assign a user fails. The app will tell you exactly that when it happens, but it is easier not to hit it.


Next

People, roles and assignment — putting people into territories and giving them these roles, and the entirely separate question of how records reach territories.

Last verified: 2026-11-07 · Owner: MapKraken Labs LLC

Something on this page wrong, or a setup step missing? That is a documentation defect and we want it — tell us and this is the page that gets fixed.