Security design
The sharing model, object and field security with permission set groups, external and guest access, encryption and masking, monitoring and audit, secure code, sharing at scale, and security architecture.
Start here: Security design
Plain-language orientation before the detail.
What this track covers
Security questions appear in every architect interview, usually hidden inside another scenario. This track covers the record sharing model, object and field security with permission set groups, external and guest access, data protection (Shield Platform Encryption, masking), monitoring and audit, secure code, sharing at scale (skew and recalculation), and security architecture and governance.
An analogy: a secure office building
| Office building | Salesforce security |
|---|---|
| Locked doors by default | Org-wide defaults (most restrictive baseline) |
| Managers' master keys for their teams' offices | Role hierarchy |
| Standing access arrangements between departments | Sharing rules, teams, territories |
| Job badges that open specific equipment rooms | Permission sets and groups (objects, fields, system permissions) |
| Visitors' passes for the lobby only | Guest users and external users |
| Safes with your own key | Encryption with key management |
| CCTV and the guard at the exit | Event Monitoring and Transaction Security |
If you remember one thing: lock everything by default, open access in the fewest, simplest layers, and be able to prove who did what.
Same idea, explained to four audiences
| Audience | Say it like this |
|---|---|
| Business sponsor | "People see exactly what their job needs, sensitive data is protected and every important action is recorded." |
| Security team | "Least-privilege personas, private defaults, encryption with our keys where required, masked sandboxes, and event logs streamed to the SIEM with automated policies." |
| Developer | "Code runs in user mode with sharing, uses bind variables and Named Credentials, and guest-accessible methods are minimal and reviewed." |
| CTA review board | "The access model follows data classification and a threat model, scales without skew, and each control maps to a risk with evidence." |
How to study this track
- Draw the sharing layers from memory and design a model for a scenario.
- Know profiles vs permission sets vs groups and the persona approach.
- Prepare answers for guest security, encryption choices and audit questions.
- Recognise skew and recalculation problems in LDV scenarios.
Misconceptions interviewers like to test
- "
with sharingmakes Apex secure." It covers record sharing only; FLS and CRUD need user mode. - "Encryption controls who can see data." Authorised users see decrypted values; permissions still decide access.
- "Restriction rules work everywhere." They don't support every object (not Case).
Concept map
How the building blocks fit together. Select a concept to open it.
Access model3
Data protection2
Secure development3
Concepts
Grouped by theme.
Access model
Org-wide defaults, role hierarchy, sharing rules, teams, territories, manual and Apex managed sharing, implicit sharing, and restriction and scoping rules: how Salesforce decides who sees which records.
Object CRUD, field-level security and system permissions; why permissions move from profiles to permission sets and groups; muting; and persona-based access design.
Experience Cloud licences and their sharing models, external OWD, sharing sets and share groups, partner roles, and hardening guest (unauthenticated) access.
Data protection
Encryption at rest with Shield Platform Encryption (probabilistic vs deterministic, key management, BYOK and cache-only keys), classic encrypted fields, data classification, and masking sandbox data.
What to log and how to respond: Setup Audit Trail, field history and Field Audit Trail, login history, Event Monitoring and Real-Time Event Monitoring, Transaction Security policies, Health Check and Security Center.
Secure development
The OWASP-style risks on Salesforce: data access without FLS or sharing, SOQL injection, XSS, insecure guest-accessible methods, secrets in code, CSP and Lightning Web Security, and tooling to catch them.
Why large orgs struggle with sharing: ownership and account data skew, deep role hierarchies, group membership calculations, sharing recalculation, and techniques such as deferral and parallel recalculation.
Putting it together: threat-based design, least privilege, a security baseline, privileged access, sandbox and DevOps security, third-party packages, and regular access reviews.