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. Connect this source through the Airweave UI, which will guide you through the OAuth flow.

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.

The inherited entity_id stores the drive’s unique ID. Additional key fields come from the Microsoft Graph drive resource.

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.).
created_atOptional[datetime]Datetime when the drive was created (from createdDateTime).
updated_atOptional[datetime]Datetime when the drive was last modified (from lastModifiedDateTime).

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

Inherits from FileEntity to support file processing capabilities. The inherited entity_id stores the DriveItem’s unique ID.

FieldTypeDescription
nameOptional[str]The name of the item (folder or file).
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.
created_atOptional[datetime]Datetime when the item was created (from createdDateTime).
updated_atOptional[datetime]Datetime when the item was last modified (from lastModifiedDateTime).
sizeOptional[int]Size of the item in bytes.
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.