Sub topic 1
Why an Integration Needs Its Own User
Prerequisites
This chapter assumes you have:
- Basic Salesforce administration skills: users, profiles, objects, and fields.
- Familiarity with the Salesforce REST API and SOQL.
- A basic understanding of OAuth 2.0.
- A sandbox or Developer Edition org where you have admin rights.
You do not need to build anything yet. This chapter sets up the reasoning that the rest of the tutorial turns into configuration.
What goes wrong with a shared account
Many integrations start life using a person's credentials. A developer logs in to test a script, the script works, and it goes to production under that developer's username. This works until something changes.
- The person leaves. Deactivating the user, a normal offboarding step, breaks the integration without warning.
- The password expires or is reset. The integration fails at an unpredictable time.
- Permissions drift. The human's profile and permission sets change with their job. The integration quietly gains or loses access.
- Audit trails blur. Records show "Last Modified By: Jane Smith", but Jane did not make those changes. Nobody can tell her edits from the integration's.
- Blast radius grows. If the integration's credentials leak, the attacker gets everything the human could do.
A dedicated integration user avoids all of these problems. It is a user record that exists only for one system-to-system connection.
What a dedicated integration user is
An integration user is a normal Salesforce user with a few deliberate choices:
- It represents one integration, not a person. Name it for its purpose, such as
Billing Sync Integration. - It has a license and profile that fit API-only access.
- It receives access through permission sets that list only what the integration needs.
- It authenticates with OAuth instead of a typed password.
- It has an owner on your team who is responsible for it.
The diagram shows how requests flow when the integration has its own identity.
Every request passes through the layers in the middle. Later chapters configure each one.
The link to least privilege
Least privilege means giving an identity the minimum access it needs to do its job, and nothing more. A shared human account cannot meet this standard. A person's access reflects their whole role, so it is almost always broader than one integration needs.
A dedicated user makes least privilege practical for three reasons:
- A narrow scope is possible. You define access for one task only.
- Changes are safe. You can tighten or loosen the user's access without affecting any person.
- Evidence is clear. Login history and record changes point to one identity.
The goal is to reduce the damage from mistakes and compromise. A read-only sync user that leaks a token exposes far less than a System Administrator account does.
A worked comparison
Suppose a nightly job reads the Industry field on Accounts and writes a summary to an external warehouse.
| Setup | Access the job gets | Risk if the credentials leak |
|---|---|---|
| Admin's personal account | All objects, all fields, delete, setup changes | Full org compromise |
| Cloned sales user | Sales objects, edit rights, UI login | Data changes and exports across sales data |
| Dedicated integration user | Read on Account and one field, API only | Read access to one field on one object |
The job is identical in all three rows. Only the identity differs, and so does the exposure.
What this chapter does not decide
Having a dedicated user does not give you least privilege by itself. A new user with the System Administrator profile is as dangerous as the admin's personal account. The remaining chapters cover how to:
- Work out what the integration needs.
- Pick a license and a minimal profile.
- Grant access with permission sets.
- Check sharing, authenticate with OAuth, and restrict logins.
- Verify, monitor, and review the user over time.
Exercise
A team runs three integrations under one cloned sales user named after a former employee. Name two problems with this setup and the change that fixes them.
Show answer
Any two of these problems apply: deactivating the former employee's account (or a password reset) breaks all three integrations at once; the user's permissions reflect a human role and are broader than any single integration needs; audit records cannot be traced to a specific integration. The fix is to create a dedicated integration user for each integration, with its own narrowly scoped permissions.