question

EricShen-4295 avatar image
0 Votes"
EricShen-4295 asked YiLu-MSFT commented

How do I allow guest users to be able to open Sharepoint documents in their browser with web=1 in the URL?

I'm working on a client's SharePoint online site and for some reason, guest users (people who access using their their own organizational Microsoft account) are not able to open a PDF document when the URL ends with web=1, For example, https://<tenant site>/sites/Client/Docs/MyDocs.pdf?web=1 doesn't work but https://<tenant site>/sites/Client/Docs/MyDocs.pdf does). Word and Excel files work.

I don't see the problem on a different SharePoint online site so there must be some sort of configuration setting (either through Office 365 admin or SharePoint admin) that is different but I am not an admin on the problematic SharePoint site so I cannot compare the settings of both sites.

Does anybody know what needs to be enabled to allow guests to be able to open a file in the browser when the URL ends with web=1?

Thanks in advance

office-sharepoint-online
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I am currently looking into this issue and will give you an update as soon as possible.

Thank you for your understanding and support.

0 Votes 0 ·

Hi @EricShen-4295

Per my tests, I have not meeted the similar case. Could you provide more information of the error(when you fail to open the PDF,what is the total error)?

0 Votes 0 ·

1 Answer

EricShen-4295 avatar image
0 Votes"
EricShen-4295 answered YiLu-MSFT commented

Nothing shows up on the browser except a trail of five small blue dots goes across the top of the screen.
This is the HTML from the debugger...
113309-image.png


In the debugger, these two requests get a response of Failed to load response data

113368-image.png

For non-guest users, there is a response from these two requests.

Here are the errors being generated in the console window...
113387-image.png



image.png (89.5 KiB)
image.png (6.1 KiB)
image.png (170.8 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @EricShen-4295

There are currently no relevant settings that need to be enabled.

You could have a try to clear browser cache or change browser.

0 Votes 0 ·