Connect Microsoft Teams to OneDrive
Ideas
What you can do with Microsoft Teams and OneDrive
Save email attachments to OneDrive and share them in Teams
Attachments from your inbox are saved to OneDrive and your Teams channel gets a message with a link to each one.
See how it worksSave notes and business cards from a Teams chat to OneDrive
Post a note or contact details in a Teams chat and a tidy version is saved to OneDrive, with a reply confirming it.
See how it worksSave a monthly report to OneDrive and share it in Teams
At the start of each month a report with last month's figures and a short summary is saved to OneDrive and posted to your Teams channel.
See how it works Your own logicAny other automation you can describe in words
Your own rules, schedule and AI steps with Microsoft Teams and OneDrive, plus any other app. Describe it and your assistant builds it.
See how to build your ownBuild your own
Build any Microsoft Teams and OneDrive automation you can describe
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
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
Microsoft Teams
Chat / Collaboration
- Register an app in your Microsoft tenant and add the delegated permissions
ChannelMessage.Send,Chat.ReadWrite,Team.ReadBasic.All,Channel.ReadBasic.Allandoffline_access. - Create a client secret for the app and copy its client ID and secret.
- In the ClickRuntime dashboard, open Connections, choose Microsoft Teams and enter your app's client ID and secret.
- 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
- 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. - Under Certificates & secrets, create a client secret and copy its value.
- Under API permissions, add Microsoft Graph delegated permissions
Files.ReadWrite.Allandoffline_access, and grant admin consent if your organisation asks for it. - 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?
Who can open the shared files?
Does it post as me or as a bot?
Can it read private chats?
Does it need admin approval?
Can it post to a private channel?
Does it copy files or just link them?
Related pages
Keep exploring
Tell your assistant what Microsoft Teams and OneDrive should do together
Free plan. No credit card.