--- title: "Get User Details" url: https://docs.catalyst.zoho.com/en/sdk/java/v1/cloud-scale/authentication/get-user-details/ description: "This page describes the method to add new end-users to your Java application using Catalyst Authentication with sample code snippets." last_updated: 2025-11-19T15:07:41Z service: Cloud Scale type: general related_links: - name: "Get User Details - API" url: /en/api/code-reference/cloud-scale/authentication/get-current-user/#GetCurrentUser - name: "Authentication" url: /en/cloud-scale/help/authentication/introduction --- # Get User Details [Catalyst Authentication](https://docs.catalyst.zoho.com/en/cloud-scale/help/authentication/introduction) provides some variants to retrieve the details of the app users. It is possible to obtain the user information of the current user, any, or all users of the application. ### Get Current User Details This code fetches the details of an user on whose scope the function is getting executed. #### Sample Code Snippet **Package Imports** ```java import com.zc.component.ZCUserDetail; import com.zc.component.users.ZCUser; ``` ```java //Create an instance of the ZCUser object to get current user information ZCUserDetail details = ZCUser.getInstance().getCurrentUser(); ``` ### Get All User Details This code can fetch the details of all the users who are registered with the application. #### Sample Code Snippet **Package Imports** ```java import com.zc.component.ZCUserDetail; import com.zc.component.users.ZCUser; ``` ```java //Create an instance of ZCUser and call getAllUser to get all the users in the application List<ZCUserDetail> details = ZCUser.getInstance().getAllUser(); ``` ### Get User Details by User ID Unlike the previous code, when you want to retrieve the information of a particular user, you can use this code where the User ID of the user is passed as a parameter to the `getUser()` method. #### Sample Code Snippet **Package Imports** ```java import com.zc.component.ZCUserDetail; import com.zc.component.users.ZCUser; ``` ```java //Create an instance of the ZCUser object and use user id to get user information based on id ZCUserDetail details = ZCUser.getInstance().getUser(1510000000113214L); ```