Skip to main content
Microsoft OneDrive logo

Overview

Add Microsoft OneDrive to any ModuleX agent or workflow. Access and manage files in Microsoft OneDrive through the Microsoft Graph API (https://graph.microsoft.com/v1.0) — search, list, upload, download files, create folders, and produce sharing links using a user’s delegated permissions.
Categories: Cloud Infrastructure · File Storage · Productivity · Auth: OAuth2 · Actions: 11

Authentication

OAuth2 Authentication

Connect using Microsoft (Azure Entra) OAuth
1

Step 1

Go to https://entra.microsoft.com -> App registrations -> New registration
2

Step 2

Set supported account types according to your needs (commonly ‘Accounts in any organizational directory and personal Microsoft accounts’)
4

Step 4

Under API permissions, add Microsoft Graph delegated permissions: Files.ReadWrite.All, Sites.ReadWrite.All, User.Read, offline_access
5

Step 5

Create a client secret under Certificates & secrets
6

Step 6

Copy Application (client) ID and the client secret value

Required Credentials

OAuth Configuration

  • Authorization URL: https://login.microsoftonline.com/common/oauth2/v2.0/authorize
  • Token URL: https://login.microsoftonline.com/common/oauth2/v2.0/token
  • Scopes: Files.ReadWrite.All, Sites.ReadWrite.All, User.Read, offline_access

Available Actions

Parameters

string
required
The name of the new folder to be created (e.g. ‘New Folder’).
string
The ID of the folder which the new folder should be created within. Omit to create the folder at the drive root.
string
Reference of the shared folder which the new folder should be created in (e.g. ‘/drives/{driveId}/items/{folderId}/children’). Mutually exclusive with parent_folder_id.

Response

Parameters

string
The ID of the file to download. Provide either file_id or file_path.
string
The path to the file from the root folder (e.g. ‘Documents/My Subfolder/File 1.docx’). Provide either file_id or file_path.
string
required
The file name to save the downloaded content as, under /tmp. Include the file extension.
string
Optional format to convert the file to. One of: pdf, html.

Response

Parameters

string
required
The name of the file or folder to search for.
boolean
Set to true to return only files in the response. Defaults to false. (Default: false)

Response

Parameters

string
required
The ID of the Excel (.xlsx) file in OneDrive.
string
required
Name of the table as set in the Table Design tab of Excel.
boolean
By default, the headers are included as the first row. Set true to remove them. (Default: false)
integer
Number of rows to return. Leave at 0 to return all rows. (Default: 0)

Response

Parameters

string
required
The ID of the DriveItem to retrieve.

Response

Parameters

string
required
The ID of the folder whose children should be listed.
boolean
Set true to return only files (omit subfolders). (Default: false)

Response

Response

Response

Parameters

string
required
The query text used to search for items. Values may be matched across several fields including filename, metadata, and file content.
boolean
Set true to filter out folders from the results. (Default: false)

Response

Parameters

string
required
The ID of the folder where you want to upload the file.
string
required
Publicly accessible URL of the file to upload. The integration downloads the content and re-uploads it to OneDrive.
string
required
Name of the new uploaded file (including extension).

Response

Limits & Quotas

  • Microsoft Graph applies per-app and per-user throttling — bursty workloads may receive 429 responses with Retry-After hints. See https://learn.microsoft.com/en-us/graph/throttling for current limits.
  • download_file saves the file under the backend’s /tmp directory and returns the content base64-encoded. For very large files, prefer routing through the workflow-engine layer.
  • upload_file accepts only a publicly-accessible source URL. Uploading from a local /tmp path is not supported.
  • Dynamic dropdowns for folder, file, drive, and table selection are not exposed — supply IDs and names directly. Use list_my_drives, list_files_in_folder, search_files, or find_file_by_name to discover IDs.
  • Webhook-style notifications (new file / new folder created) are not exposed in this integration; route those needs to the workflow-engine layer.
  • Error model: non-2xx responses, timeouts, and unexpected exceptions are caught and returned as success=False + error rather than raising. Agents should branch on the error string to decide whether to retry or surface to the user.

Dropbox

Amazon Web Services

Azure Storage