cancel
Showing results for 
Search instead for 
Did you mean: 

Enumerating ALL users in Javascript?

gyro_gearless
Champ in-the-making
Champ in-the-making
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\\:person");for each (p in people){   logger.log("Found user: " + p.properties.userName);   // ….}‍‍‍‍‍‍‍

which fails, because the lucene query returns no more than 1000 people, while i have some 5000 users in my system  Smiley Sad

Any idea how to do that in JS?

Cheers
Gyro
1 REPLY 1

jpfi
Champ in-the-making
Champ in-the-making
Hi,
you can't do this OTB:
- implement a javascript process extension that uses searchService & increases limits
- set limits (@see org.alfresco.service.cmr.search.SearchParameters or org.alfresco.repo.search.impl.querymodel.QueryOptions)

best, Jan