AnsweredAssumed Answered

How to run execute script as admin?

Question asked by e-no91 on May 10, 2014
Latest reply on May 11, 2014 by e-no91
I've created a javascript file :

var dest = companyhome.childByNamePath("Sites/test-script/documentLibrary/dari");
document.move(dest);


The destination folder is where the user have no restriction.
I understand that I can use

<runas>admin</runas>

in a workflow script, but how do I code this directly in the javascript file?

Thank you in advance!

Outcomes