02-01-2018 09:34 AM
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.
02-01-2018 08:41 PM
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.
Explore our Alfresco products with the links below. Use labels to filter content by product module.