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.
Authentication
OAuth2 Authentication
Connect using Microsoft (Azure Entra) OAuthStep 1
Step 2
Step 3
Step 4
Required Credentials
| Field | Description | Required | Format |
|---|---|---|---|
| Client ID | Microsoft (Azure Entra) App Client ID | Yes | 00000000-0000-0000-0000-000000000000 |
| Client Secret | Microsoft (Azure Entra) App Client Secret | Yes | - |
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
create_folder — Create a new folder in a drive. See https://learn.microsoft.com/en-us/onedrive/developer/rest-api/api/driveitem_post_children
create_folder — Create a new folder in a drive. See https://learn.microsoft.com/en-us/onedrive/developer/rest-api/api/driveitem_post_children
Parameters
Response
create_link — Create a sharing link for a DriveItem. See https://docs.microsoft.com/en-us/graph/api/driveitem-createlink
create_link — Create a sharing link for a DriveItem. See https://docs.microsoft.com/en-us/graph/api/driveitem-createlink
download_file — Download a file stored in OneDrive. Returns the file content as base64-encoded data plus the saved /tmp path. See https://learn.microsoft.com/en-us/onedrive/developer/rest-api/api/driveitem_get_content
download_file — Download a file stored in OneDrive. Returns the file content as base64-encoded data plus the saved /tmp path. See https://learn.microsoft.com/en-us/onedrive/developer/rest-api/api/driveitem_get_content
Parameters
Response
find_file_by_name — Search for a file or folder by name. See https://learn.microsoft.com/en-us/onedrive/developer/rest-api/api/driveitem_search
find_file_by_name — Search for a file or folder by name. See https://learn.microsoft.com/en-us/onedrive/developer/rest-api/api/driveitem_search
get_excel_table — Retrieve a table from an Excel spreadsheet stored in OneDrive. The table must exist within the Excel spreadsheet. See https://learn.microsoft.com/en-us/graph/api/table-range
get_excel_table — Retrieve a table from an Excel spreadsheet stored in OneDrive. The table must exist within the Excel spreadsheet. See https://learn.microsoft.com/en-us/graph/api/table-range
Parameters
false)0)Response
get_file_by_id — Retrieve a file by ID. See https://learn.microsoft.com/en-us/onedrive/developer/rest-api/api/driveitem_get
get_file_by_id — Retrieve a file by ID. See https://learn.microsoft.com/en-us/onedrive/developer/rest-api/api/driveitem_get
list_files_in_folder — Retrieve a list of the files and/or folders directly within a folder. See https://learn.microsoft.com/en-us/onedrive/developer/rest-api/api/driveitem_list_children
list_files_in_folder — Retrieve a list of the files and/or folders directly within a folder. See https://learn.microsoft.com/en-us/onedrive/developer/rest-api/api/driveitem_list_children
list_my_drives — Get the signed-in user's drives. Returns a list of all the drives the user has access to, including the personal OneDrive. See https://learn.microsoft.com/en-us/graph/api/drive-list
list_my_drives — Get the signed-in user's drives. Returns a list of all the drives the user has access to, including the personal OneDrive. See https://learn.microsoft.com/en-us/graph/api/drive-list
Response
list_shared_folder_reference_options — Retrieve available shared folder references. Useful as input to the shared_folder_reference parameter of create_folder.
list_shared_folder_reference_options — Retrieve available shared folder references. Useful as input to the shared_folder_reference parameter of create_folder.
search_files — Search for files and folders in Microsoft OneDrive. See https://learn.microsoft.com/en-us/graph/api/driveitem-search
search_files — Search for files and folders in Microsoft OneDrive. See https://learn.microsoft.com/en-us/graph/api/driveitem-search
upload_file — Upload a file to OneDrive by providing a publicly-accessible source URL. The file is streamed from the URL into OneDrive under the given folder. See https://learn.microsoft.com/en-us/onedrive/developer/rest-api/api/driveitem_put_content
upload_file — Upload a file to OneDrive by providing a publicly-accessible source URL. The file is streamed from the URL into OneDrive under the given folder. See https://learn.microsoft.com/en-us/onedrive/developer/rest-api/api/driveitem_put_content
Parameters
Response
Limits & Quotas
- Microsoft Graph applies per-app and per-user throttling — bursty workloads
may receive
429responses withRetry-Afterhints. See https://learn.microsoft.com/en-us/graph/throttling for current limits. download_filesaves the file under the backend’s/tmpdirectory and returns the content base64-encoded. For very large files, prefer routing through the workflow-engine layer.upload_fileaccepts only a publicly-accessible source URL. Uploading from a local/tmppath 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, orfind_file_by_nameto 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+errorrather than raising. Agents should branch on the error string to decide whether to retry or surface to the user.