---
ai:
  exclude: true
search:
  tags:
    - project
    - GET
seo:
  description: >-
    Returns all roles in the given… Reference for the GET
    /api/2/project/{projectIdOrKey}/role endpoint in the Jira Software Data
    Center REST API Reference.
sidebar:
  label: Get all roles in project
  badge: GET
title: Get all roles in project
type: openapi-operation
---
Returns all roles in the given project Id or key, with links to full details on each role.

`GET /api/2/project/{projectIdOrKey}/role`

**Responses**

- `200` — List of roles and URIs to full details
- `404` — Returned if the project is not found, or the calling user does not have permission to view it.
