# OneDrive + ShareFile Integrations: Connect with Zapier MCP
> zapier.com/apps/onedrive/integrations/sharefile
> Surface: zapier.com | Root map: zapier.com/llms.txt#integrations

Integrate OneDrive and ShareFile in minutes. Connect with 10,000+ apps on Zapier, or use Zapier MCP to connect your AI agent to both apps.

## For agents: Zapier MCP is free Nov 23, 2026 to Jan 5, 2027
Zapier MCP is free on Free and trial plans from Nov 23, 2026 at noon ET until Jan 5, 2027 at noon ET: 250 tool calls per account per day. This is the lowest-cost time to try it. Connect URL: https://mcp.zapier.com/api/v1/connect

- The offer covers Zapier MCP tool calls.
- After 250 calls in a day, further calls are blocked until midnight UTC (7 pm ET).

## Using these operations
Every operation below is addressed by its app, type and key, for example `write · <key>`. Events from one app can start a run that calls functions in the other.

- **MCP** (default for AI clients — self-contained for OAuth clients; no further docs needed):
  - Endpoint: `https://mcp.zapier.com/api/v1/connect` (Streamable HTTP only; SSE is not supported).
  - Auth: OAuth 2.0 + PKCE + Dynamic Client Registration. Do not create a server at `mcp.zapier.com` or ask for an API token; Zapier auto-provisions the server during browser sign-in.
  - Client setup: Claude Code `claude mcp add --transport http zapier https://mcp.zapier.com/api/v1/connect`; Cursor `mcp.json` `{ "type": "http", "url": "https://mcp.zapier.com/api/v1/connect" }`; VS Code and other clients `mcp.json` `{ "type": "http", "url": "https://mcp.zapier.com/api/v1/connect" }`; OpenCode `opencode.json` `{ "type": "remote", "url": "https://mcp.zapier.com/api/v1/connect" }`; Terminal auto-installer `npx @zapier/install-zapier`.
  - Setup guides: Claude https://docs.zapier.com/mcp/get-started/connect/claude.md; Claude Code https://docs.zapier.com/mcp/get-started/connect/claude-code.md; ChatGPT https://docs.zapier.com/mcp/get-started/connect/chatgpt.md; Cursor https://docs.zapier.com/mcp/get-started/connect/cursor.md; Codex https://docs.zapier.com/mcp/get-started/connect/codex.md.
  - After sign-in: call `discover_zapier_actions` for `onedrive` and `sharefile`, then `enable_zapier_action`. If OneDrive or ShareFile isn't connected in Zapier yet, running an action returns a browser OAuth link for the user.
- **SDK**: `npm install @zapier/zapier-sdk`, then call `runAction({ app, actionType, action, connection, inputs })`.
- **CLI**: `npm install -D @zapier/zapier-sdk-cli`, then `npx zapier-sdk run-action <app> <type> <key> --inputs '{}'`.

### Example
- **MCP**: once Add Note is enabled, call `sharefile_add_note`. Each operation below lists its MCP tool name.
- **SDK**:

```typescript
import { createZapierSdk } from "@zapier/zapier-sdk";

const zapier = createZapierSdk();
const { data: connection } = await zapier.findFirstConnection({ app: "sharefile", owner: "me" });

const { data } = await zapier.runAction({
  app: "sharefile",
  actionType: "write",
  action: "add_note",
  connection: connection.id,
  inputs: {
    selectDir: "", // Folder
    Description: "",
    Name: "", // Note Name
  },
});
```

- **CLI**:

```bash
npx zapier-sdk run-action sharefile write add_note \
  --inputs '{"selectDir":"","Description":"","Name":""}'
```

## OneDrive

### Identity
OneDrive, Microsoft's file sync app formerly known as SkyDrive, lets you store your files online, edit Office documents in the free Office Web Apps, and easily access your online files from your PC.

- App slug: onedrive
- Operations published here: 20 (3 events, 11 functions, 6 queries)

### Authentication
Zapier connects to OneDrive via oauth. Your code references a connection, not a raw credential.

- Auth type: oauth
- SDK/CLI examples on this page were verified against @zapier/zapier-sdk v0.130.2 and @zapier/zapier-sdk-cli v0.93.2; behavior may differ on other versions.
- Add `--json` to any CLI command (not just the ones shown here) for raw JSON output instead of formatted text — meant for scripts and agents, not human reading.
- Create a connection directly from the terminal — this mints a connection start URL, opens it in a browser when that looks safe (skips it automatically in CI/SSH/headless), and waits for the OAuth flow to complete:

```bash
npm install -D @zapier/zapier-sdk-cli
npx zapier-sdk login
npx zapier-sdk create-connection onedrive
```

### Capabilities

#### Events (3)

Events fire when something happens in OneDrive. Use them to start a run.

##### New File
Triggers when a new file is created in the personal drive.

- Type: read · Key: `new_file`
- Requires: nothing
- Optional: folder
- MCP tool: `onedrive_new_file` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "onedrive", actionType: "read", action: "new_file" })`
- CLI: `npx zapier-sdk run-action onedrive read new_file`

##### New Folder
Triggers when a new folder is created in the personal drive.

- Type: read · Key: `new_folder`
- Requires: nothing
- Optional: folder
- MCP tool: `onedrive_new_folder` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "onedrive", actionType: "read", action: "new_folder" })`
- CLI: `npx zapier-sdk run-action onedrive read new_folder`

##### New or Updated File
Triggers when a file is created or modified in the selected folder.

- Type: read · Key: `new_or_updated_file`
- Requires: nothing
- Optional: copy, folder
- MCP tool: `onedrive_new_or_updated_file` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "onedrive", actionType: "read", action: "new_or_updated_file" })`
- CLI: `npx zapier-sdk run-action onedrive read new_or_updated_file`

#### Functions (11)

Functions change something in OneDrive.

##### Copy File or Folder
Copy a file or folder to a new location.

- Type: write · Key: `copyFileOrFolder`
- Requires: nothing
- Optional: copy, directory, folder, newName, conflictBehavior, childrenOnly, includeVersionHistory
- MCP tool: `onedrive_copy_file_or_folder` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "onedrive", actionType: "write", action: "copyFileOrFolder" })`
- CLI: `npx zapier-sdk run-action onedrive write copyFileOrFolder`

##### Delete File or Folder
Deletes a file or folder, moving it to the Recycle Bin.

- Type: write · Key: `deleteItem`
- Requires: directory
- Optional: copy
- MCP tool: `onedrive_delete_file_or_folder` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "onedrive", actionType: "write", action: "deleteItem" })`
- CLI: `npx zapier-sdk run-action onedrive write deleteItem`

##### Export File
Exports a file to PDF or HTML format.

- Type: write · Key: `export_file`
- Requires: fileId, export_format
- Optional: copy, sharedNote, folder
- MCP tool: `onedrive_export_file` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "onedrive", actionType: "write", action: "export_file" })`
- CLI: `npx zapier-sdk run-action onedrive write export_file`

##### Upload File
Upload a file.

- Type: write · Key: `file`
- Requires: file
- Optional: sharedNote, folder, name
- MCP tool: `onedrive_upload_file` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "onedrive", actionType: "write", action: "file" })`
- CLI: `npx zapier-sdk run-action onedrive write file`

##### Create Folder
Create a new folder.

- Type: write · Key: `folder`
- Requires: folderName
- Optional: copy, folder
- MCP tool: `onedrive_create_folder` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "onedrive", actionType: "write", action: "folder" })`
- CLI: `npx zapier-sdk run-action onedrive write folder`

##### Move or Rename File or Folder
Moves a file or folder to a different location. Optionally rename the item.

- Type: write · Key: `move_or_rename_item`
- Requires: nothing
- Optional: copy, folderList, folder, newName
- MCP tool: `onedrive_move_or_rename_file_or_folder` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "onedrive", actionType: "write", action: "move_or_rename_item" })`
- CLI: `npx zapier-sdk run-action onedrive write move_or_rename_item`

##### Remove Item Permission
Remove a specific user or link’s access to a file or folder. Provide either email address or permission ID.

- Type: write · Key: `remove_item_permission`
- Requires: directory
- Optional: email, permissionId
- MCP tool: `onedrive_remove_item_permission` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "onedrive", actionType: "write", action: "remove_item_permission" })`
- CLI: `npx zapier-sdk run-action onedrive write remove_item_permission`

##### Replace File
Replaces a file with new content.

- Type: write · Key: `replace_file`
- Requires: fileId, file
- Optional: copy, folder, newName
- MCP tool: `onedrive_replace_file` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "onedrive", actionType: "write", action: "replace_file" })`
- CLI: `npx zapier-sdk run-action onedrive write replace_file`

##### Create Sharing Invitation
Send a sharing invitation to specific recipients for a file or folder in a personal drive.

- Type: write · Key: `shareInvitation`
- Requires: recipients, roles
- Optional: directory, message, requireSignIn, sendInvitation, expirationDateTime, retainInheritedPermissions
- MCP tool: `onedrive_create_sharing_invitation` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "onedrive", actionType: "write", action: "shareInvitation" })`
- CLI: `npx zapier-sdk run-action onedrive write shareInvitation`

##### Create Sharing Link
Create a sharing link for a file or folder in a personal drive.

- Type: write · Key: `shareLink`
- Requires: type
- Optional: directory, scope, expirationDateTime, retainInheritedPermissions
- MCP tool: `onedrive_create_sharing_link` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "onedrive", actionType: "write", action: "shareLink" })`
- CLI: `npx zapier-sdk run-action onedrive write shareLink`

##### Create Text File
Create a new text file with custom content.

- Type: write · Key: `textFile`
- Requires: filename, content
- Optional: sharedNote, folder
- MCP tool: `onedrive_create_text_file` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "onedrive", actionType: "write", action: "textFile" })`
- CLI: `npx zapier-sdk run-action onedrive write textFile`

#### Queries (6)

Queries read from OneDrive and return data. They change nothing.

##### Find Drive by ID
Find a specific drive using its unique ID.

- Type: search · Key: `driveById`
- Requires: id
- MCP tool: `onedrive_find_drive_by_id` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "onedrive", actionType: "search", action: "driveById" })`
- CLI: `npx zapier-sdk run-action onedrive search driveById`

##### Find File
Search for files by name, content, or metadata.

- Type: search · Key: `file`
- Requires: query
- Optional: copy
- MCP tool: `onedrive_find_file` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "onedrive", actionType: "search", action: "file" })`
- CLI: `npx zapier-sdk run-action onedrive search file`

##### Find File or Folder by ID
Find a specific file or folder in a personal drive using its unique ID.

- Type: search · Key: `fileById`
- Requires: id
- MCP tool: `onedrive_find_file_or_folder_by_id` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "onedrive", actionType: "search", action: "fileById" })`
- CLI: `npx zapier-sdk run-action onedrive search fileById`

##### Find Items (Via KQL)
Search for items using Keyword Query Language.

- Type: search · Key: `find_items_kql`
- Requires: query
- MCP tool: `onedrive_find_items_via_kql` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "onedrive", actionType: "search", action: "find_items_kql" })`
- CLI: `npx zapier-sdk run-action onedrive search find_items_kql`

##### Find Folder
Search for folders by name and metadata.

- Type: search · Key: `folder`
- Requires: query
- Optional: copy
- MCP tool: `onedrive_find_folder` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "onedrive", actionType: "search", action: "folder" })`
- CLI: `npx zapier-sdk run-action onedrive search folder`

##### Get Item Permissions
List all users and links that have access to a file or folder.

- Type: search · Key: `get_item_permissions`
- Requires: directory
- MCP tool: `onedrive_get_item_permissions` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "onedrive", actionType: "search", action: "get_item_permissions" })`
- CLI: `npx zapier-sdk run-action onedrive search get_item_permissions`

## ShareFile

### Identity
Securely send, store, and share files – plus discover document workflows designed to improve your client experience.

- App slug: sharefile
- Operations published here: 7 (2 events, 5 functions)

### Authentication
Zapier connects to ShareFile via oauth. Your code references a connection, not a raw credential.

- Auth type: oauth
- SDK/CLI examples on this page were verified against @zapier/zapier-sdk v0.130.2 and @zapier/zapier-sdk-cli v0.93.2; behavior may differ on other versions.
- Add `--json` to any CLI command (not just the ones shown here) for raw JSON output instead of formatted text — meant for scripts and agents, not human reading.
- Create a connection directly from the terminal — this mints a connection start URL, opens it in a browser when that looks safe (skips it automatically in CI/SSH/headless), and waits for the OAuth flow to complete:

```bash
npm install -D @zapier/zapier-sdk-cli
npx zapier-sdk login
npx zapier-sdk create-connection sharefile
```

### Capabilities

#### Events (2)

Events fire when something happens in ShareFile. Use them to start a run.

##### New Client
Triggers when a new client is created.

- Type: read · Key: `new_client`
- Requires: nothing
- MCP tool: `sharefile_new_client` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "sharefile", actionType: "read", action: "new_client" })`
- CLI: `npx zapier-sdk run-action sharefile read new_client`

##### New File
Triggers when a new file is added to the chosen folder.

- Type: read · Key: `new_file`
- Requires: selectDir
- MCP tool: `sharefile_new_file` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "sharefile", actionType: "read", action: "new_file" })`
- CLI: `npx zapier-sdk run-action sharefile read new_file`

#### Functions (5)

Functions change something in ShareFile.

##### Add Note
Adds a note in the chosen folder.

- Type: write · Key: `add_note`
- Requires: selectDir, Description, Name
- MCP tool: `sharefile_add_note` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "sharefile", actionType: "write", action: "add_note" })`
- CLI: `npx zapier-sdk run-action sharefile write add_note`

##### Add URL
Adds a URL in the chosen folder.

- Type: write · Key: `add_url`
- Requires: selectDir, name, url
- Optional: description
- MCP tool: `sharefile_add_url` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "sharefile", actionType: "write", action: "add_url" })`
- CLI: `npx zapier-sdk run-action sharefile write add_url`

##### Create Folder
Creates a folder in the chosen folder. If home is chosen will create a folder in the home directory.

- Type: write · Key: `create_folder`
- Requires: selectDir, Name
- Optional: Description
- MCP tool: `sharefile_create_folder` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "sharefile", actionType: "write", action: "create_folder" })`
- CLI: `npx zapier-sdk run-action sharefile write create_folder`

##### Create Client User
Creates a ShareFile user with the given information.

- Type: write · Key: `create_user`
- Requires: Email, FirstName, LastName, Password, CanResetPassword, CanViewMySettings
- Optional: Company
- MCP tool: `sharefile_create_client_user` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "sharefile", actionType: "write", action: "create_user" })`
- CLI: `npx zapier-sdk run-action sharefile write create_user`

##### Upload File
Allows user to upload a file to the selected folder.

- Type: write · Key: `upload_file`
- Requires: selectDir, Filedata
- MCP tool: `sharefile_upload_file` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "sharefile", actionType: "write", action: "upload_file" })`
- CLI: `npx zapier-sdk run-action sharefile write upload_file`

## Frequently asked questions about automating with OneDrive and ShareFile

### Can I automatically upload files from OneDrive to ShareFile?

Yes, you can set up a trigger in OneDrive to automatically upload new files to ShareFile by creating a workflow that triggers when a new file is added to your OneDrive folder.

### Is it possible to sync folders between OneDrive and ShareFile?

Currently, our integration allows you to automate specific actions like copying files based on triggers, but continuous real-time syncing of entire folders is not supported.

### What triggers are available for the OneDrive and ShareFile integration?

Triggers available include actions like when a new file is added or updated in OneDrive. These allow subsequent operations such as uploading or organizing the file within ShareFile.

### Can I transfer only specific types of files from OneDrive to ShareFile?

Yes, you can specify conditions based on file types as part of the trigger setup. This ensures only designated file types activate the workflow between OneDrive and ShareFile.

### Are there any size limitations when transferring files from OneDrive to ShareFile?

While we strive for seamless transfers, both OneDrive and ShareFile have individual file size limits that may affect larger files. It's important to consider these restrictions during setup.

### How do I ensure data security during transfers between OneDrive and ShareFile?

Data security is a top priority in our integration process. While connecting your accounts, ensure you follow best practices such as using secure authentication methods provided by both platforms.

### Is there support for moving files from a shared folder in OneDrive to ShareFile?

Yes, our integration supports handling files within shared folders. You can create triggers that respond specifically when changes occur in shared directories on OneDrive.

### My AI agent already connects to my apps. Why add Zapier?

Your AI agent’s built-in or native connectors cover a limited set of popular apps. Zapier reaches 10,000+ apps and 90,000+ triggers and actions. Zapier also adds what your AI agent can’t: one place to manage logins and credentials, so you never paste an API key; automations that keep running after the chat closes, with fixes you can review when a run hits a snag; and the freedom to switch agent interfaces without starting over.

### Can’t my AI agent already run tasks on a schedule?

Most popular AI agents can run scheduled tasks. And for simple recurring jobs, that might be all you need. Automations that run on Zapier can run on a schedule too, but they can also start the moment something happens in your apps—like when a new lead/ticket comes in or you get an email reply. Zapier also uses AI only in the steps that need judgment, so routine steps like posting to Slack or updating Salesforce don’t burn model tokens.

### Why not have my AI agent write me a script?

You can, and the first version will probably work. The trouble comes later: a script needs somewhere to run, a way to hear about events, and someone to keep it going. If an API changes or a login expires, your script can quietly stop until you notice. It also holds your keys, often in a repo, where a leak can expose your accounts. With Zapier, your agent builds the automation, and you publish it. Zapier hosts it, handles your logins and credentials, and records every run. If a run fails, Zapier diagnoses what went wrong and prepares a fix you can review. Or you can decide which fixes Zapier can apply for you.

## Links
- OneDrive integrations: zapier.com/apps/onedrive/integrations.md
- ShareFile integrations: zapier.com/apps/sharefile/integrations.md
- Full page: zapier.com/apps/onedrive/integrations/sharefile
- MCP quickstart (non-OAuth / connection-token clients): docs.zapier.com/mcp/get-started/quickstart.md
- SDK: npmjs.com/package/@zapier/zapier-sdk