{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/atlassian/json-schema/atlassian-application-role-schema.json",
  "title": "ApplicationRole",
  "description": "Details of an application role.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/atlassian-application-roles-api-openapi.yml#/components/schemas/ApplicationRole",
  "additionalProperties": false,
  "properties": {
    "defaultGroups": {
      "description": "The groups that are granted default access for this application role. As a group's name can change, use of `defaultGroupsDetails` is recommended to identify a groups.",
      "items": {
        "type": "string"
      },
      "type": "array",
      "uniqueItems": true
    },
    "defaultGroupsDetails": {
      "description": "The groups that are granted default access for this application role.",
      "items": {
        "$ref": "#/$defs/GroupName"
      },
      "type": "array"
    },
    "defined": {
      "description": "Deprecated.",
      "type": "boolean"
    },
    "groupDetails": {
      "description": "The groups associated with the application role.",
      "items": {
        "$ref": "#/$defs/GroupName"
      },
      "type": "array"
    },
    "groups": {
      "description": "The groups associated with the application role. As a group's name can change, use of `groupDetails` is recommended to identify a groups.",
      "items": {
        "type": "string"
      },
      "type": "array",
      "uniqueItems": true
    },
    "hasUnlimitedSeats": {
      "type": "boolean"
    },
    "key": {
      "description": "The key of the application role.",
      "type": "string"
    },
    "name": {
      "description": "The display name of the application role.",
      "type": "string"
    },
    "numberOfSeats": {
      "description": "The maximum count of users on your license.",
      "format": "int32",
      "type": "integer"
    },
    "platform": {
      "description": "Indicates if the application role belongs to Jira platform (`jira-core`).",
      "type": "boolean"
    },
    "remainingSeats": {
      "description": "The count of users remaining on your license.",
      "format": "int32",
      "type": "integer"
    },
    "selectedByDefault": {
      "description": "Determines whether this application role should be selected by default on user creation.",
      "type": "boolean"
    },
    "userCount": {
      "description": "The number of users counting against your license.",
      "format": "int32",
      "type": "integer"
    },
    "userCountDescription": {
      "description": "The [type of users](https://confluence.atlassian.com/x/lRW3Ng) being counted against your license.",
      "type": "string"
    }
  },
  "type": "object",
  "$defs": {
    "GroupName": {
      "additionalProperties": false,
      "description": "Details about a group.",
      "properties": {
        "groupId": {
          "description": "The ID of the group, which uniquely identifies the group across all Atlassian products. For example, *952d12c3-5b5b-4d04-bb32-44d383afc4b2*.",
          "type": [
            "string",
            "null"
          ]
        },
        "name": {
          "description": "The name of group.",
          "type": "string"
        },
        "self": {
          "description": "The URL for these group details.",
          "format": "uri",
          "readOnly": true,
          "type": "string"
        }
      },
      "type": "object"
    }
  }
}