Skip to main content

Set up Salesforce

Connecting Salesforce requires a single authorization step. Once connected, your setup provides:

  • Live connection: Glean queries Salesforce in real time to return up-to-the-minute record details.
  • Actionable tools: Glean and Glean agents can search Salesforce, run SOQL queries, and execute actions directly on records.
  • Permission-aware search: Glean automatically builds a background search index that respects your Salesforce access controls.

How features become available after setup

Live queries and agent tools work immediately after authorization. Permission-aware search activates automatically as soon as the initial crawl completes, which allows Glean to answer questions grounded in Salesforce before full indexing has finished.

CapabilityWhen it becomes availableExample
Live connectionImmediately after authorizationA representative creates the opportunity Acme Q3 expansion and finds it in Glean seconds later, before any incremental crawl has run.
ToolsImmediately after authorizationA support lead asks Glean for escalated Contoso cases created this week, and receives each case with its subject, status, and owner.
Permission-aware searchAutomatically, once the initial crawl completesSalesforce records rank alongside content from every other connected source in Glean search results.

You can confirm both capabilities on the connector's Overview tab, under Data retrieval methods, which shows Live connection and the sync status of the background index.

Every live query and every tool invocation uses the requesting user's own Salesforce credentials, so results and actions remain scoped to that user's permissions. For details, see Per-user authorization and Use the Salesforce connector.

Set up the connector

Prerequisites

Confirm the following before you begin. Setup requires both roles, because the connector is created in Glean and authorized in Salesforce.

RequirementWhy it is needed
A Glean org admin, or an equivalent role authorized to manage connectors and toolsCreates the Salesforce connector and configures its objects and tools in the Admin console
A Salesforce administrator who can authorize the Glean connected app for your orgGrants Glean access to Salesforce over OAuth during the authorization step

Step 1: Log in to the Admin console

Sign in to Glean and go to Admin console → Platform → Connectors, select Add connector, and choose Salesforce.

Step 2: Authorize Salesforce

Sign in to Salesforce and authorize Glean through the connected app over OAuth.

Glean mirrors Salesforce record-level permissions as it indexes. Live data and tools enforce each user's own Salesforce permissions at query time: see Per-user authorization.

Step 3: Add objects

Glean covers the standard CRM objects by default: Accounts, Contacts, Leads, Opportunities, Cases, Case Comments, Tasks, Campaigns, Knowledge, and Chatter. Add custom or managed-package objects to broaden coverage during setup or any time afterward.

See Additional objects for how custom-object coverage and permissions work.

Step 4: Begin sync

Start the initial crawl. The crawl runs in the background, and Glean then runs scheduled full and incremental crawls of the objects you selected to keep content fresh.

Once indexing and ranking complete, permission-aware search over Salesforce is enabled automatically, with no further action required from you. Indexing does not block the rest of your rollout, so you can continue onboarding your other sources while the initial crawl runs.

Per-user authorization

Setup connects Glean to Salesforce at the organization level. From there, two different identities decide what any one person sees:

CapabilityRuns asWhat it enforces
Indexed searchThe connector's integration userSalesforce record-level permissions, mirrored into the index as Glean crawls
Live data and toolsEach end user's own Salesforce accountThat user's own Salesforce permissions, checked at query time

Indexed search requires no action from your end users. Once the initial crawl completes, each person sees exactly the Salesforce records their Salesforce permissions entitle them to.

The live connection and tools require one action from each end user. Each person authorizes their own Salesforce account over OAuth the first time they use a live capability, which is a one-time step separate from the connector authorization you completed during setup. Until a user completes that authorization, Glean answers their Salesforce questions from indexed content only. Afterward, every live query and every tool invocation is scoped to that user's own Salesforce permissions.

Answers therefore remain record-level permission-aware on both paths: the index mirrors Salesforce permissions, and every live capability runs as the person asking.

Manage tools

Tools require no separate enablement step. Authorizing Salesforce makes them available, and you configure them as part of connector setup.

Read tools

Read tools only retrieve. Every call runs as the person asking, scoped to their own Salesforce permissions, so a read tool cannot surface a record that person could not already open in Salesforce. Examples include the following:

ToolWhat it does
Salesforce searchSearches Salesforce with the asking user's own OAuth context
Search Salesforce with SOQLTurns a question into SOQL, runs it, and grounds the answer in the results
Get accountReturns a single account record and its fields

Write tools

Write tools change Salesforce records. They also run as the person asking, so a write tool can never do something that person could not do themselves. Enable them when you are ready for Glean agents to act on your CRM, and pair them with human review. Examples include the following:

ToolWhat it does
Update Salesforce opportunityChanges fields on an existing opportunity, such as stage or amount
Create contactCreates a new contact, optionally linked to an account
Log email activityRecords an email against a Salesforce record as activity history

For the complete inventory, including each tool's parameters and troubleshooting guidance, see Salesforce tools.

Tool settings you can change after setup

For the full guide, see Tools overview.

After setup

Once the initial crawl is healthy, refine coverage:

  • Broaden coverage with additional and custom objects: see Additional objects.
  • Index files and attachments on Salesforce records: see Attachments indexing.
  • Check progress any time from Admin console → Platform → Connectors → Salesforce.

See also