I wrote a script which modifies data and copy it to a folder. As a admin it works without any problems but as normal user I get always an unauthorized exception. The webscript is a java backend script which is called via a custom front end.
I put my descriptor file below:
<xml> <webscript> <shortname>Modify content and copy it to a folder</shortname> <description>Modify data</description> <url>/api/modifications_script/mod_data_structure?file={file_nodeRef}&destination={destination_nodeRef}</url> <format default="json">extension</format> <transaction>required</transaction> <authentication>user</authentication> </webscript> </xml>
Is it possible that the data you are modifying was originally created by admin, and the regular user does not have authority to change it? So it would no be a webscript issue, just a normal authority issue.