v5

latestOpenAPI 3.0.1Apache 2.02026-08-046169702.3 MB
Project roles

Get project role for project

Returns a project role's details and actors associated with the project. The list of actors is sorted by display name.

To check whether a user belongs to a role based on their group memberships, use Get user with the groups expand parameter selected. Then check whether the user keys and groups match with the actors returned for the project.

This operation can be accessed anonymously.

Permissions required: Administer Projects project permission for the project or Administer Jira global permission.

get/rest/api/3/project/{projectIdOrKey}/role/{id}

Path parameters

projectIdOrKeystring required

The project ID or project key (case sensitive).

idinteger required

The ID of the project role. Use Get all project roles to get a list of project role IDs.

Query parameters

excludeInactiveUsersboolean

Exclude inactive users.

Response

Returned if the request is successful.

adminboolean

Whether this role is the admin role for the project.

currentUserRoleboolean

Whether the calling user is part of this role.

defaultboolean

Whether this role is the default role for the project

descriptionstring

The description of the project role.

idinteger

The ID of the project role.

namestring

The name of the project role.

roleConfigurableboolean

Whether the roles are configurable for this project.

selfstring uri

The URL the project role details.

translatedNamestring

The translated name of the project role.