# Retrieves logged-on users for the given computers for selective logoff operations Returns the list of currently logged-on users for each of the specified computers. Used to allow technicians to select specific users when executing a logoff-targeted shutdown operation. ## Endpoint `POST /dcapi/tools/shutdown/getLoggedOnUsers` ## Request URL `https://`[{serverurl}](https://www.manageengine.com/products/desktop-central/help/api/cloud/oauth-authentication-endpoint-domain.html)`/dcapi/tools/shutdown/getLoggedOnUsers` ## Scope `DesktopCentralCloud.Tools.READ` ## Header `Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52` ## Request Parameters ### Request Headers - **Accept** `string` — **Mandatory** - `application/loggedOnUsersList.v1+json` - **Content-Type** `string` — **Mandatory** - `application/getLoggedOnUsersParams.v1+json` ### Request Body `application/json` - `JSON Object` - **computers** `JSON Array` — Optional ### Sample Request ```curl curl --request POST \ --url https://appdomains/dcapi/tools/shutdown/getLoggedOnUsers \ --header 'Accept: application/loggedOnUsersList.v1+json' \ --header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52' \ --header 'Content-Type: application/getLoggedOnUsersParams.v1+json' \ --data '{}' ``` ### Sample Request Body ```json { "computers": [ 101, 202, 303 ] } ``` ## Response Parameters ### HTTP Code 200 Response Body — `application/json` - `JSON Object` - **loggedOnUsers** `array` - Array of computer objects with resourceId, computerName, and a nested users array containing userName and domainName ### Sample Response: HTTP 200 ```json { "loggedOnUsers": [ { "resourceId": 101, "computerName": "WIN-DESKTOP-01", "users": [ { "domainName": "CORP", "userName": "john.doe" } ] } ] } ``` ### Possible Response Codes - **200** — HTTP code ![ ](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.