---
title: "Get project roles for project"
method: GET
path: "/rest/api/2/project/{projectIdOrKey}/role"
tags: ["Project roles"]
---

# Get project roles for project

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

Returns a list of [project roles](https://support.atlassian.com/jira-cloud-administration/docs/manage-project-roles/) for the project returning the name and self URL for each role.

Note that all project roles are shared with all projects in Jira Cloud. See [Get all project roles](#api-rest-api-2-role-get) for more information.

This operation can be accessed anonymously.

**[Permissions](#permissions) required:** *Administer Projects* [project permission](https://confluence.atlassian.com/x/yodKLg) for any project on the site or *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg).

## Path parameters

- `projectIdOrKey` string, required

## Response `200`

Returned if the request is successful.

- object

## Other responses

- `401` — Returned if the authentication credentials are incorrect or missing or if the user lacks administrative permissions for the project.
- `404` — Returned if the project is not found or or if the user does not have administrative permissions for the project.

---

[API](https://skmtc.net/atlassian/apis/the-jira-cloud-platform-rest-api.md) · [All operations](https://skmtc.net/atlassian/apis/the-jira-cloud-platform-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/atlassian/the-jira-cloud-platform-rest-api/versions/a26541c2f8bd/schema)
