<?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 Enumerating ALL users in Javascript? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/enumerating-all-users-in-javascript/m-p/238852#M191982</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi folks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i wonder how i would enumerate ALL users known to Alfresco in some JS? I just tried this example from the Wiki:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;var people = search.luceneSearch("TYPE:cm\\:person");&lt;BR /&gt;for each (p in people)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; logger.log("Found user: " + p.properties.userName);&lt;BR /&gt;&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;which fails, because the lucene query returns no more than 1000 people, while i have some 5000 users in my system&amp;nbsp; &lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://connect.hyland.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any idea how to do that in JS?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Gyro&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Jun 2010 16:32:40 GMT</pubDate>
    <dc:creator>gyro_gearless</dc:creator>
    <dc:date>2010-06-08T16:32:40Z</dc:date>
    <item>
      <title>Enumerating ALL users in Javascript?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/enumerating-all-users-in-javascript/m-p/238852#M191982</link>
      <description>Hi folks,i wonder how i would enumerate ALL users known to Alfresco in some JS? I just tried this example from the Wiki:var people = search.luceneSearch("TYPE:cm\\&lt;IMG id="smileytongue" class="emoticon emoticon-smileytongue" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;erson");for each (p in people){&amp;nbsp;&amp;nbsp; logger.log("Found user: " + p.properties.userName);&amp;nbsp;&amp;nbsp; // ….}‍‍‍‍‍‍‍which fails, because the lucene qu</description>
      <pubDate>Tue, 08 Jun 2010 16:32:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/enumerating-all-users-in-javascript/m-p/238852#M191982</guid>
      <dc:creator>gyro_gearless</dc:creator>
      <dc:date>2010-06-08T16:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: Enumerating ALL users in Javascript?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/enumerating-all-users-in-javascript/m-p/238853#M191983</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;SPAN&gt;you can't do this OTB:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- implement a javascript process extension that uses searchService &amp;amp; increases limits&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- set limits (@see org.alfresco.service.cmr.search.SearchParameters or org.alfresco.repo.search.impl.querymodel.QueryOptions)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;best, Jan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jun 2010 18:02:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/enumerating-all-users-in-javascript/m-p/238853#M191983</guid>
      <dc:creator>jpfi</dc:creator>
      <dc:date>2010-06-08T18:02:02Z</dc:date>
    </item>
  </channel>
</rss>

