By Fatskills Exam Guides Team — the exam nerds behind 28,500+ quizzes and 2.1M practice questions across 500+ global exams.
For Admins Who Need to Ship, Not Just Pass Exams
You’re the Salesforce Admin for a 500-person sales org. The VP of Sales just emailed you:
"We’re restructuring teams. West Coast reps now report to a new regional manager, and we need visibility rules updated by EOD. Also, the enterprise team in Europe can’t see North America’s deals—fix it."
If you don’t master Role Hierarchy and Territory Management, you’ll either: - Break visibility: Reps see deals they shouldn’t (compliance violation).- Break reporting: Dashboards show wrong numbers (VP yells at you).- Break automation: Approval processes route to the wrong manager (deals stall).
Role Hierarchy = Who reports to whom (org chart). Controls record access (e.g., managers see their team’s records).Territory Management = Who sells where (geography, product line, customer size). Controls record assignment (e.g., "All deals in Germany go to Team Berlin").
Superpower: You can restructure a 10,000-record org in 30 minutes without touching individual records.
Scenario: Your org has 50 reps reporting directly to the VP. You need to: 1. Create 3 regional manager roles (West, Central, East).2. Assign reps to their managers.3. Ensure managers see their team’s records.4. Assign accounts to territories based on Billing State.
UserRoleId
Verification: - Log in as a West RM.- Go to Accounts → All Accounts.- You should see only accounts owned by West reps (if sharing is private).
BillingState
CA, OR, WA, NV, AZ
TX, CO, UT, NM
Verification: - Go to an Account in California.- Check the Territory field (should say "West").- Log in as a West rep → they should see the account.
Problem: Territory rules run nightly. For real-time assignment: 1. Create a Flow: - Go to Setup → Flows → New Flow. - Select Record-Triggered Flow. - Object: Account. - Trigger: "A record is created or updated". - Condition: BillingState is changed.2. Add an Action: - Click + → Action. - Search for "Assign Territory to Record". - Record ID: {!$Record.Id}. - Click Save.3. Activate the Flow.
{!$Record.Id}
Verification: - Update an Account’s BillingState to "CA".- Refresh the page → Territory should update immediately.
[Department] [Level]
[Region] - [Segment]
BillingState = CA AND Revenue > 1M
⚠️ Trap: "Sharing Rules" can override hierarchy, but hierarchy is the default.
"A user is in two territories with different access levels. What do they get?"
✅ Most permissive access (e.g., Read/Write > Read Only).
"How do you assign records to territories in real-time?"
✅ Flow or Process Builder (not nightly assignment rules).
"What happens when you activate a new territory model?"
"You have 100 accounts in Texas. Create a territory for 'Central' and assign all Texas accounts to it. Then, give a user named 'Alice' Read/Write access to the territory. Verify she can see the accounts."
BillingState = TX
Why It Works: - Territory rules auto-assign records based on criteria.- Users in the territory inherit access to its records.
# Export all Accounts with Territory info (for backup) sfdx force:data:soql:query -q "SELECT Id, Name, Territory2Id FROM Account" -u YourOrgAlias -f csv > accounts_backup.csv # Bulk update User Roles (get Role IDs from Setup → Roles) sfdx force:data:bulk:upsert -s User -f users_with_roles.csv -i Id -u YourOrgAlias
Final Pro Tip:
"Role Hierarchy is for people, Territory Management is for places. If you’re assigning records based on geography, use territories. If you’re controlling visibility based on org chart, use roles. Mixing them up is like using a hammer to screw in a bolt—it might work, but it’ll be messy."
Join 4M+ learners. Unlock unlimited quizzes, wrong-answer tracking, flashcards + reminders, study guides, and 1-on-1 challenges.