> For the complete documentation index, see [llms.txt](https://docs.expandrive.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.expandrive.com/integrations/onedrive.md).

# OneDrive

[OneDrive](https://www.microsoft.com/en-us/microsoft-365/onedrive/online-cloud-storage) is Microsoft's consumer-grade cloud storage service. It gives you a place to store documents, photos, videos, and other files online, so they're accessible from any device. If you have a Microsoft account, you likely already have OneDrive storage available. The service works like Google Drive or Dropbox: files live on Microsoft's servers, and you can sync or access them from wherever you are.

ExpanDrive lets you connect to your OneDrive storage so you can manage files directly from your desktop. This connector is for personal Microsoft accounts only. If you're connecting to a work or school account, use the [OneDrive for Business](/integrations/onedrive-for-business.md) connector instead.

## Connecting to OneDrive

ExpanDrive connects to OneDrive using a standard [OAuth flow](/security.md#understanding-oauth-2), which means you won't enter your Microsoft password into ExpanDrive directly. Instead, you'll be redirected to Microsoft's login page, where you'll sign in and grant ExpanDrive permission to access your files. Microsoft handles the authentication and issues a token that ExpanDrive uses to connect on your behalf. ExpanDrive never has access to your Microsoft credentials.

### Nickname

The nickname is the name that appears as the mounted volume on your computer. It's what you see in Finder (on Mac) or File Explorer (on Windows).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.expandrive.com/integrations/onedrive.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
