# 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. ## Endpoints `GET /dcapi/inventory/computers/groups` ## 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 | Parameter | Type | Required | Value | |---|---|---|---| | Accept | string | Mandatory | `application/groups.v1+json` | ### Query Parameters | Parameter | Type | Required | Description | |---|---|---|---| | 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** | Attribute | Type | Description | |---|---|---| | key | string | Internal key identifier of the group | | displayName | string | Display name of the group | ### HTTP Code 400 Response Body: `application/json` **JSON Object** | Attribute | Type | Description | |---|---|---| | 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** | Attribute | Type | Description | |---|---|---| | 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** | Attribute | Type | Description | |---|---|---| | 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 Response: 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" } ] ``` ## Sample Response: HTTP 400 MSP header missing ```json { "error_description": "dc.rest.customer_header.missing", "error_code": "CUSTOMER_HEADER_MISSING" } ``` ## Sample Response: HTTP 401 Missing credentials ```json { "error_description": "Unauthorized access", "error_code": "UAC_UNAUTHORIZED" } ``` ## Sample Response: HTTP 500 Server error ```json { "error_description": "Internal server error", "error_code": "INTERNAL_ERROR" } ``` ## Rate Limit **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.