Onedrive

Onedrive logo

Onedrive

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.

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:

Schema for a OneDrive Drive object.

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

FieldTypeDescription
drive_typeOptional[str]Describes the type of drive represented by this resource (e.g., personal, business, documentLibrary).
ownerOptional[Dict[str, Any]]Information about the user or application that owns this drive.
quotaOptional[Dict[str, Any]]Information about the drive’s storage quota (total, used, remaining, etc.).

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

FieldTypeDescription
descriptionOptional[str]Description of the item (if available).
etagOptional[str]An eTag for the content of the item. Used for change tracking.
ctagOptional[str]A cTag for the content of the item. Used for internal sync.
web_urlOptional[str]URL that displays the resource in the browser.
fileOptional[Dict[str, Any]]File metadata if the item is a file (e.g., mimeType, hashes).
folderOptional[Dict[str, Any]]Folder metadata if the item is a folder (e.g., childCount).
parent_referenceOptional[Dict[str, Any]]Information about the parent of this item, such as driveId or parent folder path.