> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.airweave.ai/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.airweave.ai/_mcp/server.

# Onedrive

> Onedrive integration with Airweave

{/* AUTO-GENERATED CONTENT START */}

<img src="https://fdr-prod-docs-files-public.s3.us-east-1.amazonaws.com/airweave.docs.buildwithfern.com/2026-05-20T11%3A36%3A51.367Z/docs/pages/connectors/onedrive/icon.svg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIA6KXJSKKNFOCF7G4B%2F20260807%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260807T163133Z&X-Amz-Expires=604800&X-Amz-Signature=0cd90b21c1b1878a1ddd6006e928e9da7544743256cc9efea596a44e187c305d&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject" alt="Onedrive logo" width="48" height="48" />

<h1>
  Onedrive
</h1>

This connector enables AI agents and RAG systems to retrieve context from Onedrive through Airweave's unified search layer.

## Configuration

OneDrive source connector integrates with the Microsoft Graph API to extract files.

Supports OneDrive personal and business accounts.

It supports various OneDrive scenarios including
personal drives, business drives, and app folder access with intelligent fallback handling.

#### [View Source Code](https://github.com/airweave-ai/airweave/tree/main/backend/airweave/platform/sources/onedrive.py)

Explore the Onedrive connector implementation

### Authentication

This connector uses **OAuth 2.0 authentication**. You can connect through the Airweave UI or API using the OAuth flow.

**Supported authentication methods:**

* OAuth Browser Flow (recommended for UI)
* OAuth Token (for programmatic access)
* Auth Provider (enterprise SSO)

### Configuration Options

This connector does not have any additional configuration options.

## Data Models

The following data models are available for this connector:

#### OneDriveDriveEntity

Schema for a OneDrive Drive object.

Reference:
[https://learn.microsoft.com/en-us/graph/api/resources/drive?view=graph-rest-1.0](https://learn.microsoft.com/en-us/graph/api/resources/drive?view=graph-rest-1.0)

| Field              | Type                       | Description                                                                                           |
| ------------------ | -------------------------- | ----------------------------------------------------------------------------------------------------- |
| id                 | str                        | Drive ID.                                                                                             |
| name               | str                        | Drive name or drive type.                                                                             |
| drive\_type        | Optional\[str]             | Describes the type of drive represented by this resource (e.g., personal, business, documentLibrary). |
| owner              | Optional\[Dict\[str, Any]] | Information about the user or application that owns this drive.                                       |
| quota              | Optional\[Dict\[str, Any]] | Information about the drive's storage quota (total, used, remaining, etc.).                           |
| web\_url\_override | Optional\[str]             | URL to open the drive.                                                                                |

#### OneDriveDriveItemEntity

Schema for a OneDrive DriveItem object (file or folder).

Inherits from FileEntity to support file processing capabilities.

Reference:
[https://learn.microsoft.com/en-us/graph/api/resources/driveitem?view=graph-rest-1.0](https://learn.microsoft.com/en-us/graph/api/resources/driveitem?view=graph-rest-1.0)

| Field              | Type                       | Description                                                                       |
| ------------------ | -------------------------- | --------------------------------------------------------------------------------- |
| id                 | str                        | Drive item ID.                                                                    |
| name               | str                        | Item name.                                                                        |
| description        | Optional\[str]             | Description of the item (if available).                                           |
| etag               | Optional\[str]             | An eTag for the content of the item. Used for change tracking.                    |
| ctag               | Optional\[str]             | A cTag for the content of the item. Used for internal sync.                       |
| web\_url\_override | Optional\[str]             | URL that displays the resource in the browser.                                    |
| file               | Optional\[Dict\[str, Any]] | File metadata if the item is a file (e.g., mimeType, hashes).                     |
| folder             | Optional\[Dict\[str, Any]] | Folder metadata if the item is a folder (e.g., childCount).                       |
| parent\_reference  | Optional\[Dict\[str, Any]] | Information about the parent of this item, such as driveId or parent folder path. |

{/* AUTO-GENERATED CONTENT END */}