<?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 Re: List a users tasks using alfresco-js-api in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/list-a-users-tasks-using-alfresco-js-api/m-p/31135#M13191</link>
    <description>&lt;P&gt;Another update...&lt;/P&gt;&lt;P&gt;According to the REST API docs, if I login as an admin user, I can impersonate another user by including:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;activiti-user&lt;/FONT&gt; and &lt;FONT face="courier new,courier"&gt;activiti-user-value-type&lt;/FONT&gt; in the request header.&lt;/P&gt;&lt;P class="p"&gt;Where,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;activiti-user&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;should be set to the required user account identifier and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;activiti-user-value-type&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to the user account identifier type. The header&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;activiti-user-value-type&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;can be one of the following values:&lt;/P&gt;&lt;UL class="ul"&gt;&lt;LI&gt;&lt;P class="p"&gt;&lt;EM&gt;userIdType&lt;/EM&gt;: User’s database ID&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class="p"&gt;&lt;EM&gt;userEmailType&lt;/EM&gt;: User’s Email address&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class="p"&gt;&lt;EM&gt;userExternalIdType&lt;/EM&gt;: User’s ID in an external authentication service such as LDAP or Active Directory&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I tried in Postman and can't gte it to work. Has anyone every tried this?&lt;/P&gt;&lt;P&gt;Anyone know if there is a alfresco-js-api "feature" for this?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;</description>
    <pubDate>Wed, 29 Jan 2020 13:51:07 GMT</pubDate>
    <dc:creator>pedwards99</dc:creator>
    <dc:date>2020-01-29T13:51:07Z</dc:date>
    <item>
      <title>List a users tasks using alfresco-js-api</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/list-a-users-tasks-using-alfresco-js-api/m-p/31133#M13189</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;Does anyone know how to list the tasks asisgned to a user via the alfreso-js-api ?&lt;/P&gt;&lt;P&gt;I'm using the TasksApi.listTasks method but the documentation describing the TaskQueryRepresentation parameter is dreadful. (Unfortunately very typical of Alfresco developer documentation)&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Alfresco/alfresco-js-api/blob/development/src/api/activiti-rest-api/docs/TaskQueryRepresentation.md" target="_blank" rel="noopener nofollow noreferrer"&gt;https://github.com/Alfresco/alfresco-js-api/blob/development/src/api/activiti-rest-api/docs/TaskQueryRepresentation.md&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I'm assuming "assignment" is the option I need to set but all the docs tell me is that its a "string". Great, no help whatsoever.&lt;/P&gt;&lt;P&gt;The REST API docs are no better, again its a string.&lt;/P&gt;&lt;P&gt;I've tried using user names, emails, id etc, but all seem to be ignored. I've even tried putting complete junk into the field and it still returns all tasks for the current user (admin) so I'm begining to think assignment is not the field I'm after.&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2020 21:53:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/list-a-users-tasks-using-alfresco-js-api/m-p/31133#M13189</guid>
      <dc:creator>pedwards99</dc:creator>
      <dc:date>2020-01-27T21:53:11Z</dc:date>
    </item>
    <item>
      <title>Re: List a users tasks using alfresco-js-api</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/list-a-users-tasks-using-alfresco-js-api/m-p/31134#M13190</link>
      <description>&lt;P&gt;Ok, so I found some information on "assignment"&lt;/P&gt;&lt;P&gt;Apparently it will accept the values "assignee", "candidate", "group_x" (where x is the group id). Leaving it empty will list tasks that the current user is involved in.&lt;/P&gt;&lt;P&gt;This doesn't help as I need to get the list of tasks that have been assigned to a specifc user (ideally identified by their user id).&lt;/P&gt;&lt;P&gt;Anyone know if this is possible?&lt;/P&gt;&lt;P&gt;The Activiti-Admin app can do it so I could implement my own REST call to mirror what it does. The problem is the admin app wouold require a different login....&lt;/P&gt;&lt;P&gt;Paul&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2020 22:56:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/list-a-users-tasks-using-alfresco-js-api/m-p/31134#M13190</guid>
      <dc:creator>pedwards99</dc:creator>
      <dc:date>2020-01-27T22:56:05Z</dc:date>
    </item>
    <item>
      <title>Re: List a users tasks using alfresco-js-api</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/list-a-users-tasks-using-alfresco-js-api/m-p/31135#M13191</link>
      <description>&lt;P&gt;Another update...&lt;/P&gt;&lt;P&gt;According to the REST API docs, if I login as an admin user, I can impersonate another user by including:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;activiti-user&lt;/FONT&gt; and &lt;FONT face="courier new,courier"&gt;activiti-user-value-type&lt;/FONT&gt; in the request header.&lt;/P&gt;&lt;P class="p"&gt;Where,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;activiti-user&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;should be set to the required user account identifier and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;activiti-user-value-type&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to the user account identifier type. The header&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;activiti-user-value-type&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;can be one of the following values:&lt;/P&gt;&lt;UL class="ul"&gt;&lt;LI&gt;&lt;P class="p"&gt;&lt;EM&gt;userIdType&lt;/EM&gt;: User’s database ID&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class="p"&gt;&lt;EM&gt;userEmailType&lt;/EM&gt;: User’s Email address&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class="p"&gt;&lt;EM&gt;userExternalIdType&lt;/EM&gt;: User’s ID in an external authentication service such as LDAP or Active Directory&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I tried in Postman and can't gte it to work. Has anyone every tried this?&lt;/P&gt;&lt;P&gt;Anyone know if there is a alfresco-js-api "feature" for this?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 13:51:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/list-a-users-tasks-using-alfresco-js-api/m-p/31135#M13191</guid>
      <dc:creator>pedwards99</dc:creator>
      <dc:date>2020-01-29T13:51:07Z</dc:date>
    </item>
    <item>
      <title>Re: List a users tasks using alfresco-js-api</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/list-a-users-tasks-using-alfresco-js-api/m-p/31136#M13192</link>
      <description>&lt;P&gt;Ahhh, so the postman issue is resolved - stupid typo on my part.&lt;/P&gt;&lt;P&gt;However, that does mean if you get the user credentials wrong then it returns all the tasks for the current logged in user rather then an error or no tasks....not exactly very useful.&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 18:17:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/list-a-users-tasks-using-alfresco-js-api/m-p/31136#M13192</guid>
      <dc:creator>pedwards99</dc:creator>
      <dc:date>2020-01-29T18:17:39Z</dc:date>
    </item>
  </channel>
</rss>

