Enumerating ALL users in Javascript?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2010 12:32 PM
Hi folks,
i wonder how i would enumerate ALL users known to Alfresco in some JS? I just tried this example from the Wiki:
which fails, because the lucene query returns no more than 1000 people, while i have some 5000 users in my system
Any idea how to do that in JS?
Cheers
Gyro
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

Any idea how to do that in JS?
Cheers
Gyro
Labels:
- Labels:
-
Archive
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2010 02:02 PM
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
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
