Skip to content
atlassian-dc-mcp
Esc
↑↓navigate↵open⌘Jpreview

Get application role by key

Returns the ApplicationRole with passed key if it exists.

GET/api/2/applicationrole/{key}
Authorization
AuthorizationBasic auth · headerrequired

In order to use basic authorization, provide username:password Base64 encoded in the 'Authorization' header.

Path parameters
keystringrequired

the key of the role to use.

Responses
200

Returns the ApplicationRole if it exists.

defaultGroupsstring[]
definedboolean
groupsstring[]
hasUnlimitedSeatsboolean
keystring
namestring
numberOfSeatsinteger<int32>
platformboolean
remainingSeatsinteger<int32>
selectedByDefaultboolean
userCountinteger<int32>
userCountDescriptionstring
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.

Try it
Server
Authorization
Parameters
Request
curl -X GET 'http://jira.example.com/rest/api/2/applicationrole/string' \
  -H 'Authorization: Basic YOUR_CREDENTIALS' \
  -H 'Accept: application/json'
Response
{
  "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"
}

Was this page helpful?