<?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 How to execute an operation triggered by a user under a service level account? in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-execute-an-operation-triggered-by-a-user-under-a-service/m-p/316646#M3647</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;We have an event listener that is triggered by a user action. It runs an operation that changes permission on the asset. We would like to be able to run an operation without giving the users ability to change permission on an asset. The event handler and operation are defined in Java.&lt;/P&gt;
&lt;P&gt;Does anyone have a good code snippet to share?&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Fri, 17 Aug 2018 00:43:13 GMT</pubDate>
    <dc:creator>Kostya_Protsenk</dc:creator>
    <dc:date>2018-08-17T00:43:13Z</dc:date>
    <item>
      <title>How to execute an operation triggered by a user under a service level account?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-execute-an-operation-triggered-by-a-user-under-a-service/m-p/316646#M3647</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;We have an event listener that is triggered by a user action. It runs an operation that changes permission on the asset. We would like to be able to run an operation without giving the users ability to change permission on an asset. The event handler and operation are defined in Java.&lt;/P&gt;
&lt;P&gt;Does anyone have a good code snippet to share?&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 17 Aug 2018 00:43:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-execute-an-operation-triggered-by-a-user-under-a-service/m-p/316646#M3647</guid>
      <dc:creator>Kostya_Protsenk</dc:creator>
      <dc:date>2018-08-17T00:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute an operation triggered by a user under a service level account?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-execute-an-operation-triggered-by-a-user-under-a-service/m-p/316647#M3648</link>
      <description>&lt;P&gt;Is UnrestrictedSessionRunner the right solution for this?
&lt;A href="https://github.com/nuxeo/nuxeo/blob/master/nuxeo-core/nuxeo-core-api/src/main/java/org/nuxeo/ecm/core/api/UnrestrictedSessionRunner.java"&gt;https://github.com/nuxeo/nuxeo/blob/master/nuxeo-core/nuxeo-core-api/src/main/java/org/nuxeo/ecm/core/api/UnrestrictedSessionRunner.java&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I see someone already tried to extend it for a similar task:&lt;A href="https://answers.nuxeo.com/general/q/0c56b384bd954a14b1380e3bf3082348/Problems-with-the-class-UnrestrictedSessionRunner"&gt;https://answers.nuxeo.com/general/q/0c56b384bd954a14b1380e3bf3082348/Problems-with-the-class-UnrestrictedSessionRunner&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Aug 2018 06:45:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-execute-an-operation-triggered-by-a-user-under-a-service/m-p/316647#M3648</guid>
      <dc:creator>Kostya_Protsenk</dc:creator>
      <dc:date>2018-08-17T06:45:21Z</dc:date>
    </item>
  </channel>
</rss>

