# When should administrators enable manual sharing for user-driven record collaboration?

**Topic:** Admin · **Difficulty:** Medium · **Tags:** Admin, Manual Sharing, Collaboration

Read it on the site: https://www.forcechallenges.com/interview-questions/when-should-administrators-enable-manual-sharing-for-user-driven-record-collaboration

## Answer

**Basics:** Manual sharing is the Sharing button on a record. It lets an authorized user pick users, groups, roles or roles-and-subordinates and grant Read Only or Read/Write (sometimes Full Access depending on object). It exists only when OWD is Private or Public Read Only.

**How it works:**
1. Make sure the object's OWD is Private or Public Read Only.
2. Add the Sharing button to the record page layout (needed in Lightning Experience for custom setups; verify layout).
3. Authorized users (owner, a user above the owner in the hierarchy, an administrator, or a user with Full Access) click Sharing > Add and pick the recipients and access level.
4. Salesforce creates a share row in the object's share table with `RowCause = 'Manual'`.
5. The recipient also needs object-level permission.

**Advanced / deep dive:** Manual shares are fragile: they are removed automatically when the record owner changes (or when OWD becomes more open than the share needs), which surprises admins. Apex managed sharing with a custom Apex sharing reason (`RowCause` defined on the object) persists across owner changes and can be created programmatically, so use it for durable requirements. Manual sharing does not scale: users forget, it cannot be audited as a rule, and it is hard to govern. Use it for exceptions, not as the core security model. For regular patterns use sharing rules, teams (Account/Opportunity/Case Teams) or queues. In Apex, insert `__Share` or `AccountShare` rows (Account sharing has extra fields for related object access).

**Code / config example:**
```apex
// Grant read access to a custom object record programmatically (bulk-safe)
List<Project__Share> shares = new List<Project__Share>();
for (Project__c p : projects) {
    shares.add(new Project__Share(
        ParentId = p.Id, UserOrGroupId = reviewerId,
        AccessLevel = 'Read', RowCause = Schema.Project__Share.RowCause.Manual));
}
Database.insert(shares, false);
```

**Hidden gotchas & must-remember points:**
- Not available when OWD is Public Read/Write.
- Manual shares vanish when the owner changes.
- Only owner, hierarchy-above users, admins and Full Access users can share.
- The recipient still needs object permission.
- Contacts controlled by parent cannot be shared manually on their own.
- Heavy manual sharing hurts performance and governance.

**Best practice:** Use manual sharing for rare exceptions and codify recurring needs in rules or Apex managed sharing.

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