Not able to run scheduler as a current logged in user

cancel
Showing results for 
Search instead for 
Did you mean: 
ayushi_agrahari
Active Member II

Not able to run scheduler as a current logged in user

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
douglascrp
Advanced II

Re: Not able to run scheduler as a current logged in user

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.