> the location of the temporary folder the file is downloaded, but OWA is downloading it to the %temp% folder in the same fashion as the browser does for any other website
Which Browser are you using? Do you force the download path as %temp%
folder for all users?
I do the test on OWA via Edge, and I set the location for downloads as C:\Users\<User Account>\AppData\Local\Temp
, files downloaded from OWA are opened in Protected View like the following image.
From the view of Office apps, you may try to add the location as "Unsafe Location" by group policy as a workaround.
- Please install Administrative Template files first. Here is the link for Microsoft 365 Apps for enterprise, Office 2019, and Office 2016.
- Go to Group Policy Editor > User Configuration > Administrative Templates > Microsoft Office 2016 > Security Settings > Trust Center > Protected View > Unsafe Location.
- I test the path of "%temp%" and "C:\Users\%username%\AppData\Local\temp", these path do not work. So if you need to download files from OWA to %temp% folder, I suggest you try the path
"C:\Users\%username%\AppData\Local"
, and tick the box of"Allow sub folders"
, this path works. I test some local created files in %temp% folder, and they could be opened in Protect View.
(Please note, I do not redirect the %temp% folder on my test environment.)
Hope the information could be helpful.
If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.