---
title: "Fetch all resource groups"
method: GET
path: "/restapi/json/v1/resourcegroup"
tags: ["Resource Groups"]
---

# Fetch all resource groups

`GET /restapi/json/v1/resourcegroup`

## Request

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

Fetches all resource groups (static and dynamic) accessible to the authenticated user. Supports optional filtering by group type, search keywords, and pagination.

## Headers

- `orgName` string

## Response `200`

List of resource groups

- GetResourceGroupsResponse
  - `operation` object
    - `result` OperationResult
      - `message` string: Result message describing the operation outcome
      - `status` string: Operation status
    - `Details` object[]: List of resource groups retrieved from PAM360.
      - `resourceGroupDescription` string: Description or notes associated with the resource group.
      - `accessType` string: Type of access the current user has on this resource group.
      - `resourceGroupName` string: Name of the resource group.
      - `isOwner` string: Indicates whether the current user is the owner of the group.
      - `resourceGroupType` string: Type of the resource group (e.g., `static`, `dynamic`).
      - `resourceGroupId` string: Unique identifier of the resource group.
      - `timeCreated` string, date-time: Timestamp when the resource group was created.
      - `subGroupOf` string: Parent group ID if this is a subgroup; empty if not applicable.
      - `ownerId` string: User ID of the owner who created the group.
    - `name` string: Name of the API operation performed.
    - `totalRows` integer: Total number of resource groups retrieved.

---

[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)
