Κοινή χρήση μέσω


Configure document collaboration with Microsoft OneDrive and Microsoft Exchange Server 2016

Summary: How to allow your on-premises Exchange 2016 users to take advantage of using document collaboration with Microsoft OneDrive and SharePoint Online while in a hybrid configuration.

A file attachment option named document collaboration is available in Microsoft 365 and Office 365. This option allows on-premises Outlook on the web clients (formerly known as Outlook Web App or OWA) to integrate attachments stored on OneDrive directly in email messages.

Traditionally, a user sends a file to others by attaching it to an email message. This method has the following issues:

  • Changes by each individual recipient are unique to their copy of the attachment.
  • The attached files take up storage space in each user's mailbox.

With document collaboration, users can insert a link to a file that's stored in a OneDrive account. Recipients can modify the file at the same source location with no extra storage required.

Before the Exchange 2016 environment is configured for document collaboration, the file attachment dialogs in Outlook on the web looks like this:

Traditional file attachment dialog in Outlook on the web in Exchange 2016.

After the environment is configured as described in this article, the file attachment dialog in Outlook on the web looks like this:

File attachment dialog in Outlook on the web in Exchange 2016 with modern attachments enabled.

Users in your organization with on-premises mailboxes and OneDrive for work or school accounts in Microsoft 365 or Office 365 are eligible to use the modern attachment method. The location of the recipients (online versus on-premises) doesn't matter.

For more information about hybrid deployments, see Exchange Server Hybrid Deployments.

What do you need to know before you begin?

Tip

Having problems? Ask for help in the Exchange forums. Visit the forums at Exchange Server, Exchange Online, or Exchange Online Protection.

Configure Exchange 2016 to enable document collaboration in a hybrid environment

Verify that the following prerequisite steps are complete, and then use the procedure that follows to enable document collaboration.

Prerequisites:

  • Configure your Exchange hybrid environment using the Hybrid Configuration wizard (HCW).

  • Exchange 2016 must be installed in your on-premises organization. Exchange 2016 can coexist with earlier versions of Exchange, but document collaboration only works for mailboxes on an Exchange 2016 server.

  • The authenticating server must be installed with all users synchronized. You can use the Get-AuthServer cmdlet to find your authenticating server. We recommend using the HCW from an Exchange 2016 server to make any necessary OAuth configurations.

    Important

    OAuth between Exchange 2016 and the cloud must be configured. For more information, see Configure OAuth Authentication Between Exchange and Exchange Online Organizations.

  • Users need to be licensed for either SharePoint Online or OneDrive for work or school. You can verify a user's license by selecting the user in the Microsoft 365 admin center and selecting the Edit button. For more information, see OneDrive.

Do the following steps:

  1. Configure the default Outlook on the web mailbox policy with the OneDrive host URL.

    Tip

    Use the SharePoint admin center in Microsoft 365 or Office 365 to retrieve the OneDrive host URL. For example, https://contoso-my.sharepoint.com is a My Site Host URL for Contoso.

    Although the built-in Outlook on the web mailbox policy in Exchange 2016 is named "Default," it isn't automatically applied to mailboxes unless do one of the upcoming procedures.

    • Make the policy the default policy by running the following command in the Exchange Management Shell: Set-OWAMailboxPolicy -Identity Default -IsDefault $true. To confirm the default policy, rune the following command: ``.
    • Assign the Outlook web app mailbox policy directly to mailboxes. For more information, see Apply or remove an Outlook Web App mailbox policy on a mailbox.

    This example uses the Exchange Management Shell to configure the internal and external MySite URLs in the Default Outlook on the web mailbox policy:

    Set-OwaMailboxPolicy Default -InternalSPMySiteHostURL https://Contoso-my.sharepoint.com -ExternalSPMySiteHostURL https://Contoso-my.sharepoint.com
    
  2. Apply the default Outlook on the web mailbox policy to users by doing either of the following steps in the Exchange Management Shell:

    • Make the policy named Default the default policy: Run the following command:

      Set-OwaMailboxPolicy -Identity Default -IsDefault
      

      To verify that the policy is the default policy, run the following command:

      Get-OWAMailboxPolicy | Format-Table Name,IsDefault
      
    • Assign the policy named Default to users: To assign the policy to an individual mailbox, replace <MailboxIdentity> with the name, alias, email address or UPN of the user, and then run the following command:

      Set-CASMailbox -Identity <MailboxIdentity> -OwaMailboxPolicy Default
      
  3. (Optional) On each Exchange 2016 server, restart the web app pool named OWAApplicationPool by running the following command. This step allows the configuration to work immediately. If you don't run this command, it takes a few minutes for Exchange to apply the updated mailbox policy. In the Exchange Management Shell run:

    Restart-WebAppPool MSExchangeOWAAppPool
    

Outlook on the web users are now offered a choice for the type of attachments to include in email messages: traditional or modern.

Attachment options dialog, Share with OneDrive or Send as attachment.