Error Syncing SharePoint Data Source with Amazon Bedrock Knowledgebase

0

Hello, I am trying to add SharePoint as a data source for the Amazon Bedrock Knowledgebase. I have followed all the configuration steps mentioned in the official documentation: https://docs.aws.amazon.com/bedrock/latest/userguide/sharepoint-data-source-connector.html

Error I encountered: After adding SharePoint as a data source in the knowledgebase, when I click "Sync," I receive the following error:

Sync failed for data source - 'knowledge-base-xxxx-start-xxxxx-data-source' ["Failed to connect to the URL of your data source. Please check the URL, access permissions, and data source configuration. See docs with information on all requirements to connect to your selected data source: https://docs.aws.amazon.com/bedrock/latest/userguide/data-source-connectors.html"]

URL Provided: https://xx1234.sharepoint.com/sites/Quiz_Knowledgebase/

I would appreciate any advice on resolving this issue. Thanks in advance!

Cheers, Muna

1 Answer
2
Accepted Answer

Hi,

Often the auths part is source of issue. Did you validate all points below in the page that you point:

(For OAuth 2.0 authentication) Copy your Microsoft 365 tenant ID. You can find your tenant ID in the 
Properties of your Azure Active Directory portal or in your OAuth application.

Take note of the username and password of the admin SharePoint account, and copy the 
client ID and client secret value when registering an application.

Note
For an example application, see Register a client application in Microsoft Entra ID (formerly 
known as Azure Active Directory) on the Microsoft Learn website.

Certain read permissions are required to connect to SharePoint when you register an application.

SharePoint: AllSites.Read (Delegated) – Read items in all site collections

You might need to turn off Security Defaults in your Azure portal using an admin user. For more 
information on managing security default settings in the Azure portal, see Microsoft documentation on 
how to enable/disable security defaults.

You might need to turn off multi-factor authentication (MFA) in your SharePoint account, so that Amazon 
Bedrock is not blocked from crawling your SharePoint content.

Best,

Didier

profile pictureAWS
EXPERT
answered 22 days ago
profile picture
EXPERT
reviewed 22 days ago
profile picture
EXPERT
reviewed 22 days ago
profile picture
EXPERT
reviewed 22 days ago
  • Hello @Didier_Durand Sir, thank you for the suggestions. I've made the following changes as recommended:

    • Turned off Security Defaults in Azure AD to allow access from the SharePoint Admin account.
    • Granted the AllSites.Read permission (delegated) to read items across site collections from the SharePoint admin account.
    • Also disabled Multi-Factor Authentication (MFA) for the SharePoint admin account.

    However, I am still encountering the same error when attempting to sync.

    Error Message:

    "Sync failed for data source - 'knowledge-base-xxxx-start-xxxx-data-source' ["Failed to connect to the URL of your data source. Please check the URL, access permissions, and data source configuration. See docs with information on all requirements to connect to your selected data source: https://docs.aws.amazon.com/bedrock/latest/userguide/data-source-connectors.html"] 
    

    Any further advice on what might be causing this issue would be greatly appreciated.

    Thanks!

  • Hi, I would now that you checked all this to open a Support ticket via the console of your AWS Account to get deeper assistance on service internals.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions