AnsweredAssumed Answered

webscript runas

Question asked by vinhqchu on Aug 27, 2009

I'm trying to use the 'runas' attribute in my webscript, but it does not seem to be working. I've stored the description file, freemarker template and javascript file under the classpath 'WEB-INF\classes\alfresco\templates\webscripts\com\sta\scms\'. The webscript runs, but it is not running it under the runas user. In the js file, i'm creating a folder and uploading content, it works, but the creator and modifier property is me and not the runas user.

description file
<?xml version="1.0" encoding="UTF-8"?>
   <shortname>SCMS: Upload Content</shortname>
   <description>Upload file content and meta-data.</description>
   <format default="html">extension</format>
   <authentication runas="fred">user</authentication>

Could it be that the runas attribute only applies to the template and not the controller javascript?

Any help would be great.