# How to get all the users details with Java SDK

**URL:** <https://community.cumulocity.com/t/how-to-get-all-the-users-details-with-java-sdk/7690>\
**Category:** Forum\
**Tags:** cumulocity\
**Created:** [June 14, 2023, 11:44am UTC](https://community.cumulocity.com/t/how-to-get-all-the-users-details-with-java-sdk/7690 "2023-06-14T11:44:28Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Harald\_Meyer](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/harald_meyer/32/1959_2.png) [@Harald\_Meyer](https://community.cumulocity.com/u/Harald_Meyer)\
**Post date:** [June 14, 2023, 3:20pm UTC](https://community.cumulocity.com/t/how-to-get-all-the-users-details-with-java-sdk/7690/4 "2023-06-14T15:20:52Z")

</div>

The Cumulocity IoT API does support fetching all users:  
[https://cumulocity.com/api/core/10.16.0/#operation/getUserCollectionResource](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:

> [@Microservice SDK (java) best way to call unsupperted but available REST endpoints](https://community.cumulocity.com/t/microservice-sdk-java-best-way-to-call-unsupperted-but-available-rest-endpoints/7747/2):
>
> Can only comment on your first question… Where is the best way to get the different parts of the url? The platform URL should be available as environment variable C8Y\_BASEURL. See [here](https://cumulocity.com/guides/microservice-sdk/concept/#authentication-and-authorization): “[…]The Cumulocity IoT exposes the REST endpoint /user/currentUser. The microservice retrieves the Cumulocity IoT address from the C8Y\_BASEURL operating system environment variable.”

---

_[View the full topic](https://community.cumulocity.com/t/how-to-get-all-the-users-details-with-java-sdk/7690)._
