---
title: "List Direct Group"
method: GET
path: "/v2/schema/{proj_id}/{env_id}/groups/direct"
tags: ["Groups"]
---

# List Direct Group

`GET /v2/schema/{proj_id}/{env_id}/groups/direct`

Paginated list of groups with various filters.

## Path parameters

- `proj_id` string, required — Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug").
- `env_id` string, required — Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug").

## Query parameters

- `tenant` string — The tenant key or id to filter by
- `resource` string — The resource key or id to filter by
- `page` integer — Page number of the results to fetch, starting at 1.
- `per_page` integer — The number of results per page (max 100).
- `search` string — Text search for the object name or key

## Response `200`

Successful Response

- PaginatedResultGroupReadSchema
  - `data` GroupReadSchema[], required — List of Group Read Schemas
    - `group_resource_type_key` string — The key of the resource type that the group belongs to.
    - `group_instance_key` string, required — Either the unique id of the resource instance that that the group belongs to, or the URL-friendly key of the <resource_key:resource_instance_key> (i.e: file:my_file)
    - `group_tenant` string, required — The tenant key or id that the group belongs to.
    - `id` string, uuid, required
  - `total_count` integer, required
  - `page_count` integer

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/permit/apis/permit-io-api.md) · [All operations](https://skmtc.dev/permit/apis/permit-io-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/permit/permit-io-api/revisions/0235743bf8a2/schema)
