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:
- Make sure the object's OWD is Private or Public Read Only.
- Add the Sharing button to the record page layout (needed in Lightning Experience for custom setups; verify layout).
- 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.
- Salesforce creates a share row in the object's share table with
RowCause = 'Manual'. - 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:
// Grant read access to a custom object record programmatically (bulk-safe)
List<Project__Share> shares = <Project__Share>();
(Project__c p : projects) {
shares.add( (
ParentId = p.Id, UserOrGroupId = reviewerId,
AccessLevel = , RowCause = Schema.Project__Share.RowCause.Manual));
}
Database.insert(shares, );