<?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 UserQuery.userId(1) returns empty list of users in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/userquery-userid-1-returns-empty-list-of-users/m-p/10001#M4466</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an Activiti form (Alfresco Process Services) where I have a people control from the default stencil.&lt;/P&gt;&lt;P&gt;I am trying to get the email address of the user selected on the form (n example below, I selected Administrator user). In the java delegate after the form submit, I am doing this to get the user&amp;nbsp;&lt;/P&gt;&lt;P&gt;execution.getEngineServices().getIdentityService().createUserQuery().userId(1).singleResult()&lt;/P&gt;&lt;P&gt;however the query result is returning of length 0 so singleResult is returning null. So I cant get the email address.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I checked in the users table, there is administrator user with Id = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is the first time I am trying to use this API. Am I missing something?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any other way of getting the user for UserId = 1?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in adavance..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 May 2018 03:43:26 GMT</pubDate>
    <dc:creator>prashantgadgil</dc:creator>
    <dc:date>2018-05-02T03:43:26Z</dc:date>
    <item>
      <title>UserQuery.userId(1) returns empty list of users</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/userquery-userid-1-returns-empty-list-of-users/m-p/10001#M4466</link>
      <description>I have an Activiti form (Alfresco Process Services) where I have a people control from the default stencil.I am trying to get the email address of the user selected on the form (n example below, I selected Administrator user). In the java delegate after the form submit, I am doing this to get the us</description>
      <pubDate>Wed, 02 May 2018 03:43:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/userquery-userid-1-returns-empty-list-of-users/m-p/10001#M4466</guid>
      <dc:creator>prashantgadgil</dc:creator>
      <dc:date>2018-05-02T03:43:26Z</dc:date>
    </item>
    <item>
      <title>Re: UserQuery.userId(1) returns empty list of users</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/userquery-userid-1-returns-empty-list-of-users/m-p/10002#M4467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The identity service in community is not used in Alfresco Process Services.&amp;nbsp;&lt;A class="link-titled" href="https://docs.alfresco.com/process-services1.8/topics/user_info_bean_userinfobean.html" title="https://docs.alfresco.com/process-services1.8/topics/user_info_bean_userinfobean.html" rel="nofollow noopener noreferrer"&gt;User Info Bean (userInfoBean) | Alfresco Documentation&lt;/A&gt;&amp;nbsp;is one way to fetch it. There is a lot of other Java APIs too that you can use. As a customer you can get access to the Alfresco Nexus Repository from where you can download the java docs as well as the source code of Alfresco Process Services to find out all the available Java APIs/Spring&amp;nbsp;Beans.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2018 11:24:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/userquery-userid-1-returns-empty-list-of-users/m-p/10002#M4467</guid>
      <dc:creator>cjose</dc:creator>
      <dc:date>2018-05-02T11:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: UserQuery.userId(1) returns empty list of users</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/userquery-userid-1-returns-empty-list-of-users/m-p/10003#M4468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok that worked. thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2018 13:12:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/userquery-userid-1-returns-empty-list-of-users/m-p/10003#M4468</guid>
      <dc:creator>prashantgadgil</dc:creator>
      <dc:date>2018-05-02T13:12:34Z</dc:date>
    </item>
  </channel>
</rss>

