Link to home
Start Free TrialLog in
Avatar of tapiwab
tapiwabFlag for South Africa

asked on

dynamically Restrict Edit on Word documents using Javascript API Office Addin

I have a requirement to develop a solution to enable the administrator to set edit permissions on Ms Word based on the user logged on.

The solution will be hosted by SharePoint 2013 using Office Co authoring. The document must be edited by many users at the same time and each user must only edit the section the admins have configured the user to edit.

Does anyone have any idea how to allow the administrator to set the permissions? Then dynamically disable/enable controls based on template name and user logon on MS Word 2016 using JavaScript API for Word.

The client does not want to use the option available out of the box to restrict edit using passwords because it is easy to crack the password.

http://www.c-sharpcorner.com/UploadFile/8ea152/set-and-remove-editing-restrictions-in-word-2013-documents/

I have looked at the link below but my problem is to disable/enable the controls dynamically without hard cording the controls or users.

https://xomino.com/2017/03/29/office-add-ins-javascript-control-over-the-content-control-lock-in-a-word-document/
ASKER CERTIFIED SOLUTION
Avatar of p_davis
p_davis

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of tapiwab

ASKER

Due to security issue with VBA i have decided to use Office JavaScript API solution
Perhaps look at red tagging in DLP