> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bondata.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# SharePoint

> Connect BonData to Microsoft SharePoint

Microsoft SharePoint is a collaboration and document management platform integrated with Microsoft 365, used for file storage, team sites, and intranet portals. With BonData, you can connect to your SharePoint sites to read and analyze documents and lists within Agent workflows.

## SharePoint OAuth Setup

Follow these steps to configure OAuth authentication for BonData.

### Step 1: Register an App in Azure AD

1. Go to [Azure Portal](https://portal.azure.com/)
2. Navigate to **Azure Active Directory** → **App registrations**
3. Click **New registration**
4. Configure:
   * **Name**: `BonData SharePoint Integration`
   * **Supported account types**: Accounts in any organizational directory
   * **Redirect URI**: Web - `https://app.bondata.ai/auth/oauth2/callback`
5. Click **Register**

### Step 2: Configure API Permissions

1. Go to **API permissions** → **Add a permission**
2. Select **Microsoft Graph**
3. Choose **Delegated permissions** and select:
   * `Sites.Read.All` - Read items in all site collections
   * `Files.ReadWrite.All` - Read and write files
4. Click **Add permissions**
5. Click **Grant admin consent** (requires admin)

### Step 3: Create Client Secret

1. Go to **Certificates & secrets** → **Client secrets**
2. Click **New client secret**
3. Add a description and select expiration
4. **Copy the secret value immediately** - it won't be shown again

### Step 4: Note Your Credentials

* **Client ID**: Found on the Overview page (Application ID)
* **Client Secret**: The value you just copied

### Step 5: Enter Credentials

Click Connect in BonData to authorize via OAuth using your Azure AD app credentials.

## Required Fields

OAuth authentication is handled through the Azure AD app. No additional fields are required after setup.
