<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Not able to run scheduler as a current logged in user in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/not-able-to-run-scheduler-as-a-current-logged-in-user/m-p/59300#M21010</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am running the antivirus action through scheduler by following documentation&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/docs/DOC-5978"&gt;Antivirus&lt;/A&gt;&amp;nbsp;and&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/thread/195091"&gt;How to Schedule a Custom Action?&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;PRE class="" style="color: #000000; background: #f5f2f0; border: 0px; margin: 0.5em 0px; padding: 1em 1em 1em 3.8em;"&gt;&lt;CODE style="border: 0px; font-weight: inherit;"&gt; &amp;lt;property name="runAsUser"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;value&amp;gt;admin&amp;lt;/value&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/property&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;property in scheduler.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Feb 2018 14:34:23 GMT</pubDate>
    <dc:creator>ayushi_agrahari</dc:creator>
    <dc:date>2018-02-01T14:34:23Z</dc:date>
    <item>
      <title>Not able to run scheduler as a current logged in user</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/not-able-to-run-scheduler-as-a-current-logged-in-user/m-p/59300#M21010</link>
      <description>Hi,I am running the antivirus action through scheduler by following documentation&amp;nbsp;Antivirus&amp;nbsp;and&amp;nbsp;How to Schedule a Custom Action?&amp;nbsp;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&amp;nbsp; &amp;nbsp; &amp;lt;property name="runAsU</description>
      <pubDate>Thu, 01 Feb 2018 14:34:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/not-able-to-run-scheduler-as-a-current-logged-in-user/m-p/59300#M21010</guid>
      <dc:creator>ayushi_agrahari</dc:creator>
      <dc:date>2018-02-01T14:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to run scheduler as a current logged in user</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/not-able-to-run-scheduler-as-a-current-logged-in-user/m-p/59301#M21011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Scheduled actions are always executed by the user defined in the configuration.&lt;/P&gt;&lt;P&gt;The current logged in user has nothing to do&amp;nbsp;with that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you can do is to customize the action (Java code), and make it disable the aspect auditable&amp;nbsp;temporarily.&lt;/P&gt;&lt;P&gt;By doing so, Alfresco will not record the modifier and modified attributes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Feb 2018 01:41:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/not-able-to-run-scheduler-as-a-current-logged-in-user/m-p/59301#M21011</guid>
      <dc:creator>douglascrp</dc:creator>
      <dc:date>2018-02-02T01:41:15Z</dc:date>
    </item>
  </channel>
</rss>

