---
title: "Fetch all user groups"
method: GET
path: "/restapi/json/v1/userGroup"
tags: ["User Groups"]
---

# Fetch all user groups

`GET /restapi/json/v1/userGroup`

## Request

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

Fetches all user groups in PAM360 with optional filtering, search, and pagination support.

## Headers

- `orgName` string

## Response `200`

List of user groups

- GetUserGroupsResponse
  - `operation` object
    - `result` OperationResult
      - `message` string: Result message describing the operation outcome
      - `status` string: Operation status
    - `Details` object[]: List of user groups retrieved from PAM360.
      - `userGroupId` integer: Unique identifier of the user group.
      - `userGroupName` string: Name of the user group.
      - `description` string: Additional information or notes about the user group.
      - `dateCreated` string, date-time: Timestamp when the user group was created.
    - `numberOfRowsFetched` integer: Number of user groups fetched in the current response.
    - `totalRows` integer: Total number of user groups available.
    - `name` string: Name of the API operation.

---

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