Connect Freddy to Microsoft SharePoint to access files, documents, and data from your SharePoint sites and drives.
- Application (client) ID
- Directory (tenant) ID
- Client secret
- Drive name (optional)
- Folder path (optional)
The Microsoft Graph API uses OAuth for authentication. You need to create an application in Azure Portal to get the required credentials.
- Login to Azure Portal
- Click the upper-left menu icon and select Azure Active Directory
- Select App Registrations
- Click New registration
- Register the application:
- Name:
Freddy SharePoint Integration - Supported account types: Accounts in this organizational directory only
- Name:
- Click Register
- Copy the
client_idandtenant_idfrom the overview page
- In your app registration, select Certificates & secrets
- Click New client secret
- Configure:
- Description:
Freddy SharePoint client secret - Expires: Choose appropriate expiration (recommended: 12 months)
- Description:
- Click Add
- Copy the client secret value immediately (it won't be shown again)
- Select API permissions
- Click Add a permission
- Select Microsoft Graph
- Select Application permissions
- Add the following permission:
Files.Read.All- Read all files in SharePoint
- Click Add permissions
- Click Grant admin consent (requires admin privileges)
curl https://api.aitronos.com/v1/personal-connectors/configurations \
-H "api-key: $FREDDY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"connectorId": "sharepoint",
"name": "My SharePoint",
"configuration": {
"tenantId": "your-tenant-id",
"searchScope": "ALL",
"folderPath": "",
"siteUrl": ""
},
"credentials": {
"clientId": "your-client-id",
"clientSecret": "your-client-secret"
}
}'| Field | Type | Description |
|---|---|---|
tenantId | string | Your Azure AD tenant ID |
searchScope | string | Where to search: ACCESSIBLE_DRIVES, SHARED_ITEMS, or ALL (default) |
folderPath | string | Specific folder path to search (empty = all folders) |
siteUrl | string | SharePoint site URL (empty = main site) |
- ACCESSIBLE_DRIVES - All SharePoint drives the user can access
- SHARED_ITEMS - Shared items the user has access to
- ALL - Search both drives and shared items (default)
To access files in a specific SharePoint site, provide the site URL:
{
"siteUrl": "https://yourcompany.sharepoint.com/sites/marketing"
}To iterate all sub-sites:
{
"siteUrl": "https://yourcompany.sharepoint.com/sites/"
}The connector supports multiple file formats:
| Format | Extensions | Notes |
|---|---|---|
| CSV | .csv | Configurable delimiters, encoding |
| Parquet | .parquet | Column-oriented storage |
| Avro | .avro | Schema-based serialization |
| JSONL | .jsonl | Line-delimited JSON |
| Documents | .md, .txt, .pdf, .docx | Text extraction |
Use glob-style patterns to match files:
| Pattern | Description |
|---|---|
** | Match all files |
**/*.csv | All CSV files |
myFolder/**/*.csv | CSV files under myFolder |
**/prefix*.csv | CSV files with specific prefix |
reports/2024/** | All files in 2024 reports folder |
{
"globs": "**/*.csv|**/*.xlsx"
}This matches all CSV and Excel files in any folder.
| Mode | Supported |
|---|---|
| Full Refresh | ✅ Yes |
| Incremental | ✅ Yes |
| SharePoint Type | Freddy Type |
|---|---|
string | string |
number | number |
array | array |
object | object |
The connector respects Microsoft Graph API throttling limits. Implement exponential backoff for 429 responses.
Error: Failed to authenticate with Microsoft Graph
Solutions:
- Verify
client_id,tenant_id, andclient_secretare correct - Check the client secret hasn't expired
- Ensure admin consent was granted for API permissions
- Verify the app registration is in the correct tenant
Error: Access denied to SharePoint resources
Solutions:
- Verify
Files.Read.Allpermission is granted - Ensure admin consent was provided
- Check the user has access to the requested site/drive
Error: Empty results when syncing
Solutions:
- Verify the folder path is correct
- Check the search scope includes the target location
- Ensure the site URL is correct for multi-site setups
- Verify glob patterns match your file names