---
title: "Fetch resource groups associated to a resource"
method: GET
path: "/restapi/json/v1/resources/{resourceId}/associatedGroups"
tags: ["Resource Groups"]
---

# Fetch resource groups associated to a resource

`GET /restapi/json/v1/resources/{resourceId}/associatedGroups`

## Request

- Base URL: `https://Hostname:Port`
- URL: `https://Hostname:Port/restapi/json/v1/resources/{resourceId}/associatedGroups`
- Auth: API key in header `AUTHTOKEN`
- TypeScript: <https://skmtc.dev/manageengine/apis/pam360-rest-api/docs/restapi/json/v1/resources/:resourceId/associatedGroups/get.ts> (a function with typed inputs; its response is checked against the schema)

Retrieve the list of resource groups that a specific resource is associated with.

## Path parameters

- `resourceId` integer, required

## Headers

- `orgName` string

## Response `200`

Associated resource groups

- AssociatedGroupsResponse
  - `operation` object
    - `result` OperationResult
      - `message` string: Result message describing the operation outcome
      - `status` string: Operation status
    - `Details` object
      - `ASSOCIATED GROUPS` object[]: List of groups associated with the specified entity.
        - `GROUP ID` integer: Unique identifier of the associated group.
        - `GROUP NAME` string: Name of the associated group.
    - `name` string

---

[API](https://skmtc.dev/manageengine/apis/pam360-rest-api.md) - [All operations](https://skmtc.dev/manageengine/apis/pam360-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/manageengine/apis/pam360-rest-api/revisions/44a47abb4bdb?raw)
