How to get all the users details with Java SDK

The Cumulocity IoT API does support fetching all users:
https://cumulocity.com/api/core/10.16.0/#operation/getUserCollectionResource

But the Java SDK does not implement that functionality. You would have to do the REST call yourself. Here is some discussion about how to best do that: