# 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 ```text https://{server-hostname}:8383/dcapi/inventory/computers/groups ``` ### Scope `Inventory.READ` ### Header ```text Authorization: d92d4xxxxxxxxxxxxx15f52 ``` ### Request Parameters #### Request Headers | Name | Type | Required | Value | |---|---|---|---| | Accept | string | Mandatory | `application/groups.v1+json` | ### Sample Request ```curl curl --request GET \ --url https://appdomain/dcapi/inventory/computers/groups \ --header 'Accept: application/groups.v1+json' \ --header 'Authorization: d92d4xxxxxxxxxxxxx15f52' ``` ## Response ### HTTP 200 Response body: `application/json` | Attribute | Type | Description | |---|---|---| | key | string | Internal key identifier of the group | | displayName | string | Display name of the group | #### 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" } ] ``` ### HTTP 400 Response body: `application/json` | Attribute | Type | Description | |---|---|---| | error_code | string | CUSTOMER_HEADER_MISSING - MSP environment requires X-Customer header | | error_description | string | Missing customer header error message | #### Sample Response: HTTP 400 MSP header missing ```json { "error_description": "dc.rest.customer_header.missing", "error_code": "CUSTOMER_HEADER_MISSING" } ``` ### HTTP 401 Response body: `application/json` | 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 | #### Sample Response: HTTP 401 Missing credentials ```json { "error_description": "Unauthorized access", "error_code": "UAC_UNAUTHORIZED" } ``` ### HTTP 500 Response body: `application/json` | Attribute | Type | Description | |---|---|---| | error_code | string | INTERNAL_ERROR - unexpected exception in the service layer | | error_description | string | Internal server error message | #### Sample Response: HTTP 500 Server error ```json { "error_description": "Internal server error", "error_code": "INTERNAL_ERROR" } ``` ### Possible Response Codes - `200` - `400` - `401` - `500` ## Rate Limits ![](https://www.zohowebstatic.com/sites/zweb/images/people/ico-help.png) **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.