How do you secure an integration that writes orders into Salesforce from an external platform?
Your confidence:Not rated
Model answer
- User: a dedicated integration user with the Salesforce Integration licence, API-only profile, and a permission set granting only Order, Order Item and the needed fields.
- App: an External Client App with JWT bearer (certificate) or client credentials; admin-approved users; minimal scopes (
api). - Token: short-lived access tokens; no refresh token unless needed; certificate rotation calendar.
- Network: IP restrictions to the platform's egress addresses where possible.
- Data: validation rules and server-side checks (or a custom Apex REST service) so bad payloads are rejected; external IDs for idempotent upserts.
- Monitoring: API usage and failures per integration user, Event Monitoring for API events, alerts for anomalies.
- Incident response: documented steps to revoke tokens, disable access, rotate credentials and review activity.
โ Key points to hit
โ Red-flag answers
- Using a named employee's credentials
- Modify All Data on the integration user
- No monitoring
โช Follow-ups
How do you stop the integration from changing fields it shouldn't?
Field-level security in its permission set, plus a field-ownership matrix enforced by validation or the API design, so only owned fields are writable.
What evidence would an auditor want?
The integration's permission set, ECA policies, certificate management records, login and API event logs, and the incident runbook.