/alfresco/api/service/people only returns 5000 results in Alfresco EE 4.1.4 -
i've run problem call https://localhost:8080/alfresco/service/api/people
returning first 5000 users.
i can't figure out how rest out of system--that api doesn't appear support "skipcount" argument.
i thought might able @ least list of usernames using webdav url (https://localhost:8080/alfresco/webdav/user%20homes/
) list, returns first 5000.
so, how list of users 5001 onwards?
there maxresult param can give.
for e.g. https://localhost:8080/alfresco/service/api/people?filter=*&maxresults=10000
if @ jira ticket, you'll see when supply * in query search through solr , when don't it'll search db.
if @ java code beneath:
public pagingresults<personinfo> getpeople(string pattern, list<qname> filterstringprops, list<pair<qname, boolean>> sortprops, pagingrequest pagingrequest) { parametercheck.mandatory("pagingrequest", pagingrequest);
there pagingrequest can supply, page need rows/results after 5000.
still you'd need make java-backend webscript retrieves result.
---update---
in org.alfresco.repo.jscript.people there maxresult:
private int defaultlistmaxresults = 5000;
if bit further class initiated in script-service-context.xml. override bean peoplescript , set defaultlistmaxresults higher nr, restart alfresco , should work.
Comments
Post a Comment