---
ai:
  exclude: true
search:
  tags:
    - applicationrole
    - GET
seo:
  description: >-
    Returns the ApplicationRole with passed key… Reference for the GET
    /api/2/applicationrole/{key} endpoint in the Jira Software Data Center REST
    API Reference.
sidebar:
  label: Get application role by key
  badge: GET
title: Get application role by key
type: openapi-operation
---
Returns the ApplicationRole with passed key if it exists.

`GET /api/2/applicationrole/{key}`

**Responses**

- `200` — Returns the ApplicationRole if it exists.
- `401` — Returned if the current user is not authenticated.
- `403` — Returned if the current user is not an administrator.
- `404` — Returned if the role does not exist.

Response example, 200:

```json
{
  "defaultGroups": [
    "jira-software-users"
  ],
  "defined": false,
  "groups": [
    "jira-software-users",
    "jira-testers"
  ],
  "hasUnlimitedSeats": false,
  "key": "jira-software",
  "name": "Jira Software",
  "numberOfSeats": 10,
  "platform": false,
  "remainingSeats": 5,
  "selectedByDefault": false,
  "userCount": 5,
  "userCountDescription": "5 developers"
}
```
