OneDrive for Slack

If you use Microsoft OneDrive to host and manage your files in the cloud, you can install the OneDrive app for Slack to search, share and preview for your files – right from your workspace. 

OneDrive app requirements

  • Only a single OneDrive account can be authorised per Slack workspace member
  • Office 365 accounts (SharePoint Online, OneDrive for Business, Office 365 Enterprise) and Non-Enterprise Microsoft accounts (OneDrive and OneDrive Basic) can use the OneDrive Slack app
  • On-premises SharePoint installations or Office 365 plans hosted on a Microsoft national cloud deployment (including Office 365 US Government, Office 365 Germany and Office 365 operated by 21Vianet in China) are not currently supported

Note: Files added from the OneDrive app can be searched for in Slack, but they won't be stored in your workspace. They'll continue to be stored in OneDrive.


Connect OneDrive to Slack

To connect OneDrive and Slack, install the app to your workspace. Once the app is installed, each member will need to connect their OneDrive account to Slack. 

Install the app from the Slack App Directory

  1. Visit the OneDrive page in the App Directory.
  2. Click Add to Slack
  3. Click Allow to grant the OneDrive app access to your workspace.
  4. Sign in to OneDrive and select Yes to authenticate with Slack.

Connect your account

If the OneDrive app has already been installed to your workspace, you'll just need to connect your account in order to use it. 

  1. From your desktop, click  Apps in the left sidebar. 
  2. Search for and select Microsoft OneDrive to open a direct message with the app. 
  3. Click Connect account
  4. Select Allow to grant OneDrive access to your Slack account. 
  5. Sign in to OneDrive when prompted. 

Share files from OneDrive

  1. From a channel or direct message, click the  paper clip icon to the right of the message field.
  2. Sign in to your OneDrive account. 
  3. Below Add a file from, select OneDrive
  4. Choose which file(s) to share, then click Open

After you send your message, the file(s) will expand to show a preview, file type and link back to OneDrive. Please note that it's not currently possible to share folders or OneNote files to Slack. 

Tip: Once you’ve connected your account, you can also share OneDrive files by pasting links in any channel or DM.

Manage access to files

If all members that you've shared a file with cannot view or edit it, the OneDrive app will send you a message prompting you to manage access when you share the file. To update access in the future, we recommend re-sharing the file in Slack and making adjustments.  

  1. Next to a OneDrive file that you have shared, open the drop-down menu. 
  2. Choose to grant view access to Anyone in the conversationAnyone in your organisation or Anyone with the link
  3. You can also grant edit access to Anyone in your organisation or Anyone in the conversation

Screenshot of OneDrive file shared in Slack

Note: File access management options will only be visible for files shared in channels with 100 or fewer members.

Manage file previews

When you share a OneDrive file in Slack, you can choose if you want a preview to display:

  • Add a preview
    A preview will be displayed when your share the file
  • Don't add a preview
    A preview will not be displayed when you share the file, but other file information will be visible
  • Don't add a preview or ask me again
    Previews will never be displayed when you share files, and you won't see preview prompts  

Tip: Use the /onedrive slash command to reset your file management preferences or disconnect your account.