Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

BlackBerry Web Services

Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.

New Developer
Posts: 4
Registered: ‎02-06-2014
My Device: Q10
My Carrier: O2
Accepted Solution

Web API call to get all BlackBerry10 Devices

Hi Community,


we developed an own ASP.NET-based website for our UserHelpDesk that they can see informations about a users device. To get all BlackBerry10 devices we use the API with the following code:


GetUsersRequest request = new GetUsersRequest();
RequestMetadata metadata = new RequestMetadata();
metadata.clientVersion = ClientVersion;
metadata.locale = Locale;
metadata.organizationUid = OrgUid;
request.metadata = metadata;
GetUsersSearchCriteria searchCriteria = new GetUsersSearchCriteria();
request.searchCriteria = searchCriteria;
request.pageSize = 0;
GetUsersSortBy sortBy = new GetUsersSortBy();
sortBy.EMAIL_ADDRESS = true;
sortBy.value = "EMAIL_ADDRESS";
request.sortBy = sortBy;

GetUsersResponse response = service.getUsers(request);


The problem is now, that only 2000 devices come back as a result set! When we try to change the pageSize to 3000, then an error appears with message "pageSize too large" appears. Is there a possibility to get more than 2000 devices back from the service?




Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10
My Carrier: Bell

Re: Web API call to get all BlackBerry10 Devices

Hi Steffen,


The GetUsersRequest call, and most calls in BWS, will paginate the responses to help with efficiency and load of the system. The call has a parameter "lastUserUid" which can be set to denote where the next query should begin, so say you make your call with 2,000 users listed and the last user in that list has an ID of "2000", if you pass that ID into the next GetUsersRequest then the query will begin at the next user ID, ex "2001", and continue from there.

Goodbye everybody!
New Developer
Posts: 1
Registered: ‎05-31-2014
My Device: 0564300063
My Carrier: sdt

Re: Web API call to get all BlackBerry10 Devices