Enhanced Document Control/Protection APIs in Office.js for Word Add-ins
We are developing a Word add-in using Office.js and JavaScript APIs. Our use case requires advanced document control features, which are currently challenging to achieve within the existing Office.js framework.
Here’s our feature request:
Proposed Functionality:
- Based on the defined custom properties on a document via add-ins, provide APIs/commands/hooks to disable or override Word's default 'Save,' 'Save As,' and 'Share' options to prevent users from saving or sharing the document locally.
- Introduce additional APIs for implementing custom protection mechanisms within the add-in.
Current Challenges:
- Achieving this functionality appears possible through VSTO add-ins, but they are not compatible with Office.js solutions.
- VSTO/.NET commands require complex workarounds, such as creating a separate .NET server to communicate with Office.js, which adds development complexity and affects efficiency.
Request:
We would greatly appreciate the introduction of built-in, efficient APIs in Office.js to handle document protection and control scenarios seamlessly without relying on external frameworks or services.
This would significantly enhance the capability of modern web-based add-ins and improve the development experience for Word add-in developers.
1 Comment
- Max Philipp BlickenstorferCopper Contributor
Hi, it's quite a bit late - however, I wondered why you start protecting at the end of the involved components following the route from storage to Client-Application?
Eg. Word uses local persistence, mean a client download of the data from its backend eg. SharePoint Online. Why you should do it for all kind of documents? There are DLP settings for that on your M365 platform.We started with sensitivity labelling to mark the content and observe how users applied labels. The next stage was add protection to most valuable content. Here we use custom / ad-hoc protection, mean the user has to specify who exactly should have access to the content. All that should be backed by a sound coorporate governance. If not available, I assume this should be the first project with your legal dept. or equivalent.
Regrads Max