Skip to content
RevOps Agentified
← Topics

Security & access

Set up a Salesforce integration user, grant access to the right records and fields, and verify it with real API tests.

An enrichment job needs to refresh employee counts on 1,240 North America prospect accounts. The same Salesforce org holds customer accounts and accounts outside North America. Give the job its own Salesforce user, then define which accounts it can reach and which fields it can change. Test the boundaries with that user before the first write.

Give the integration its own Salesforce identity

In a supported edition, assign the Salesforce Integration user license and the Minimum Access – API Only Integrations profile. Review the Salesforce API Integration permission set license for the permissions your integration requires, then grant them through a dedicated permission set. For a connection using an External Client App with OAuth client credentials, set the integration user as the app’s execution user. In the example, the company uses separate credentials in its sandbox and production orgs.

Give Account Read and Edit, then grant Read only to the fields used to identify and scope an account. Allow edits only to NumberOfEmployees and the custom timestamp field Enrichment_Last_Refreshed__c. Account Edit is needed for the update, and field permissions narrow what the update can change. Field permissions apply across the records that the user can reach. A Salesforce page layout controls what people see on a page, so it cannot enforce a write restriction for this API job.

Limit the job to the account records it needs

This example assumes Account sharing starts at Private. Create a public group for the enrichment user and use a criteria-based sharing rule to grant that group read/write access to accounts whose region is North America and whose lifecycle status is Prospect. The region and lifecycle fields remain read-only for the integration. Check for other grants through the user’s roles, groups, teams or account sharing. A sharing rule adds access. It cannot take away access that already comes from another grant. On an org where Account access is already public, confirm that you can isolate the required accounts before enabling updates.

  1. Account permissionCan the enrichment user update Account records at all?
  2. Record sharingDoes this user have write access to this North America prospect?
  3. Field permissionCan the user change NumberOfEmployees on the record?

Run the access test under the API user

Pick known account records from inside and outside the rule. Use the real connector with its sandbox credentials, or make the same standard REST calls it will use. An admin can compare the saved records afterward. Keep the request and response for each case with the permission set name and the sharing rule.

Expected results for the enrichment user
Record and requestExpected resultWhere to check after a mismatch
North America prospect. Set employee count to 240.The update succeeds. Salesforce stores the new count.The connector payload, Account Edit, field Edit, and record write access.
Same prospect. Try to change the account owner or lifecycle status.The write is rejected. Salesforce preserves both values.The field’s effective Edit grant. For owner changes, also check transfer permissions.
North America customer. Query by ID and attempt an employee-count update.The query does not return the account and the update is rejected.Account sharing access, role hierarchy, account teams, and View All or Modify All grants.
EMEA prospect. Query by ID and attempt an employee-count update.The account is outside scope, even though it is a prospect.The sharing rule criteria and the public group’s effective membership.

Open the integration user in Setup and select View Summary. For a permission the user should not have, use Access Granted By to find the profile, permission set, or group that adds it. A muting permission set removes the grant within its own group. If another assignment supplies the same permission, address that assignment as well. For record access, open the record’s Sharing Hierarchy where available and check how the user obtained access.

Keep the first run to a small batch of approved prospect IDs. Compare the IDs and fields the integration changed against the request. When a prospect becomes a customer, wait for the applicable sharing recalculation and rerun the known-ID test. That account should be outside the enrichment user’s scope from then on. Use the release management guide to move the field, permission set, and sharing configuration through the same review.

GTM Systems Academy newsletter

Get guides to CRM ownership, integrations, and migrations, with checks to run before you change your stack.