Overview

OneDrive is Microsoft's cloud storage solution, facilitating file hosting, synchronization, and sharing for individuals and organizations. Established in 2007, it operates as a core component within the Microsoft 365 ecosystem, providing integrated access to applications like Word, Excel, and PowerPoint. Users can store various file types, including documents, photos, and videos, and access them from compatible devices, including desktops, laptops, tablets, and smartphones. The service offers both personal and business-oriented plans, differing in storage capacity, security features, and administrative controls.

For individuals, OneDrive Personal serves as a digital locker for personal files, supporting automated photo backups and file versioning. It enables users to share files and folders with others, controlling access permissions such as view-only or edit capabilities. Its integration with Windows and macOS operating systems allows for seamless file synchronization, ensuring that changes made on one device are reflected across all linked devices.

OneDrive for Business extends these functionalities to suit organizational needs. It provides capabilities for team collaboration, allowing multiple users to co-author documents in real-time. Administrative features include granular access controls, data loss prevention (DLP) policies, and extensive auditing capabilities to meet enterprise compliance requirements. The service supports various compliance standards, including ISO 27001, HIPAA, GDPR, SOC 1, SOC 2, and FISMA, which are critical for regulated industries. Developer integration is primarily achieved through the Microsoft Graph API, offering a unified endpoint to interact with OneDrive and other Microsoft 365 services.

Developers can utilize REST APIs and SDKs to build applications that manage files, folders, and sharing permissions within OneDrive. This integration pathway allows for custom solutions that extend OneDrive's functionality, such as automated workflows, content management systems, or specialized data analytics tools. The developer experience is designed to be consistent across different Microsoft 365 services, simplifying the process of building connected applications.

Key features

  • Cloud Storage & Synchronization: Stores files online and synchronizes them across multiple devices, ensuring access from anywhere, as described in OneDrive support documentation.
  • File Sharing & Collaboration: Allows users to share files and folders with others, setting permissions for viewing or editing, and supports real-time co-authoring of documents.
  • Offline Access: Enables users to designate files or folders for offline access, synchronizing changes when an internet connection is restored.
  • Version History: Maintains previous versions of files, allowing users to restore older iterations if needed.
  • Photo & Video Backup: Automatically backs up photos and videos from mobile devices to the cloud.
  • Integration with Microsoft 365: Deeply integrates with Microsoft Office applications (Word, Excel, PowerPoint) for direct saving and access.
  • File On-Demand: Saves device space by showing all files in File Explorer, but only downloading them when opened, as detailed by Microsoft's explanation of Files On-Demand.
  • Security & Compliance: Offers features like data encryption, multi-factor authentication, and compliance certifications (ISO 27001, HIPAA, GDPR, SOC 1, SOC 2, FISMA).
  • Developer API: Provides access via the Microsoft Graph API, allowing programmatic management of files, folders, and permissions.

Pricing

OneDrive offers a free tier with 5 GB of storage. Paid plans are available with increased storage and additional features, often bundled with Microsoft 365 subscriptions. Pricing is effective as of May 2026, per Microsoft's OneDrive comparison page.

Plan Name Storage Price (per month) Key Features
Free 5 GB $0 Basic cloud storage, file sharing
Microsoft 365 Basic 100 GB $1.99 Ad-free Outlook email, 100 GB storage
Microsoft 365 Personal 1 TB $6.99 1 TB storage, premium Office apps, advanced security
Microsoft 365 Family 6 TB (1 TB per person) $9.99 6 TB storage (for up to 6 people), premium Office apps, advanced security
OneDrive for Business (Plan 1) 1 TB $5.00 (per user) 1 TB storage, file sharing, mobile access, basic data governance
Microsoft 365 Business Basic 1 TB $6.00 (per user) 1 TB storage, web and mobile Office apps, Teams, Exchange

Common integrations

  • Microsoft Office Applications: Native integration with Word, Excel, PowerPoint, and OneNote for direct file saving, opening, and co-authoring.
  • Microsoft Teams: Seamless file sharing and collaboration within Teams channels through shared OneDrive storage.
  • SharePoint: OneDrive for Business often integrates with SharePoint for broader document management and intranet capabilities.
  • Outlook: Attaching and sharing large files from OneDrive directly within Outlook email.
  • Windows File Explorer: Built-in synchronization client for Windows operating systems, enabling native file management.
  • macOS Finder: Synchronization client for macOS, allowing integration with the Finder for file access.
  • Third-Party Apps via Microsoft Graph: Developers can integrate OneDrive into custom applications using the Microsoft Graph API, which provides a unified access point for Microsoft 365 data. This is a common pattern for linking business processes to cloud storage, as discussed in best practices for enterprise integration by organizations like Thoughtworks.

Alternatives

  • Google Drive: Cloud storage and synchronization service integrated with Google Workspace, offering similar file sharing and collaboration features.
  • Dropbox: A widely used cloud storage service known for its cross-platform synchronization and simplified sharing.
  • Box: Enterprise-focused cloud content management and file sharing platform with advanced security and compliance features.

Getting started

To interact with OneDrive programmatically, developers typically use the Microsoft Graph API. The following C# example demonstrates how to create a new folder in a user's OneDrive root directory using the Microsoft Graph .NET SDK. This assumes you have authenticated and obtained an access token with appropriate permissions (e.g., Files.ReadWrite).


using Azure.Identity;
using Microsoft.Graph;
using System;
using System.Threading.Tasks;

public class OneDriveExample
{
    public static async Task Main(string[] args)
    {
        // Replace with your actual client ID, tenant ID, and client secret
        // For production, use secure credential management
        var clientId = "YOUR_CLIENT_ID";
        var tenantId = "YOUR_TENANT_ID";
        var clientSecret = "YOUR_CLIENT_SECRET";

        var scopes = new[] { "https://graph.microsoft.com/.default" };

        var clientSecretCredential = new ClientSecretCredential(tenantId, clientId, clientSecret);

        var graphClient = new GraphServiceClient(clientSecretCredential, scopes);

        try
        {
            var driveItem = new DriveItem
            {
                Name = "MyNewFolder",
                Folder = new Folder {},
                ConflictBehavior = "rename"
            };

            var result = await graphClient.Me.Drive.Root.Children
                .Request()
                .AddAsync(driveItem);

            Console.WriteLine($"Folder '{result.Name}' created with ID: {result.Id}");
        }
        catch (ServiceException ex)
        {
            Console.WriteLine($"Error creating folder: {ex.Message}");
        }
    }
}

This code snippet initializes a GraphServiceClient using client credentials, then constructs a DriveItem object representing a new folder. The AddAsync method is then called on the user's root drive children collection to create the folder. Error handling is included to catch potential issues during the API call, as documented in the Microsoft Graph error reference.