# How do opportunity team overlays manage collaborative access control for cross-functional deal teams?

**Topic:** Sales Cloud · **Difficulty:** Medium · **Tags:** Sales Cloud, Opportunity Teams, Collaboration

Read it on the site: https://www.forcechallenges.com/interview-questions/how-do-opportunity-team-overlays-manage-collaborative-access-control-for-cross-functional-deal-teams

## Answer

**Basics:** Large deals involve solution engineers, legal and executives who do not own the record. An Opportunity Team grants them record access without role-hierarchy or sharing-rule changes. Overlay splits credit those specialists without double counting the owner's quota.

**How it works:**
1. Enable Setup > Opportunity Team Settings (and Opportunity Splits if needed).
2. Add team members on the opportunity (OpportunityTeamMember with UserId, TeamMemberRole, OpportunityAccessLevel Read or Edit).
3. Users can define a Default Opportunity Team in their settings so it is added automatically to new opportunities they own.
4. Salesforce writes sharing rows to OpportunityShare with RowCause Team.
5. Splits: Revenue splits must total 100% of the amount; overlay splits may total more than 100% because they credit supporting roles.

**Advanced / deep dive:** Team access only extends beyond OWD; it cannot restrict below it. It is not time-bound, so "temporary" access must be removed by a Flow or scheduled job. Team members get implicit read access to the parent Account, but not Account edit. Large teams on many opportunities create many share rows and slow sharing recalculation; consider roles, queues or territories for broad patterns. Split percentages and amounts feed forecasts and reports, so ownership transfers and currency changes must be tested. Account Teams and Case Teams are separate features that follow the same idea.

**Code / config example:**
```apex
List<OpportunityTeamMember> members = new List<OpportunityTeamMember>();
for (Opportunity o : newOpps) {
  members.add(new OpportunityTeamMember(
    OpportunityId = o.Id, UserId = solutionEngineerId,
    TeamMemberRole = 'Solution Engineer', OpportunityAccessLevel = 'Edit'));
}
insert members; // one DML for the whole set
```

**Hidden gotchas & must-remember points:**
- Valid access levels for opportunity teams are Read and Edit; there is no Delete or Full here.
- Team access is not time-limited unless you build removal logic.
- Overlay splits can exceed 100%; revenue splits cannot.
- Changing the owner may remove or reassign team shares depending on transfer options.
- Default team auto-add happens only for new opportunities, not existing ones.
- Teams do not grant object permissions; the user still needs profile or permission set access.

**Best practice:** Use opportunity teams for deal-level collaboration and Flow to add and expire members by stage.

---
Source: ForceChallenges · last updated 2026-11-02
