---
title: "ListProjectPolicies"
method: POST
path: "/gitpod.v1.ProjectService/ListProjectPolicies"
tags: ["gitpod.v1.ProjectService"]
---

# ListProjectPolicies

`POST /gitpod.v1.ProjectService/ListProjectPolicies`

Lists policies for a project.

 Use this method to:
 - View access controls
 - Check policy configurations
 - Audit permissions

 ### Examples

 - List policies:

   Shows all policies for a project.

   ```yaml
   projectId: "b0e12f6c-4c67-429d-a4a6-d9838b5da047"
   pagination:
     pageSize: 20
   ```

## Query parameters

- `pageSize` integer
- `token` string

## Request body

- GitpodV1ListProjectPoliciesRequest — ListProjectPoliciesRequest lists policies for a project.
  - `pagination` GitpodV1PaginationRequest
    - `pageSize` integer — Page size is the maximum number of results to retrieve per page. Defaults to 25. Maximum 100.
    - `token` string — Token for the next set of results that was returned as next_token of a PaginationResponse
  - `projectId` string, uuid — project_id specifies the project identifier

## Response `200`

Success

- GitpodV1ListProjectPoliciesResponse
  - `pagination` GitpodV1PaginationResponse
    - `nextToken` string — Token passed for retrieving the next set of results. Empty if there are no more results
  - `policies` GitpodV1ProjectPolicy[]
    - `groupId` string, uuid
    - `role` 'PROJECT_ROLE_UNSPECIFIED' | 'PROJECT_ROLE_ADMIN' | 'PROJECT_ROLE_USER' | 'PROJECT_ROLE_EDITOR'

## Other responses

- `default` — Error

---

[API](https://skmtc.net/gitpod-io/apis/gitpod-v1.md) · [All operations](https://skmtc.net/gitpod-io/apis/gitpod-v1/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gitpod-io/gitpod-v1/revisions/44d50c2ac284/schema)
