---
title: "Get User Group"
method: GET
path: "/api/v2/core/user-groups/{userGroupId}"
tags: ["User Groups"]
---

# Get User Group

`GET /api/v2/core/user-groups/{userGroupId}`

## Request

- Base URL: `https://apiv2.eightfold.ai`
- URL: `https://apiv2.eightfold.ai/api/v2/core/user-groups/{userGroupId}`
- Auth: none declared. Required headers: `Authorization`
- TypeScript: <https://skmtc.dev/eightfold/apis/api-server-v2-service-service/docs/api/v2/core/user-groups/:userGroupId/get.ts> (a function with typed inputs; its response is checked against the schema)

Given a user group id, it returns the user group along with its member counts. staticMemberCount is read from the database and is always current; dynamicMemberCount is read from the search index, can lag a recent change, and is null if that index cannot be reached, which is distinct from a count of zero.

## Path parameters

- `userGroupId` string, required

## Query parameters

- `exclude` string
- `keyList` string

## Headers

- `Authorization` string, required

## Response `200`

OK

- UserGroupDetailSchema
  - `createdAt` integer, nullable: Create timestamp of the user group
  - `id` integer, nullable: Id of the user group
  - `staticMemberCount` integer, nullable: Number of users explicitly assigned to the user group
  - `isActive` boolean, nullable: Whether the user group is active
  - `dynamicMemberCount` integer, nullable: Number of users matching the dynamic membership rules of the user group. Null if the search index could not be reached, which is distinct from a count of zero
  - `description` string, nullable: Description of the user group
  - `productLine` string, nullable: Product line this user group applies to. Defaults to all product lines
  - `updatedAt` integer, nullable: Update timestamp of the user group
  - `role` string, nullable: Role granted to the members of the user group
  - `userGroupName` string, nullable: Name of the user group

## Changes

- **2026-11-03** `9a8b3a927e93`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/eightfold/apis/api-server-v2-service-service/changes/api/v2/core/user-groups/:userGroupId/get.md)

---

[API](https://skmtc.dev/eightfold/apis/api-server-v2-service-service.md) - [All operations](https://skmtc.dev/eightfold/apis/api-server-v2-service-service/llms.txt) - [OpenAPI document](https://skmtc.dev/eightfold/apis/api-server-v2-service-service/revisions/9a8b3a927e93?raw)
