---
ai:
  exclude: true
search:
  tags:
    - role
    - GET
seo:
  description: >-
    Get all the ProjectRoles available in Jira. Currently this… Reference for
    the GET /api/2/role endpoint in the Jira Software Data Center REST API
    Reference.
sidebar:
  label: Get all project roles
  badge: GET
title: Get all project roles
type: openapi-operation
---
Get all the ProjectRoles available in Jira. Currently this list is global.

`GET /api/2/role`

**Responses**

- `200` — Returns full details of the roles available in Jira.
- `401` — Returned if the user is not logged in.
- `403` — Returned if the requesting user is not an admin or a sysadmin.

Response example, 200:

```json
{
  "actors": [
    {
      "name": "jira-developers"
    }
  ],
  "description": "A project role that represents developers in a project",
  "id": 10360,
  "name": "Developers",
  "self": "http://www.example.com/jira/rest/api/2/project/MKY/role/10360"
}
```
