I wish to create web script which will be executed by other user than the one that called it. The reason is simple: user who doesn’t have permission to change certain objects can add/remove tags to it, so this tag manipulation should be done as other user.
Is there a way to do it as web script without meddling with Java?
Or, to put this the other way, is there a way to implement this functionality anyhow without Java (adding/removing tags on objects on which I don’t have write permissions)?
Thanks!
D
Some of tasks in alfresco such as creating user or groups needs admin permission.
If you want to execute these as normal user, you can give admin permission to those user temporarily in webscripts.
simply changing webscript authentication using
<authentication runas="admin">user</authentication>like here.
OR
Not changing in descriptor file, but in webscript controller file.
Detail of coding and how to implement can be found in sudo like tools(1) here. and sudo like tools(2).
Hope it would help.