> For the complete documentation index, see [llms.txt](https://docs.lleverage.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.lleverage.ai/administer-and-govern/control/connections/microsoft-onedrive.md).

# Microsoft OneDrive

Microsoft OneDrive integration in Lleverage connects your workflows and agents to your OneDrive files, so they can store, retrieve and organise documents as part of your automated processes.

### How to Connect

1. **Go to Control → Connections** in your project
2. **Pick Microsoft OneDrive** from the list of apps
3. **Choose which actions** the connection should allow and who should have access (shared or personal)
4. **Choose "Connect Now"** and sign in with Microsoft, or send an authentication link so a colleague can connect on your behalf

> 💡 If your Microsoft organisation requires administrator approval for new apps, the connect flow gives you an approval link to share with your Microsoft administrator.

### What Microsoft OneDrive Can Do

* **Files** - upload and download files, retrieve file details, and list or search the files in your drive
* **Organising** - copy, move, rename and delete files and folders, and create new folders
* **Sharing** - create sharing links for files and look up your drive's details

> 💡 **Use case**: Save generated documents to a known folder, fetch files for processing in a workflow, or share results with a link the rest of the team can open.

### Important Considerations

* The connection works with the signed-in account's OneDrive; shared files appear where that account can access them
* Files downloaded in a workflow become available to later steps, such as data extraction or email attachments


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.lleverage.ai/administer-and-govern/control/connections/microsoft-onedrive.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
