cancel
Showing results for 
Search instead for 
Did you mean: 

Not able to run scheduler as a current logged in user

ayushi_agrahari
Confirmed Champ
Confirmed Champ

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.

1 REPLY 1

douglascrp
World-Class Innovator
World-Class Innovator

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.