cancel
Showing results for 
Search instead for 
Did you mean: 

Run a Script as admin

vincent_roye
Champ in-the-making
Champ in-the-making
Hi,

I would like to know if it's possible to run a Sript (not a Web Script) as an admin ? I need to set this to execute a copy :


var nodeDest = search.findNode(document.properties["sg:hasReturnNode"]);
var copy = document.copy(nodeDest);
copy.save();


And the users aren't contributors to this folder.

Thanks you for your help.

Best Regards,

Vincent
1 REPLY 1

mlagneaux
Champ on-the-rise
Champ on-the-rise
Connect with the admin account to Alfresco Explorer.
Upload your script in /Data dictionary/Scripts.
Go to the document details page (view details action) of the document to process and run "Run action" action.
Select "Execute script" action, then select your script in the list (to appear in this list, your script mimetype must be "Java script") and run the action.