# How to use private UserCollectionRepresentation userCollectionApi; in a cron job

**URL:** <https://community.cumulocity.com/t/how-to-use-private-usercollectionrepresentation-usercollectionapi-in-a-cron-job/7424>\
**Category:** Forum\
**Tags:** java-springboot, cumulocity\
**Created:** [April 29, 2024, 9:37am UTC](https://community.cumulocity.com/t/how-to-use-private-usercollectionrepresentation-usercollectionapi-in-a-cron-job/7424 "2024-04-29T09:37:11Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Stefan\_Witschel](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/stefan_witschel/32/31955_2.png) [@Stefan\_Witschel](https://community.cumulocity.com/u/Stefan_Witschel)\
**Post date:** [April 29, 2024, 10:02am UTC](https://community.cumulocity.com/t/how-to-use-private-usercollectionrepresentation-usercollectionapi-in-a-cron-job/7424/2 "2024-04-29T10:02:52Z")

</div>

Hi @jkpatil1010

this has been answered already here:

> [@How to get all the users details with Java SDK](https://community.cumulocity.com/t/how-to-get-all-the-users-details-with-java-sdk/7690):
>
> Product/components used and version/fix level: Detailed explanation of the problem: Hi, My use case is to fetch the new onboarded users. I am generating a report like in last 24 hours these users onboarded on my application. With REST Endpoint I can get the details by hitting /user/:tenantId/users?pageSize=2000&withTotalPages=true. I am facing 2 issues- There is no creationTime of user in the response. Is there any other endpoint I can access or any other method I can use by SDK to fetch the…

You have to use RestConnector to implement that yourself as it is not part of the SDK unfortunately.

---

_[View the full topic](https://community.cumulocity.com/t/how-to-use-private-usercollectionrepresentation-usercollectionapi-in-a-cron-job/7424)._
