Skip to content

Connect Microsoft Teams to OneDrive

Teams is where work gets discussed and OneDrive is where the files live. Connecting them saves files and notes to the right folder and tells the team in Teams where to find them, so nothing gets lost in a chat thread.

Build your own

Build any Microsoft Teams and OneDrive automation you can describe

The ideas above are ready-made starting points, not a fixed list. Describe what should happen between Microsoft Teams and OneDrive in your own words, with your conditions, other apps or an AI step, and your assistant writes it, tests it and runs it on ClickRuntime.
  • Your own rules

    Conditions, thresholds, filters and exceptions, written the way you'd explain them to a colleague.

  • Any number of apps

    One automation can read from one app and update several others. Over 248 apps are ready, and anything with an API works too.

  • AI where it helps

    Summaries, classification, extraction and drafts use ClickRuntime's built-in AI, with no extra key.

  • On a schedule or on each event

    Runs as often as every 5 minutes, or the moment an app sends an event, and keeps track of what it already handled.

For example, ask your assistant

Post in Teams only when a file in the shared folder is larger than 50 MB or is an executable, so we can review it.

Every Friday, post in Teams a list of OneDrive files in our shared folder not modified in 6 months, so owners can archive them.

Use cases

Why people connect Microsoft Teams and OneDrive

How the two apps work together

  • OneDrive changes can reach a trigger link through Microsoft Graph change notifications, or the script checks the folder every few minutes.
  • Posts go to a Teams channel or chat through Microsoft Graph or an incoming webhook.
  • Files shared in Teams channels can be copied to OneDrive by checking the channel on a schedule.
  • Teams share new files without forwarding

    When files are added to a OneDrive folder, a post in the Teams channel links to them. Everyone sees new documents in one place.

  • Project managers collect deliverables

    Files posted in a Teams channel are copied to a structured OneDrive folder by project and date. The archive is ready at hand-off.

  • Ops teams post daily reports

    A report file created in OneDrive each morning is announced in Teams with a short AI summary. People read the summary before opening the file.

  • Managers watch shared folders

    A weekly Teams post lists files added, changed or left untouched in shared folders. Clean-up is easier.

More apps

Microsoft Teams, OneDrive and other apps in one automation

An automation isn't limited to two apps. Add the next step in another app and it runs as part of the same automation.

OneDrive file alerts in Teams and email

When a file is added to my OneDrive Contracts folder, post the link in our Teams Legal channel and email the contract owner from Outlook.

Log Teams-shared files in Excel

Each time a file is shared in our Teams Projects channel, save it to OneDrive and add a row to my Files Excel table with the poster and date.

Move approved files to SharePoint

When someone replies "approved" to a file post in Teams, move that file from my OneDrive Drafts folder to the SharePoint Final library.

Setup

Connect Microsoft Teams and OneDrive once

Every idea on this page uses the same two connections, so you set them up once. If one is missing, your assistant tells you and links to the right place.

Microsoft Teams

Chat / Collaboration

  1. Register an app in your Microsoft tenant and add the delegated permissions ChannelMessage.Send, Chat.ReadWrite, Team.ReadBasic.All, Channel.ReadBasic.All and offline_access.
  2. Create a client secret for the app and copy its client ID and secret.
  3. In the ClickRuntime dashboard, open Connections, choose Microsoft Teams and enter your app's client ID and secret.
  4. If you only need to post to one channel, you can instead open that channel in Teams, choose Workflows → 'Post to a channel when a webhook request is received', and save the URL as a secret on Connections & secrets.

OneDrive

File storage

  1. At entra.microsoft.com, open App registrations and create a registration with the Web redirect URI https://clickruntime.com/oauth/callback, or reuse the one you made for Outlook.
  2. Under Certificates & secrets, create a client secret and copy its value.
  3. Under API permissions, add Microsoft Graph delegated permissions Files.ReadWrite.All and offline_access, and grant admin consent if your organisation asks for it.
  4. In the ClickRuntime dashboard, open Connections, choose OneDrive and enter the Tenant ID, Client ID and client secret.

FAQ

Questions about connecting Microsoft Teams and OneDrive

Which Teams channel does it post to?
The channel you choose when you set it up. You can use a different channel for each automation.
Who can open the shared files?
People in your organisation by default. You can limit links to specific people instead.
Does it post as me or as a bot?
It posts as the Microsoft account you connect, so messages show your name.
Can it read private chats?
Only chats your account is part of and only if you allow chat access when you connect.
Does it need admin approval?
Posting to Teams and reading OneDrive through Microsoft Graph may need admin consent in some organisations.
Can it post to a private channel?
Yes, if the connected account is a member of that private channel.
Does it copy files or just link them?
Either. The script can post a link to the OneDrive file or copy the file into another location.

Tell your assistant what Microsoft Teams and OneDrive should do together

Free plan. No credit card.