Salesforce - Amazon Bedrock
Services or capabilities described in AWS documentation might vary by Region. To see the differences applicable to the AWS European Sovereign Cloud Region, see the AWS European Sovereign Cloud User Guide.

Salesforce

Salesforce is a cloud-based customer relationship management (CRM) platform for managing support, sales, and marketing. You can connect your Salesforce org as a data source for your managed knowledge base to crawl Salesforce Knowledge articles, including their attachments, and documents.

Supported features

With a Salesforce data source, you can use the following features:

  • Salesforce Knowledge article crawling, including article attachments, and document crawling

  • Archived Knowledge article crawling

  • OAuth 2.0 Client Credentials (2LO) and OAuth 2.0 JWT Bearer authentication

  • Scoping the crawl with a data category filter for Knowledge articles and a folder filter for documents

  • Maximum file size filtering

  • Document-level access control (ACLs), with OAuth 2.0 JWT Bearer authentication

Authentication methods

To connect a Salesforce data source, use OAuth 2.0 Client Credentials (2LO) authentication, which Salesforce calls the Client Credentials Flow. You register an External Client App in Salesforce and assign a dedicated Run-As integration user. The connector authenticates as the app and acts as that user, with no interactive sign-in. The Run-As user's permissions govern what the connector can crawl. For setup steps, see Set up OAuth 2.0 Client Credentials authentication for Salesforce.

To use document-level access control, use the OAUTH2_WITH_JWT_BEARER authentication type. The content crawl continues to use the Client Credentials Flow, and the connector also uses the OAuth 2.0 JWT Bearer Flow to check each querying user's access in Salesforce at query time. The OAUTH2_WITH_JWT_BEARER authentication type is available only when aclEnabled is true. Complete the Client Credentials setup first, and then see Set up OAuth 2.0 JWT Bearer authentication for Salesforce document-level access controls.

Prerequisites

In Salesforce, make sure that you complete the following prerequisites:

In your AWS account, make sure that you complete the following prerequisites:

  • Store your authentication credentials in an AWS Secrets Manager secret and note the Amazon Resource Name (ARN) of the secret.

  • Include the necessary permissions to connect to your data source in your AWS Identity and Access Management (IAM) role/permissions policy for your knowledge base. For information on the required permissions, see Permissions to access your data sources.

How to set up a Salesforce data source

Setting up a Salesforce data source involves the following steps:

  1. Set up authentication. Register and configure the External Client App in Salesforce, and store the credentials in AWS. See Set up OAuth 2.0 Client Credentials authentication for Salesforce.

  2. Connect the data source. Create the Salesforce data source in the knowledge base using the AWS Management Console or the API. See Connect a Salesforce data source.

  3. (Optional) Enable document-level access control. Filter query results by each user's Salesforce permissions. Requires OAuth 2.0 JWT Bearer authentication. See Set up OAuth 2.0 JWT Bearer authentication for Salesforce document-level access controls and Document-level access controls.