Skip to main content
Connect Salesforce to Oleria to see who can access your CRM, which profiles, permission sets, roles, and shares grant that access, and how people and apps use it. Oleria connects through an Oleria connected app that you install and assign to a dedicated permission set. Oleria supports Sales Cloud and Service Cloud. Oleria supports Sales Cloud and Service Cloud

What Oleria discovers

Non-human identities

Oleria discovers these non-human identities in every org:
  • Connected apps and external client apps, with their enabled state as Salesforce reports it, their refresh token policy, and IP relaxation. Apps that use the client credentials flow are linked to their run-as user, with the app’s OAuth scopes. Which permission sets may use each app appears as access grants. Each app shows its last use and login count over the last 30 days.
  • OAuth tokens, with their scopes. A token with the full scope has full authority. Expiry comes from the app’s refresh token policy.
  • Flows, one per flow definition, with the run mode of the active version. Flows that run in system mode without sharing, and record-triggered flows, are marked as admin. Flows installed from a managed package can’t be disabled.
  • Certificates, scheduled Apex and batch Apex jobs, email services, and external credentials (never their secrets). Scheduled jobs and email services act as the user they run as.
  • Integration users and the Automated Process user. Integration users that Salesforce provisions for its own features, such as Sales Insights, Analytics Cloud, or CPQ, are system accounts, which Oleria never disables. Integration users your org creates, including users on the Salesforce Integration license, can be disabled.

Risk signals

Oleria reports these risks for Salesforce:
  • Users without MFA enabled - active internal users only.
  • Incomplete User Profile - active internal users only.
  • SSO Not enabled for your org
  • Human Accounts with Permanent Passwords and Service Accounts with Permanent Passwords
  • Connected app runs as a privileged user - an app’s client credentials flow runs as an admin, or as a user who isn’t API-only.
  • Organization-wide default, expired certificate, and Security Health Check findings.

Prerequisites

  • Salesforce Admin role
  • A user for the integration with API Enabled, and the permissions in Required permissions
Use a service account (and not an employee account) with the suggested privileges for the integration to ensure continuity.

Create the Oleria app in Salesforce

1

Open the integration

Sign in to your Oleria workspace, select Integrations -> select Salesforce.
2

Review prerequisites and continue

A side page opens with prerequisites and a link to the onboarding instructions. Select Continue.Side panel showing prerequisites and a link to the onboarding instructions, with the Continue button
3

Provide your Salesforce instance URL

Enter your Salesforce URL in the Instance URL field and select Authenticate. Use your My Domain URL, which starts with https:// and ends in .my.salesforce.com, for example https://yourcompany.my.salesforce.com.
If you paste your Lightning URL (ending in .lightning.force.com) or a Setup URL (ending in .my.salesforce-setup.com), Oleria uses your My Domain URL (ending in .my.salesforce.com) instead.
Oleria Salesforce connection form with the Instance URL field, Sandbox toggle, and Authenticate button, during app creation
Turn the Sandbox switch on if you are integrating a Salesforce sandbox environment.
4

Authorize Oleria access

Authorize Oleria access to create a connected app called Oleria in your Salesforce application. On the Salesforce Allow Access? page, select Allow.Authorize Oleria access to create a connected app called "Oleria" in your Salesforce application.
You will see an error notification: “User hasn’t approved this consumer”. Ignore this message and continue with the next sections to install the Oleria app and Oleria Access permission set in your Salesforce application.
Salesforce integration error: User hasn't approved this consumer

Install the Oleria app in Salesforce

1

Find and install the Oleria app

Sign in to your Salesforce application, search for Connected Apps OAuth Usage, select the Oleria app, and select Install.Salesforce Connected Apps OAuth Usage page with Oleria app and Install button
2

Edit policies

After completing the Oleria app installation, select Edit Policies.Installed Oleria connected app with the Edit Policies button
3

Configure OAuth policies

Navigate to the OAuth Policies section, set Permitted Users to Admin approved users are pre-authorized, and select Save.Salesforce OAuth Policies section with Permitted Users set to Admin approved users

Create a permission set for Oleria access

1

Create the permission set

Navigate to Permission Sets and select New to create a new permission set named Oleria Access.Salesforce Permission Sets page with the New button
2

Configure the permission set

Set the Label to Oleria Access and the API Name to Oleria_Access. Choose License before you save. Salesforce doesn’t let you change it afterward.
  • If the integration user has the Salesforce Integration user license, select Salesforce API Integration. A permission set with this license can include only the permissions the license allows.
  • Otherwise, leave License set to —None—.
Then select Save.New permission set form with the label Oleria Access and its API name
The Salesforce API Integration license allows these permissions from this page: View All Data, View Health Check, Manage Multi-Factor Authentication in API, View Setup and Configuration, View Roles and Role Hierarchy, View All Users, View Event Log Files, Customize Application, Manage Custom Permissions, Modify Metadata Through Metadata API Functions, Manage Users, Modify All Data, Assign Permission Sets, Manage Flow, and Manage Profiles and Permission Sets. It doesn’t allow API Enabled, which a user with the Salesforce Integration user license has from its profile. Salesforce doesn’t list Configure Messaging for this license. If Salesforce refuses it, Oleria leaves out the messaging channels that route to agents.
If Oleria Access already exists with License set to —None—, keep it. A user with the Salesforce Integration user license can hold its permissions once that user holds the Salesforce API Integration permission set license, which you assign in the next step. If Salesforce still refuses to give that user its permissions, create a permission set under another name with License set to Salesforce API Integration, and use it in place of Oleria Access in the steps that follow.
3

Assign the permission set license

This step applies only when the integration user has the Salesforce Integration user license.Navigate to Users and select the integration user’s name. In the Permission Set License Assignments related list, select Edit Assignments, select Salesforce API Integration, and save.
Without this permission set license, Salesforce refuses to give that user permissions such as View Setup and Configuration and Customize Application, with The user license doesn’t allow the permission.
4

Assign a user

Open the Oleria Access permission set and select Manage Assignments to assign a user.Oleria Access permission set with the Manage Assignments buttonSelect Add Assignment and assign the user.Permission set assignments page with the Add Assignment button
5

Assign the Oleria connected app

Open the Oleria Access permission set and select Assigned Connected Apps to add the Oleria app to the permission set.Oleria Access Permission set Assigned Connected Apps sectionSelect Edit in the Assigned Connected Apps section, select Oleria, and select Save.Assigned Connected Apps edit view with Oleria moved to Enabled Connected Apps
6

Configure system permissions

Select System Permissions.Select System PermissionsSelect Edit and select these permissions. Your org may already grant some of them to the integration user through its profile. Only API Enabled is required. Each of the others adds data, except View Roles and Role Hierarchy. Without one that adds data, the sync still completes, with no error, but leaves out the data it covers:
  • API Enabled - lets the integration user call the Salesforce APIs. Without it, Oleria refuses the connection. A user with the Salesforce Integration user license has it from its profile, so leave it out of a permission set whose License is Salesforce API Integration.
  • View All Data - reads users, profiles, permission sets, and the access they grant.
  • View Health Check - reads your org’s Security Health Check.
  • Manage Multi-Factor Authentication in API - reads each user’s multi-factor authentication methods.
  • View Setup and Configuration - reads permission sets, roles, sharing settings, the setup audit trail, Agentforce agents, and which permission sets pre-authorize each connected app.
  • View Roles and Role Hierarchy - Salesforce requires it with View Setup and Configuration.
  • View All Users - reads every user in the org. Without it, Oleria sees only the users that sharing lets the integration user see.
  • View Event Log Files - reads the daily Logout and API usage files.
The screenshots below also show View Dashboards in Public Folders and View Reports in Public Folders selected. Oleria doesn’t need those.Oleria can also use these permissions. Select each one only if you want the data it adds. Two of them are admin permissions:
  • Customize Application - reads every user’s OAuth tokens. Without it, Salesforce returns only the integration user’s own tokens, so Oleria collects no OAuth tokens. This is an admin permission that also lets the user change org setup, such as objects, fields, and page layouts. Salesforce requires Manage Custom Permissions and View Roles and Role Hierarchy with it. For discovery, Oleria only reads with it. Grant it only if you accept that access.
  • Modify Metadata Through Metadata API Functions - reads, through the Metadata API, which connected apps are blocked, each connected app’s OAuth scopes, and each Agentforce agent’s configuration, web chat sign-in settings, and prompt template names. Without it, connected apps are collected as enabled and without their OAuth scopes, and agent configuration is left out. This permission also lets the user deploy changes to org setup. For discovery, Oleria only reads with it. Grant it only if you accept that access.
  • Configure Messaging - reads Agentforce messaging channels, and ties web chat sessions to the person who started them.
  • Data Cloud Data Access - this is a permission set, not a system permission. Assign it to the integration user so Oleria can read Agentforce session tracing from Data Cloud. Salesforce System Permissions page. It shows View All Data, View Event Log Files, View Health Check, and View Setup and Configuration selected, plus three other permissions Salesforce System Permissions continued with MFA management permission selected
To perform remediations, and to enable additional detection signals, also select the permissions for the actions you plan to use. See Remediation actions for the full list. For example:
  • To disable or enable accounts, add or remove users from groups, revoke sessions, and to collect password-change-based dormancy signals, enable Manage Users Permission set System Permissions with Manage Users enabled for disabling accounts
Manage Users is required for Oleria to read each user’s last password change date. Without it, Salesforce omits that field entirely, so password-change-based dormancy signals will be unavailable. The sync still completes successfully, with no error shown.
  • To revoke access to records, enable Modify All Data, or Modify All on each object whose shares you want to revoke Permission set System Permissions with Modify All Data enabled for revoke-access actions
  • To assign or remove permission sets and permission set groups, enable Assign Permission Sets
  • To use Disable agent, which is being rolled out, enable Customize Application, Manage Users, and View Setup and Configuration. See Permissions for Disable agent.
Search for and select Orders.Salesforce Object Settings search results with OrdersSelect Edit, select the Read Access checkbox for the Order Name field (leave Edit Access cleared), and select Save.Orders object settings in edit mode with Order Name selected
Skip the Orders step if the Orders object does not exist.

Required permissions

These permissions control what Oleria can read. View Roles and Role Hierarchy and Manage Custom Permissions are listed because Salesforce requires them with another permission. A missing optional permission never fails the sync. Oleria leaves out the data it covers and logs the gap.
Customize Application and Modify Metadata Through Metadata API Functions are admin permissions. They also let the integration user change org setup, such as objects, fields, page layouts, and metadata deployments. For discovery, Oleria only reads with them. The actions that write with them are listed under Remediation actions. Grant them only if you accept that access.
If you use Agentforce and agent discovery is enabled for your workspace, these permissions add agent data: Without them, Oleria logs which data is missing and the sync continues. To enable agent discovery for your workspace, contact support@oleria.com. After the next sync completes, open the Agents inventory and filter Application Instance to your Salesforce integration.

Configure Event Monitoring

Oleria reads activity in every Salesforce org. Event Monitoring (Shield) adds real-time event sources. Oleria detects which license your org has and reads only the sources it can.
Salesforce publishes each daily file about 36 hours after the day it covers. To pick up every daily file, sync the integration at least once a day.
Oleria imports activity separately from users and access, so a slow or failed activity read doesn’t hold back access data. To turn on the real-time sources in a licensed org:
1

Enable Event Manager storage and streaming

Select Set up -> search Event Manager -> enable Storage and Streaming for all events.Select Set up -> search Event Manager -> Enable storage and Enable streaming for all the events

Connect Salesforce to Oleria

1

Open the integration

Go to your Oleria workspace, select Integrations -> select Salesforce.Oleria Integrations page with the Salesforce tile
2

Authenticate

Enter your Salesforce URL in the Instance URL field and select Authenticate. Use your My Domain URL, which starts with https:// and ends in .my.salesforce.com, for example https://yourcompany.my.salesforce.com.Oleria Salesforce connection form with the Instance URL field, Sandbox toggle, and Authenticate button filled in, final connection
If you paste your Lightning URL (ending in .lightning.force.com) or a Setup URL (ending in .my.salesforce-setup.com), Oleria uses your My Domain URL (ending in .my.salesforce.com) instead.
When you save the connection, Oleria runs read-only checks as the integration user: it reads the user’s permissions, reads users, groups, and roles, and detects your activity license. Oleria refuses the connection only when Salesforce confirms a denial:
  • API access is turned off for the org or the user, or the user lacks API Enabled.
  • Salesforce refuses the user permission to read users.
Any other gap, such as a missing optional permission, is logged and the connection is kept.

Verify the integration

Confirm the Salesforce instance appears on the Connected tab of your Oleria Integrations page with a status of Healthy. After the first sync completes, you can review the discovered users, groups, roles, permission sets, object access, non-human identities, risks, and activity in your Oleria workspace. Oleria Connected tab showing the new Salesforce instance

Remediation actions

Oleria can take these actions in Salesforce when the integration user’s permission set includes the matching permission:
Oleria shows the revoke access action as available when the integration user has Modify All Data, or Modify All on all of Account, Contact, Lead, Opportunity, Order, Case, and Individual. With Modify All on fewer objects, or as a record’s owner, Oleria checks each request against the record’s object.

How each action behaves

Disable a user account
  • Oleria deactivates the user, as Salesforce’s own Deactivate does. The user can’t log in, and their license is freed. Salesforce refuses to deactivate some users, such as a default workflow user or a queue’s only member; the action then fails with Salesforce’s reason and nothing is changed.
  • To stop a user’s open sessions as well, run Revoke a user’s sessions.
  • Oleria refuses to disable the integration user, Salesforce system users (such as the Automated Process user), integration users that Salesforce provisions for its own features, and site guest users.
  • A user who is already inactive isn’t changed. A frozen user who is still active is deactivated.
  • Revert reactivates only a user the action deactivated.
Revoke a user’s sessions
  • Ending sessions needs only Manage Users. Revoking OAuth tokens also needs Customize Application.
  • Without Customize Application, Oleria skips the tokens and the action output says that tokens were skipped, and why.
  • Oleria refuses the integration user and integration users that Salesforce provisions for its own features.
  • If ending a session or revoking a token fails for a reason that may clear on a retry, such as a timeout, the action fails, even if it already ended other sessions or tokens. Those can’t be restored. Run the action again to end what’s left.
  • If Salesforce offers no way to revoke a token, the action succeeds, marked partial, and names the apps whose tokens are left.
  • A user with no open sessions or tokens succeeds with nothing ended.
Assign or remove a permission set or permission set group
  • If the user already holds the permission set, Oleria keeps the existing assignment and its expiry. An add only ever extends access: it never shortens an expiry or puts one on an assignment that has none.
  • Oleria refuses a permission set that a profile owns, and the hidden permission set behind a permission set group. Assign the permission set group itself instead.
  • Removing a permission set the user doesn’t hold returns nothing to remove.
Revoke access to a record
  • Oleria deletes manual shares only. Shares from sharing rules, ownership, teams, or the role hierarchy can’t be revoked from Oleria.
  • Oleria deletes only the user’s own share. It refuses a share to a group or to another user, so it never removes access for everyone else on the record.
  • Revoke works for Account, Contact, Lead, Opportunity, Order, Case, and Individual.
  • If some shares can’t be deleted, Oleria re-creates the ones it already deleted before it reports the failure.
  • Revoke anonymous access to a resource runs the same revoke. Anonymous access in Salesforce comes from guest sharing rules, site and public links, or a web chat that signs no one in. It doesn’t come from manual shares, so this action can’t remove it. Change that access in Salesforce.
Add or remove a user from a group
  • Oleria changes only public (Regular) groups and queues. Role, Organization, manager, and territory groups are managed by Salesforce and are refused.
  • Removing a user who isn’t a member returns nothing to remove. Revert undoes only what the action did.
Disable a non-human identity
  • Connected apps are blocked, and external client apps are turned off. Oleria changes only the app’s enabled state and leaves its other policies as they are.
  • Oleria refuses to change the integration’s own app, and connected apps installed from a managed package.
  • Flows installed from a managed package, and integration users that Salesforce provisions for its own features, can’t be disabled.
  • If Salesforce answers an integration user’s deactivation with an error other than a refusal, Oleria reads the user again. The action succeeds if the user is inactive, and fails if the user is still active.
Revoke access on an Agentforce agent When you run a revoke access action on an Agentforce agent, Oleria changes the permission set that gives the user access, not record shares.
  • Oleria removes the agent from a permission set only when that permission set reaches the user alone.
  • It refuses permission sets that a profile owns, that are part of a permission set group, or that are assigned to anyone else.
  • If there’s no matching access, the action returns nothing to remove.
Partial outcomes Actions that fail midway undo their own changes before they report the failure. If an enable can’t undo its changes, Oleria reports it as successful and marked partial, with what’s still changed, so you can revert it. Ended sessions and revoked tokens can’t be restored, so a session revoke isn’t undone.

Permissions for Disable agent

Oleria uses three permissions for the Disable agent action: Customize Application, Manage Users, and View Setup and Configuration. The action is being rolled out. If you plan to use it, grant these permissions when you set up the integration user, so you don’t have to change its permission set when the action arrives. Oleria offers the action only when the integration user holds all three, and for every Agentforce agent it discovers except two: the Agentforce (Default) agent, and an agent hosted outside Salesforce that Agentforce calls over the Agent-to-Agent (A2A) protocol. Disable an agent hosted outside Salesforce where it is hosted. Customize Application is an admin permission. See the warning under Required permissions. That section also lists the two permissions Salesforce requires with these three. For this action, Oleria uses Customize Application only to deactivate and reactivate an agent’s version.

API usage

Oleria’s API calls count against your org’s daily API request allocation, so Oleria watches the org’s usage during each sync:
  • When your org has used 90% or more of its daily API allocation, Oleria skips optional record reads for the rest of the sync: the records that activities mention. The sync report marks those objects as partly completed. Users, access, shares, and activity are never skipped.
  • When Salesforce reports that the org’s daily API allocation is used up, Oleria reads nothing more in that sync, and each object it didn’t read is reported as failed. The next sync reads every object again.
  • A concurrent request limit, which Salesforce clears within minutes, doesn’t stop the sync.
  • Oleria reuses one Salesforce session per connection, rather than logging in for each request.

Known limitations

  • Restriction and scoping rules: Oleria doesn’t apply restriction rules or scoping rules. Access shown on objects that use them is an upper bound.
  • Sharing sets: Access that Experience Cloud users get through sharing sets isn’t represented.
  • Manager access: Access that managers get to their subordinates’ records through the role hierarchy (Grant Access Using Hierarchies) isn’t represented.
  • OAuth token reach: The access shown for an OAuth token is an upper bound.
  • Certificates: Oleria lists certificates and their expiry, but not what they authenticate.
  • Daily files: The daily Logout and API usage files need a sync at least once a day.
Some access grants change shape as Oleria’s Salesforce model improves, so a sync can replace an existing grant with a new one. Oleria removes the replaced grants only when cleanup of old grants is turned on for your Salesforce instance. If you see access that no longer exists in Salesforce, such as a record share that was revoked, contact support@oleria.com to turn it on.

Contact us

For questions about this integration, contact us at support@oleria.com.