# Retrieve the list of groups across managed computers Returns the list of user groups and system groups detected across managed computers. Supports filtering by name and pagination. ## Endpoint `GET /dcapi/inventory/computers/groups` ## Request ### Request URL `https://`[{serverurl}](https://www.manageengine.com/products/desktop-central/help/api/cloud/oauth-authentication-endpoint-domain.html)`/dcapi/inventory/computers/groups` ### Scope `DesktopCentralCloud.Inventory.READ` ### Header `Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52` ### Request Parameters #### Request Headers - **Accept** `string` — Mandatory - `application/groups.v1+json` #### Query Parameters - **searchString** `string` — Optional - Filter groups by name - **offset** `integer` — Optional - Pagination offset - **limit** `integer` — Optional - Page size limit ### Sample Request ```curl curl --request GET \ --url https://appdomains/dcapi/inventory/computers/groups \ --header 'Accept: application/groups.v1+json' \ --header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52' ``` ## Response Parameters ### HTTP Code 200 Response Body — `application/json` `JSON Object` - **key** `string` - Internal key identifier of the group - **displayName** `string` - Display name of the group ### HTTP Code 400 Response Body — `application/json` `JSON Object` - **error_code** `string` - CUSTOMER_HEADER_MISSING - MSP environment requires X-Customer header - **error_description** `string` - Missing customer header error message ### HTTP Code 401 Response Body — `application/json` `JSON Object` - **error_code** `string` - UAC_UNAUTHORIZED - user lacks the required uem-roles or credentials are missing - **error_description** `string` - Authentication or authorization failure reason ### HTTP Code 500 Response Body — `application/json` `JSON Object` - **error_code** `string` - INTERNAL_ERROR - unexpected exception in the service layer - **error_description** `string` - Internal server error message ## Possible Response Codes - `200` — HTTP code - `400` — HTTP code - `401` — HTTP code - `500` — HTTP code ## Sample Responses ### HTTP 200 List of groups detected across computers ```json [ { "displayName": "Administrators", "key": "Administrators" }, { "displayName": "Backup Operators", "key": "Backup Operators" }, { "displayName": "Remote Desktop Users", "key": "Remote Desktop Users" }, { "displayName": "Users", "key": "Users" } ] ``` ### HTTP 400 MSP header missing ```json { "error_description": "dc.rest.customer_header.missing", "error_code": "CUSTOMER_HEADER_MISSING" } ``` ### HTTP 401 Missing credentials ```json { "error_description": "Unauthorized access", "error_code": "UAC_UNAUTHORIZED" } ``` ### HTTP 500 Server error ```json { "error_description": "Internal server error", "error_code": "INTERNAL_ERROR" } ``` ## Rate Limits **Duration:** 1 minute | **Threshold:** 120 | **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.