Issue
Currently, when using the getUser API or viewing through the user interface in CloudBees CD/RO, there is a limitation that prevents fetching more than 1000 users.
When attempting to exceed this limit, users encounter the following error:
java.lang.RuntimeException: Error [InvalidInteger]: 'maximum' must be between 1 and 1000 [where: maximum]
This limitation affects both the API query and the UI, restricting the ability to manage or view large user directories effectively.
Resolution
No permanent fix is available at this time. The issue is acknowledged by CloudBees and is under consideration for future enhancements. See Workaround below.
Workaround
To circumvent the current limitation, users can employ the findObjects API call within the DSL IDE to fetch more users than the getUser API allows.
-
Open your DSL IDE.
-
Execute the following command to retrieve up to 10,000 users:
findObjects(objectType: "user", maxIds: 10000)
| This workaround is temporary until the user query limit is expanded or otherwise resolved in a future product release. |