Hi,
I am running the antivirus action through scheduler by following documentation Antivirus and How to Schedule a Custom Action?
It is running perfectly but the one problem I am facing now is that the scheduler is running the action as admin or system user because of the
<property name="runAsUser">
<value>admin</value>
</property>
property in scheduler.
Due to this,when the document of any user is scanning for virus through scheduler,the document of the user is modified by the admin.
So,is there any way to run the scheduler as the current logged in user because this is a major discrepancy for any user other than admin.
Scheduled actions are always executed by the user defined in the configuration.
The current logged in user has nothing to do with that.
What you can do is to customize the action (Java code), and make it disable the aspect auditable temporarily.
By doing so, Alfresco will not record the modifier and modified attributes.
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.