OBLYTECH Logo
OBLYTECH Logo

Integration User Profile Design for Least Access

Least-access design for a Salesforce integration user means granting the objects, fields and Apex classes that the integration’s jobs require, and nothing beyond them. Write that set down in one access register with a reason for each entry. Then check the integration’s real behavior against the register before go-live and again after each change.

Start with an inventory of what the integration does

Before you change any access settings, write a plain list of the jobs the integration runs. A job is one business action, such as creating an order record from a web form, sending a status change to a fulfillment system, or reading contract terms so a quote can be prepared. Give each job its own line, because access is easier to reason about when the work is split that way.

For each job, capture the following details:

  • The trigger, which is a user action, a schedule, or an inbound message from the other system.
  • The direction of data, meaning reads, writes, or both.
  • The records and fields touched, including fields used in filters, sort orders or matching rules.
  • The Apex classes or endpoints the job calls.
  • The person who can explain why the job exists and who approves changes to it.

Teams that skip this step often copy the access of an administrator account, which hides the decisions a reviewer needs to see. When the other end of the integration is ServiceNow, settle the boundary of each data flow first, using the Salesforce and ServiceNow integration boundaries page as the reference.

Map each object, field and Apex class to a job

With the inventory in hand, build a matrix. Put jobs down the left side and access items across the top, covering objects, fields and Apex classes. Each cell records one access state: read, create, edit, execute, or none. Keep the states exact, because a cell marked edit can hide a need to read, a need to create, or both.

Fields deserve their own rows. A job that writes one field does not need edit rights to the other fields on that object, and object-level rows alone will overstate what the job requires. Read the query logic rather than the page layout, since a field used in a filter or a sort still needs read access.

Relationship fields are a common gap. When a job follows a lookup to a parent record and reads a value from it, the integration user needs read access to that parent field as well.

Apex classes follow the same logic. A class the integration calls needs permission to run it, and a class it does not call should stay out of the grant. Add a row for any helper class the called class depends on, and note the dependency in the reason column.

If the matrix grows too large for your team to review in one sitting, split it by integration and review each part separately. For help planning this work, see Salesforce implementation.

Build the grant in layers rather than as one bundle

A single large grant is hard to review and harder to shrink later. Build the access in layers so each addition has a name that says what it is for. The baseline stays thin, and each job group receives its own grant.

Work through the layers in this order:

  1. Create a dedicated integration user for each integration. Do not share one user between integrations or with a developer’s test account, because the audit trail and the grants both become unclear.
  2. Set the baseline access to the smallest set that lets the user authenticate and reach the API the integration uses. Leave object and field access out of the baseline.
  3. Group the grants by job, and name each group after the job it serves, such as order-sync-outbound or quote-read-only.
  4. Add the object and field access for each group, taken row by row from the matrix.
  5. Add Apex class access one class at a time, and record each addition in the register before you move to the next.
  6. Assign the groups to the integration user and confirm that no other group is attached.

Avoid broad grants added to make a failing test pass

A common and costly shortcut is to give the integration user an administrator profile because one test failed and nobody wants to locate the missing item. The failure disappears, and the broad grant stays in place long after the test passes. Recover from this by reading the error, identifying the single missing object, field or class, and adding that item alone.

Broad grants include access that reads all records in an object, the ability to edit records a job does not touch, and wide rights over setup. Treat each of these as a defect to review, even when the integration appears to work.

When a missing item is genuinely needed, record the failing test case, the date, the approver and the reason in the register. The result is slower on the day the test fails and far easier to defend in a review six months later.

Record each grant in one access register

The register keeps least access in place after the build is finished. It holds one row per grant, with enough detail that a reviewer who was not on the project can check the row against the code. Keep it in a shared location that the platform administrator and the integration owner can both edit, and treat each change to it as a change to production.

The columns below cover the decisions a reviewer needs to see:

Column What to record
Grant name The group or permission assignment that holds the access.
Integration and job The integration and the specific job from the inventory that the grant serves.
Item covered The object, field or Apex class, written with its exact API name.
Access level Read, create, edit or execute, as set in the matrix.
Reason One sentence explaining why this item is needed for this job.
Requested and approved by The requester and the approver, recorded by role so the entry survives staff changes.
Date added and review date When the grant went in and when it must be checked again.
Test case The test that proves the job works with this grant and fails without it.

The test case column turns the register from a list of permissions into a record of what has been proven. Keep retired jobs in the register with an end date.

Test each job as the restricted integration user

Run each job in a test environment with the integration user, not an administrator. Testing as an administrator hides the gaps this design is meant to expose. Each test should check three things: the job completes, the records it writes hold the expected values, and the job fails with a clear message when it reaches something outside its grant.

The third check matters a great deal for least access. A missing grant that fails loudly shows the boundary is working. A missing grant that fails silently, or leaves an incomplete record, is a design defect, and the fix is often a clearer error path in the code rather than a wider grant.

Add negative tests as well. Pick a record the job should not reach, run the job against it, and confirm that access is denied. Record each negative test beside the grant it proves. Repeat the full set after any change to the grant, the job, or the data model.

Review access after changes and on a fixed schedule

Access drifts over time. A new field is added to a page, a developer adds a call to an existing Apex class, or a business process grows a step that reads another object. Tie the register update to the change request, so the register cannot fall behind the code.

Schedule a full review of each integration user at least once a year, and again whenever the integration owner changes. Compare the grants on each user with the inventory, remove any grant that serves no current job, and confirm each row still has a test case.

Migrations and large data loads are a frequent cause of unplanned change. Fields a load populated may now be written by a job nobody intended, so check them during the review. The Salesforce data quality and migration guidance covers how to spot those patterns in the data itself. For the wider routine upkeep that runs between these reviews, see Salesforce support and maintenance.

Questions about integration user access design

Can one integration user serve several integrations?

It is possible, but it makes the register harder to read and the audit trail harder to follow. A separate user for each integration lets you deactivate one integration without affecting the others.

Who should own the access register?

The integration owner should own the content, meaning the jobs, reasons and test cases. The platform administrator should own the grants themselves and confirm that each change in the register matches the change made in the org.

Does a read-only job need the same level of review?

Yes. Read access can expose personal or commercial data as widely as write access can change it. A read-only job still needs a matrix row, a reason and a test case that proves it cannot read records outside its scope.

What should happen when a job needs a field that is missing from the matrix?

Check first whether the job can read the value from a related record that the user already reaches. If the field is genuinely needed, add it as a row with a reason and a test. If the path is hard to justify, change the design of the job rather than widening the grant.

How do you retire an integration cleanly?

Stop the jobs first, then remove the grant groups from the integration user, and deactivate the user rather than reusing it for another purpose. Close each register row with an end date and a pointer to the change request that retired it.

How many Salesforce Integration user licenses does an org include, and what can they be used for?

A Salesforce org on the Enterprise, Unlimited or Performance edition includes five Salesforce Integration user licenses, and a Developer org includes one, as of November 2026. These licenses are API-only, so they suit system-to-system jobs and cannot be used by people signing in through the user interface. Check the count in your own org before you plan.

What the count covers and what it leaves out

The count applies only to the editions named above. A Professional edition org is not in that list, and as of November 2026 its API access is an add-on, so confirm what it holds before planning an integration identity. Object and field access still needs its own grants, because the license does not supply it.

What an integration license is used for

The license fits a system that signs in on its own, with no person at the keyboard. Common jobs include:

  • an outbound sync that sends case or order status changes to another platform
  • an inbound job that creates or updates records when a web form or middleware message arrives
  • a read-only lookup that a quoting or billing tool runs against account and contract data

One identity per integration keeps the access register readable, because each row traces back to a single system. When an audit question comes up, you can see which integration made which change.

What the license cannot be used for

  • Day-to-day work by a person, including a developer clicking through screens with the integration login.
  • A combined login for a person and a system, which makes it hard to tell from the audit log which changes were automatic.
  • A substitute for missing access. Each job still needs its own rows in the access register.

How to plan the number of integration identities

  1. List every integration that needs its own identity, along with the jobs it runs.
  2. Confirm the edition, then compare the list with the licenses the org holds.
  3. If the list is longer than the count, stop and review it before assigning anything. Narrow the list or change the license plan, because a shared identity removes the per-integration trail.

With five licenses, a team running up to five integrations can give each one a dedicated identity. As a practical habit, keep one license unassigned, so a replacement identity can be set up during a retirement or a credential problem without reusing an old account.

Questions to ask before assigning an integration license

  • Is API access included in the edition, or bought as an add-on?
  • How many integration licenses are already assigned, and to which system?
  • Who owns each identity, and who approves a change to its grants?

The count limits how many identities the org can hold under this allowance. It is not an unlimited integration entitlement, so check the API and connector terms for the org before planning call volume.