Run a Script as admin

cancel
Showing results for 
Search instead for 
Did you mean: 
vincent_roye
Member II

Run a Script as admin

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
mlagneaux
Active Member

Re: Run a Script as admin

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.