<?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 Accessing another user task in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/accessing-another-user-task/m-p/283789#M236919</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello, when I try to get details of a task from account which is not an owner one I receive exception: &amp;lt;blockquote&amp;gt;org.alfresco.repo.security.permissions.AccessDeniedException: Accessing task with id='activiti$12495' is not allowed for user 'username'.&amp;lt;/blockquote&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;From admin console I gave all permissions to the associated workflow document to that user and even all permissions to the package folder, but nothing change. How to do this right? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My goal is to give read only access to all tasks where some user was chosen as Observer(there is special field on form).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I've tried to set permissions on bpm_package in org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener call after completion of task, but I got error that 'observers' is not defined(this is an aspect set to the task, this aspect is an association to cm&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;erson). My code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;for (i=0; i &amp;lt; observers.size(); i++) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bpm_package.setPermission("Collaborator", observers.get(i).properties["cm:userName"]);&lt;BR /&gt;}&lt;BR /&gt;runas admin&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;How to get this aspect/association in script?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggestions how to give access to tasks to users that are not initiator or owner?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Activiti engine&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Alfresco 4.2d&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Sep 2013 08:29:55 GMT</pubDate>
    <dc:creator>tobix10</dc:creator>
    <dc:date>2013-09-02T08:29:55Z</dc:date>
    <item>
      <title>Accessing another user task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/accessing-another-user-task/m-p/283789#M236919</link>
      <description>Hello, when I try to get details of a task from account which is not an owner one I receive exception: &amp;lt;blockquote&amp;gt;org.alfresco.repo.security.permissions.AccessDeniedException: Accessing task with id='activiti$12495' is not allowed for user 'username'.&amp;lt;/blockquote&amp;gt;From admin console I ga</description>
      <pubDate>Mon, 02 Sep 2013 08:29:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/accessing-another-user-task/m-p/283789#M236919</guid>
      <dc:creator>tobix10</dc:creator>
      <dc:date>2013-09-02T08:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing another user task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/accessing-another-user-task/m-p/283790#M236920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;you can't assign permissions on tasks. If you want to modify the way the workflow service limits the view on tasks you need to provide an alternative implementation for bean "WorkflowService_security" (introduced in Alfresco 4.1.5 / 4.2d). This interceptor is responsible for managing access to workflows and tasks. Unfortunately, any change will have to involve Java coding and be universal in nature (affecting all kinds of workflows / tasks).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Axel&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Sep 2013 15:45:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/accessing-another-user-task/m-p/283790#M236920</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2013-09-07T15:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing another user task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/accessing-another-user-task/m-p/283791#M236921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is it possible to easily disable this workflow service security so that access to the workflow details behaves the way that it did in 4.2.c?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm testing a custom workflow in Alfresco 4.2.e. The workflow has several review tasks and I have discovered that participants in the workflow can now only see their own task and the start task. This is not acceptable, as participants must be able to see the comments from all previous tasks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This seems like a bug.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;EDIT:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll answer my own question.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The workflow service security can be easily disabled by modifying:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; alfresco/WEB-INF/classes/alfresco/public-services-security-context.xml&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Change&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;bean id="WorkflowService_security" class="org.alfresco.service.cmr.workflow.WorkflowPermissionInterceptor" &amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="personService"&amp;gt;&amp;lt;ref bean="personService"/&amp;gt;&amp;lt;/property&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="authorityService"&amp;gt;&amp;lt;ref bean="authorityService"/&amp;gt;&amp;lt;/property&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="workflowService"&amp;gt;&amp;lt;ref bean="workflowServiceImpl" /&amp;gt;&amp;lt;/property&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/bean&amp;gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;to&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!– This service now has no restrictions. –&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;bean id="WorkflowService_security" class="org.alfresco.repo.security.permissions.impl.AlwaysProceedMethodInterceptor" /&amp;gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Oct 2013 15:47:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/accessing-another-user-task/m-p/283791#M236921</guid>
      <dc:creator>lyles</dc:creator>
      <dc:date>2013-10-24T15:47:00Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing another user task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/accessing-another-user-task/m-p/283792#M236922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Great this was what I was looking for as well! Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Nov 2013 10:01:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/accessing-another-user-task/m-p/283792#M236922</guid>
      <dc:creator>marcus_svensson</dc:creator>
      <dc:date>2013-11-22T10:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing another user task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/accessing-another-user-task/m-p/283793#M236923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;To make the permissions more specific, I think you have 2 more alternatives : &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- stick to the out-of-the-box properties in your task model to define your tasks assignees (bpm_assignee, bpm_assignees, bpm_groupAssignee, bpm_groupAssignees and bpm_pooledActors)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- rewrite the WorkflowPermissionInterceptor, specifically the method isInitiatorOrAssignee(WorkflowTask wt, String userName) and ad in here your custom properties, users, etc., and use it to redefine the Spring bean named "WorkflowService_security"&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Feb 2014 09:34:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/accessing-another-user-task/m-p/283793#M236923</guid>
      <dc:creator>jservajean</dc:creator>
      <dc:date>2014-02-21T09:34:24Z</dc:date>
    </item>
  </channel>
</rss>

