partnernetrst Absent Member.
Absent Member.
1620 views

GroupWise REST API Limitations

Hello,

since there is no way to mass change on user visibility using admin console I made a simple perl script that does this job using GroupWise REST API.

I have one big problem with API:

As stated in this documentation: https://www.novell.com/documentation/groupwise2014r2/gwsdk_admin_rest_api/data/b12ypdkd.html I can get all post office users using this request: GET https://localhost:9710/gwadmin-service/list/USER/POST_OFFICE.testDom1.testPO1

The Problem is, that the response is capped to 1000 users, so if I have more than 1000 users in a post office, everything over that 1000 will be ignored and is not a part of the response. Is there a way to get more than 1000 users as a response to that query ? Is it a bug maybe ?

GroupWise Version: 2014 R2 SP2 HP1
Runnning on: SLES 11 SP4

Best Regards,
Aleksejs Sokolovics
Labels (1)
0 Likes
4 Replies
Knowledge Partner
Knowledge Partner

Re: GroupWise REST API Limitations

Out of curiosity could you explain why you would want more than 1000 at a
time? Are you wanting to change the visibility for all users in the
system and could you do that using queries for users by name, e.g. a*, b*,
c*, etc.?

I would guess sane limits are in place not as a bug but to prevent
less-desirable things from happening when somebody request all users ever,
and getting 100k results, killing the client and maybe even the server
side as it generates that response.

--
Good luck.

If you find this post helpful and are logged into the web interface,
show your appreciation and click on the star below.

If you want to send me a private message, please let me know in the
forum as I do not use the web interface often.
0 Likes
johnbaird Absent Member.
Absent Member.

Re: GroupWise REST API Limitations

Here is a comment from one of my programs:

When all matching entries are returned there is (e.g.) <outOf>25</outOf> at the end of the output. If not all are returned i.e. there are more than 1000 matches, we get (e.g.) <resultInfo><nextId>578</nextId><resultInfo> and we must issue a further request starting at ID 578. When there are no further entries, there is no <nextId> and no <outOf> at the end of the data.

HTH, John
0 Likes
partnernetrst Absent Member.
Absent Member.

Re: GroupWise REST API Limitations

johnbaird;2474987 wrote:
Here is a comment from one of my programs:

When all matching entries are returned there is (e.g.) <outOf>25</outOf> at the end of the output. If not all are returned i.e. there are more than 1000 matches, we get (e.g.) <resultInfo><nextId>578</nextId><resultInfo> and we must issue a further request starting at ID 578. When there are no further entries, there is no <nextId> and no <outOf> at the end of the data.

HTH, John


Thanks for the hint, infact at the end of the response I see <nextId>5848</nextId>, but how should the query URL look like if I want to pickup on that ID ? Atm my script just uses curl to query this url https://localhost:9710/gwadmin-service/list/USER/POST_OFFICE.testDom1.testPO1 in the documentation I dont see any description on this case.

Edit: Found the way 🙂 Thanks!
0 Likes
matt4 Trusted Contributor.
Trusted Contributor.

Re: GroupWise REST API Limitations

partnernetrst;2475036 wrote:
Thanks for the hint, infact at the end of the response I see <nextId>5848</nextId>, but how should the query URL look like if I want to pickup on that ID ? Atm my script just uses curl to query this url https://localhost:9710/gwadmin-service/list/USER/POST_OFFICE.testDom1.testPO1 in the documentation I dont see any description on this case.

Edit: Found the way 🙂 Thanks!



Can you share the format of your request for grabbing the next set?
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.