Skip to Content
ZITADEL Docs
APIsCore ResourcesV2Project

List Project Roles

Returns all roles of a project matching the search query.

Required permission:

  • project.role.read
POST
/zitadel.project.v2.ProjectService/ListProjectRoles

Header Parameters

Connect-Protocol-Version*1

Define the version of the Connect protocol

Value in1
Connect-Timeout-Ms?Connect-Timeout-Ms

Define the timeout, in ms

Request Body

application/json
  1. body
projectId*project_id

ProjectID is the unique identifier of the project.

pagination?|

Pagination can be used to list limitations and ordering.

sortingColumn?|

SortingColumn is the field the result is sorted by. The default is the creation date. Beware that if you change this, your result pagination might be inconsistent.

filters?array<|>

Filters define the criteria to query for.

Response Body

Success

application/json
  1. response
pagination?

Pagination contains the total number of project roles matching the query and the applied limit.

projectRoles?array<>

ProjectRoles is a list of roles matching the query.

Example Request
curl -X POST 'https://example.com/zitadel.project.v2.ProjectService/ListProjectRoles' \  -H 'Connect-Protocol-Version: 1' \  -H 'Content-Type: application/json' \  -d '{  "projectId": "string"}'
Example Response
{  "pagination": {    "totalResult": 0,    "appliedLimit": 0  },  "projectRoles": [    {      "projectId": "string",      "key": "string",      "creationDate": "2023-01-15T01:30:15.01Z",      "changeDate": "2023-01-15T01:30:15.01Z",      "displayName": "string",      "group": "string"    }  ]}

Was this page helpful?