---
title: "GET /api/activity/reports/risk/groups/"
method: GET
path: "/api/activity/reports/risk/groups/"
tags: ["activity"]
---

# GET /api/activity/reports/risk/groups/

`GET /api/activity/reports/risk/groups/`

## Request

- Base URL: `https://app.pixiebrix.com`
- URL: `https://app.pixiebrix.com/api/activity/reports/risk/groups/`
- Auth: none declared

Return the organization's groups with an activity policy assigned, ranked by high-risk prevalence: the percentage of each group's tracked members (any activity in the window) whose advisory risk score is High or Critical, with the highest member score as secondary detail. Members with no activity in the window are left out of the denominator, a member in several groups counts in each, and a group under five tracked members has a null ``high_risk_percent`` and sorts last. Group membership is resolved at request time, over the same fixed rolling 30 days as the member scores. Optional ``groups`` narrows the rows to those groups. Restricted to organization admins/managers or activity & security report viewers, and gated by both the activity-tracking and risk-scoring flags.

## Query parameters

- `organization` string, uuid, required
- `groups` string[]

## Response `200`

- RiskGroupsResponse
  - `organization` string, uuid, required
  - `start` string, date-time, required
  - `end` string, date-time, required
  - `groups` object[], required
    - `id` string, uuid, required
    - `name` string, required
    - `tracked_members` integer, required
    - `high_risk_members` integer, required
    - `high_risk_percent` number, nullable, required
    - `max_score` integer, nullable, required

## Changes

- **2026-09-24** `c932af1dd0fb`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/pixiebrix/apis/pixiebrix-api/changes/api/activity/reports/risk/groups/get.md)

---

[API](https://skmtc.dev/pixiebrix/apis/pixiebrix-api.md) - [All operations](https://skmtc.dev/pixiebrix/apis/pixiebrix-api/llms.txt) - [OpenAPI document](https://skmtc.dev/pixiebrix/apis/pixiebrix-api/revisions/b5614ae64ccc?raw)
