<?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 Query *all*users with Lucene in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/query-all-users-with-lucene/m-p/246444#M199574</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;I am trying to query all users (i.e. even those users created by a LDAP sync) with a JavaScript implemented Lucene search. I've already done the basic code (showing the relevant parts only):&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;var foundUsers = search.luceneSearch("user://alfrescoUserStore", "QNAME:\"usr:user\"");&lt;BR /&gt;&lt;BR /&gt;if (foundUsers.length) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;for(var i = 0; i &amp;lt; foundUsers.length; i++) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// do some funny things with each user provided in foundUsers[i]:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[…]&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;};&lt;BR /&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;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;The returned array &lt;/SPAN&gt;&lt;EM&gt;foundUsers&lt;/EM&gt;&lt;SPAN&gt; has indeed some user entries, but only those six users, which were created manually within Alfresco. But there are some hundred other users, which were created by a regular LDAP sync. Those are not contained in &lt;/SPAN&gt;&lt;EM&gt;foundUsers&lt;/EM&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've also tried the one parameter version of &lt;/SPAN&gt;&lt;EM&gt;search.luceneSearch()&lt;/EM&gt;&lt;SPAN&gt; without specifying a store:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;var foundUsers = search.luceneSearch("QNAME:\"usr:user\"");&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;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;This led to an empty result array.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anybody know the appropriate Lucene query to fetch really all users of Alfresco?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kind regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Markus&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Mar 2011 11:44:28 GMT</pubDate>
    <dc:creator>mpeters</dc:creator>
    <dc:date>2011-03-29T11:44:28Z</dc:date>
    <item>
      <title>Query *all*users with Lucene</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/query-all-users-with-lucene/m-p/246444#M199574</link>
      <description>Hello,I am trying to query all users (i.e. even those users created by a LDAP sync) with a JavaScript implemented Lucene search. I've already done the basic code (showing the relevant parts only):var foundUsers = search.luceneSearch("user://alfrescoUserStore", "QNAME:\"usr:user\"");if (foundUsers.le</description>
      <pubDate>Tue, 29 Mar 2011 11:44:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/query-all-users-with-lucene/m-p/246444#M199574</guid>
      <dc:creator>mpeters</dc:creator>
      <dc:date>2011-03-29T11:44:28Z</dc:date>
    </item>
    <item>
      <title>Re: Query *all*users with Lucene</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/query-all-users-with-lucene/m-p/246445#M199575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The User type nodes only exist for Alfrecso internal authentication.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Person type nodes exist for all authentication sub-systems.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So you want type 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.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Mar 2011 13:04:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/query-all-users-with-lucene/m-p/246445#M199575</guid>
      <dc:creator>andy</dc:creator>
      <dc:date>2011-03-29T13:04:00Z</dc:date>
    </item>
  </channel>
</rss>

