# Retrieves the list of users currently logged on to the specified computer Returns a list of users currently logged on to the specified computer, fetched from the last-known device state in the server database. ## Endpoints GET `/dcapi/tools/{resourceId}/loggedOnUsers` ## Request ### Request URL `https://{server-hostname}:8383/dcapi/tools/{resourceId}/loggedOnUsers` ### Scope `Tools.READ` ### Header `Authorization: d92d4xxxxxxxxxxxxx15f52` ### Request Parameters #### Request Headers - **Accept** `string` — **Mandatory** - `application/json` #### Path Parameters - **resourceId** `string` — **Mandatory** - The unique identifier of the target device ### Sample Request ```curl curl --request GET \ --url https://appdomain/dcapi/tools/{resourceId}/loggedOnUsers \ --header 'Accept: application/json' \ --header 'Authorization: d92d4xxxxxxxxxxxxx15f52' ``` ## Response ### Response Parameters #### HTTP Code 200 Response Body: `application/json` - `JSON Object` - **users** `array` - Array of user objects with userName, domainName, logonTime, and sessionType ### Possible Response Codes - **200** `HTTP code` ### Sample Response: HTTP 200 ```json { "users": [ { "logonTime": 1711300000000, "domainName": "CORP", "sessionType": "Active", "userName": "john.doe" } ] } ``` ## Rate Limit ![](https://www.zohowebstatic.com/sites/zweb/images/people/ico-help.png) **Duration:** 1 minute | **Threshold:** 30 | **Lock period:** 5 minutes Duration - Time window for the threshold. Threshold - Number of API calls allowed within the specified duration. Lock Period - Wait time before consecutive API requests.