Sub topic 4
Choosing a license and a minimal profile
This chapter assumes you know basic Salesforce administration (users, profiles, objects, fields), have used the REST API and SOQL, and have admin rights in a sandbox or Developer Edition org. You have already listed what the integration needs. Now you pick the license and profile that form its base access.
Why the license comes first
A user license decides which features and permissions a user can ever receive. A profile or permission set can only grant what the license allows. If you choose a broad license, you leave room for over-privilege later. If you choose a narrow one, Salesforce blocks some mistakes for you.
Common license choices for an integration user:
| License | Typical use | Notes |
|---|---|---|
| Salesforce Integration | API-only system-to-system access | Limited to API use and cannot log in to the UI. Check your edition's allowance. |
| Salesforce (standard) | Integration that needs broader standard objects | Costs a full license and allows UI login. |
| Salesforce Platform | Integration that works mostly with custom objects | Restricts access to many standard objects. |
Allowances and names vary by edition and change between releases. Confirm what your org has under Setup > Company Information > User Licenses.
Pick the narrowest license that still covers the objects from your requirements list. If the integration only touches Account and a few custom objects, a full Salesforce license may be more than you need.
Choosing a minimal base profile
Every user has exactly one profile. The profile is the base layer, and permission sets add to it. The least privilege approach is to keep the profile as empty as possible and put real access in permission sets.
Salesforce ships the Minimum Access - Salesforce profile for this purpose. It grants almost nothing, so everything the user can do is visible in assigned permission sets. Use it when your license is Salesforce. Other licenses have their own base profiles, such as Salesforce API Only System Integrations for the Salesforce Integration license.
Avoid these as a base:
- System Administrator. It grants Modify All Data and View All Data.
- A clone of a human profile. It carries every permission that profile had, and you rarely review them.
- Standard User. It is broader than most integrations need.
Create the user
Create the user in Setup > Users > Users with these fields:
- Username: use a name that shows the purpose, such as
[email protected]. It must be unique across all Salesforce orgs, but it does not need to be a real mailbox. - Email: use a monitored shared mailbox or distribution list, not a person's address. Salesforce sends notices there.
- User License: the narrowest one that works.
- Profile: the minimal base profile.
- Name: make the purpose obvious, for example
Integration User - Billing Sync.
Create one user per integration. If two integrations share a user, you cannot give them different access or tell their activity apart in logs.
How the layers combine
The diagram shows how access builds up. The license sets the ceiling, and the profile and permission sets fill in below it.
Check what you created
Confirm that the profile and license are what you intended. This query uses standard fields on the User object:
SELECT Username, Profile.Name, Profile.UserLicense.Name, IsActive
FROM User
WHERE Username = '[email protected]'The result should show your minimal profile and the narrow license. If it shows System Administrator, fix it now, before you add permission sets.
Exercise
A teammate clones the Standard User profile for a new integration user and plans to remove permissions they think are unnecessary. Why is this weaker than using a minimal base profile with permission sets, and what would you do instead?
Show answer
A clone starts with many permissions and the teammate must find and remove each one, so anything missed stays granted. Access is also hidden inside the profile instead of listed in named permission sets. Instead, assign the narrowest suitable license and a minimal profile such as Minimum Access - Salesforce, then add only the required access through a permission set.