As an admin, you can set up both private and public attachment handling in Outlook on the web (formerly known as Outlook Web App) depending on how you configure your Outlook on the web mailbox policies. The settings for private (internal) and public (external) networks define how users can open, view, send, or receive attachments depending on whether a user is signed in to Outlook on the web on a computer that is part of a private or of a public network.
How can I control public attachment handling?
Although there are both private (internal network) and public (external network) settings to control attachments using Outlook on the web mailbox policies, admins require more consistent and reliable attachment handling when a user signs in to Outlook on the web from a computer on a public network such as at a coffee shop or library. To set up the ability to enforce attachment handling from external networks for an entire organization in Exchange Online, first use the Set-OrganizationConfig cmdlet, set the PublicComputersDetectionEnabled parameter to $true, configure the correct Outlook on the web mailbox policy either by using the Exchange admin center (EAC) or the Set-OwaMailboxPolicy cmdlet and create claim rules in AD FS. Enabling this setting on the Set-OrganizationConfig cmdlet and creating the claim rules enable Exchange Online to tell if a user is signing in to Outlook on the web from a private and public network or computer.
The Outlook on the web mailbox policy parameters in the following table should be set to $true to enable an admin to control attachment handling for public computers and networks.
Parameter*
Description
DirectFileAccessOnPublicComputersEnabled
Specifies left-click and other options available for attachments when the user has signed in to Outlook on the web from a computer outside of a private or corporate network. If this parameter is set to $true, Open and other options are available. If it's set to $false, the Open option is disabled.
ForceWacViewingFirstOnPublicComputers
Specifies whether a user who signed in to Outlook on the web from a computer outside of a private or corporate network can open an Office file directly without first viewing it as a webpage.
WacViewingOnPublicComputersEnabled
Specifies whether a user who has signed in to Outlook on the web from a computer outside of the corporate network can view supported Office files using Outlook on the web.
What do you need to know before you begin?
Procedures in this topic require specific permissions. See each procedure for information related to each procedure's permissions.
Setting this parameter to $true won't affect the settings for the following parameters:
ForceWacViewingFirstOnPublicComputers
WSSAccessOnPublicComputersEnabled
UNCAccessOnPublicComputersEnabled
Task 2 - Add and create claim rules in AD FS 2.0
You must create a custom claim rule because an AD FS server relies on the presence of the x-ms-proxy claim to detect whether user is coming from an internal or external network. When an AD FS proxy is deployed for external or public access, and if the user is coming from outside a private network, there's a x-ms-proxy claim sent from AD FS proxy to an AD FS server. For more information about claim rules in AD FS, see Create a Rule to Send Claims Using a Custom Rule.
On the Start Screen, type AD FS Management, and then press Enter.
In AD FS console tree, go to AD FS\Trust Relationships > Relying Party Trusts and select O365 Identity Platform.
An attachment can be a file that's created in any program, for example, a Word document, an Excel spreadsheet, a .wav file, or a bitmap file. Users can attach or include one or more files on any item that they create in their mailbox, for example, an email message, calendar item, or contact. Outlook on the web allows you to send and receive many common files types continuously.
Some attachments might be removed or blocked by an antivirus software used by your organization, by the organization of the recipients of your email, or you might be required to save them on your computer before you can open them. By default, Outlook on the web allows you to open attached Word, Excel, PowerPoint, text files and many media files directly. The files you can open from Outlook on the web vary depending on your account settings. The following list describes the default file name extensions that you can open in Outlook on the web.
This module examines how to manage Safe Attachments in your Microsoft 365 tenant by creating and configuring policies and using transport rules to disable a policy from taking effect in certain scenarios. MS-102