cancel
Showing results for 
Search instead for 
Did you mean: 

Document Permissions

molti
Champ in-the-making
Champ in-the-making
Hello
I have a problem.
There are two tasks
Task 1. Person1 (Collobrator on Document) modifies the document and sends the registration.
Task 2. Person2 when the task comes to him (Collobrator on Document) fill document properties. On transition, the script is executed in which the document is renamed and  all users became are Consumer.

And the prooblem: If Person1 open the doc dokument for editing online(sharepoint protocol), On second task when script try renamind the document rising the exception Access Denid. But if open for editing offline or I remove setPermission to Consumer No exception and everething be fine.
How I can to remove this problem
1 REPLY 1

jpotts
World-Class Innovator
World-Class Innovator
I can't tell for sure, but it sounds like you need to use "runas" on the JavaScript that is executing as part of the transition so it will execute as an administrator.

Jeff