I have created webscript in alfresco community edition-5.1.x , When non-admin users run the scripts not working I am getting 401-Unauthorized
when run from admin users its working fine, Can any help me how can I run webscript from non-admin users.
You need to check your webscript definition :
The authentication part must be user. Other choices are admin (probably your case) or none (no authentication).
<webscript>
<shortname>Hello World</shortname>
<description>Hello World Sample Web Script that responds back with a greeting</description>
<url>/tutorial/helloworld</url>
<format default="html"></format>
<authentication>user</authentication>
<family>Alfresco Tutorials</family>
</webscript>