office-js ms-word:ofe|u|https://EXTERNAL-URI-FROM-SERVER.docx results in issue "You can only view this document. You do not have permissions to edit it."

Kasper Svane 5 Reputation points
2023-02-24T08:57:36.66+00:00

Versions:

The current version of Office 365: is Version 2301: February 14 Version 2301 (Build 16026.20200).

The current version of Office-js is "@microsoft/office-js": "1.1.78".

To open Word documents in the Office 365 version mentioned above, you can use the command ms-word:ofe|u|https://EXTERNAL-URI-FROM-SERVER.docx with the syntax <scheme-name>:<command-name>|<command-argument-descriptor>|<command-argument>, as described in the Microsoft Office Uri Schemes documentation (https://learn.microsoft.com/en-us/office/client-developer/office-uri-schemes).

When opening Word documents in protected view (which is enabled for sources from the internet in my case), an error message appears: "You can only view this document. You do not have permissions to edit it."

However, no limiting permissions are assigned to the test documents.

This issue did not occur in the previous version of Office 365 (Version 2301: January 26, Build 16026.20146).

Have other users experienced similar issues? Is there an open ticket with Microsoft regarding this issue?

Microsoft 365 and Office | Development | Other
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.