Swarmz
IntegrationsMicrosoft 365

Microsoft OneDrive

List files and folders, download files, upload files, and create or delete folders

Connect Microsoft OneDrive when a project needs bounded file access for a shared account or for each published app user.

Available operations

OperationWhat it doesPermissionLimit per minute
list_itemsLists up to 50 files and foldersRead files30
get_itemReads file or folder metadataRead files30
download_fileDownloads one file up to 750 KiBRead files10
upload_fileUploads one file up to 750 KiB to the drive rootManage files5
create_folderCreates one folderManage files10
delete_itemDeletes one file or folderManage files10

Connect Microsoft OneDrive

An administrator first configures Microsoft OAuth application and enables Microsoft OneDrive under Admin > Settings > Integrations.

Tell the AI whether one workspace account owns the files or every published app user connects their own drive. Examples:

  • “Upload generated receipts to our shared OneDrive.”
  • “Let each signed-in user list and download files from their own OneDrive.”

Choose Connect new, select read or manage access, authorize Microsoft, then select Continue. For published app users, enter the final HTTPS app origin before authorizing.

Verify Microsoft OneDrive

  1. Create a folder named Swarmz connector test.
  2. Upload a small text file with a unique name.
  3. List the drive root and confirm the file.
  4. Download the file and compare its contents with the upload.
  5. Delete the file and test folder.

Uploads target the drive root. Moving an upload into another folder is not an available operation. Downloads and uploads larger than 750 KiB fail before provider data is returned or written. For larger files, use a direct Microsoft upload-session implementation in the generated app instead of this connector.

Disconnecting leaves OneDrive files unchanged. Keep gateway calls in authenticated server code and authorize every file result for the signed-in app user.

On this page