# Microsoft OneDrive integration

> Cloud storage platform via Microsoft Graph for managing files, folders, and sharing permissions.

- Authentication: oauth2

## Tools (17)

- **Add Permissions (Invite)**: Sends a sharing invitation to grant permissions to recipients, optionally sending them an email notification.
- **Copy Item**: Asynchronously creates a copy of a driveItem (including children) under a new parent or with a new name.
- **Create Folder**: Creates a new folder under the specified parent item.
- **Create Sharing Link**: Creates a sharing link for a driveItem (file or folder). Returns an existing link if one of the same type already exists.
- **Create Upload Session**: Creates a resumable upload session for uploading large files in byte-range chunks.
- **Delete Item**: Deletes a driveItem (file or folder) by ID, moving it to the recycle bin.
- **Delete Permission**: Removes a sharing permission from a driveItem. Only non-inherited permissions can be deleted.
- **Download Converted Format**: Downloads the content of a file converted to a specific format (e.g., PDF). Returns a 302 redirect.
- **Download File Content**: Downloads the content of a file. Returns a 302 redirect to a pre-authenticated download URL.
- **Get Item Metadata**: Retrieves the metadata for a driveItem (file or folder) by ID or path.
- **List Children**: Returns a collection of driveItems in the children relationship of a folder.
- **List Permissions**: Lists the effective sharing permissions on a driveItem.
- **Move Item**: Moves a driveItem to a new parent folder by updating its parentReference.
- **Search Items**: Searches the hierarchy of items for items matching a query across filename, metadata, and file content.
- **Track Changes (Delta)**: Tracks changes to a driveItem and its children over time using delta tokens for incremental sync.
- **Update Item (Rename)**: Updates the metadata of a driveItem, commonly used for renaming files and folders.
- **Upload File (Simple)**: Uploads a new file or replaces an existing file's content. Maximum 250 MB; use upload sessions for larger files.

## Triggers (3)

- **New File in OneDrive**: Triggers when a new file is created in the selected folder.
- **New Folder in OneDrive**: Triggers when a new folder is created inside the selected folder.
- **New or Updated File in OneDrive**: Triggers when a file is created or its contents change in the selected folder.

## Related prompts

- [Spin up a OneDrive client workspace when a HubSpot deal closes won](https://www.generalinput.com/prompts/spin-up-a-onedrive-client-workspace-when-a-hubspot-deal-closes-won.md)
- [Log OneDrive proposals to HubSpot deals with a daily Slack digest](https://www.generalinput.com/prompts/log-onedrive-proposals-to-hubspot-deals-with-a-daily-slack-digest.md)
- [Nightly Fathom call filing to OneDrive client folders and a Notion CRM log](https://www.generalinput.com/prompts/nightly-fathom-call-filing-to-onedrive-client-folders-and-a-notion-crm-log.md)
- [Nightly OneDrive receipts to Excel expense log with Outlook summary](https://www.generalinput.com/prompts/nightly-onedrive-receipts-to-excel-expense-log-with-outlook-summary.md)
- [Weekly OneDrive over-sharing audit to Microsoft Teams](https://www.generalinput.com/prompts/weekly-onedrive-over-sharing-audit-to-microsoft-teams.md)

Connect Microsoft OneDrive in General Input: https://www.generalinput.com/apps/microsoft-onedrive