Skip to content

Atlassian: Get all application roles

Atlassian applicationRoles.getAllApplicationRoles: arguments, response, policy and SDK examples.

← Application roles operations · Get started

Operation atlassian.getallapplicationroles

Provider route: GET /{cloudId}/rest/api/3/applicationrole. Alter supplies the connection’s credentials and routing.

Install @alter-ai/sdk @alter-ai/atlassian with npm, or alter-sdk-atlassian with pip. Supply your connected customer’s grant ID and the arguments described below.

import { App } from "@alter-ai/sdk";
import { AtlassianIntegration } from "@alter-ai/atlassian";
async function execute(input: Parameters<AtlassianIntegration["applicationRoles"]["getAllApplicationRoles"]>[0]) {
const app = new App({ apiKey: process.env.ALTER_API_KEY! });
try {
const provider = new AtlassianIntegration(app, { grantId: process.env.PROVIDER_GRANT_ID! });
const call = await provider.applicationRoles.getAllApplicationRoles(input);
const result = await call.wait();
return result.bodyJson();
} finally {
await app.close();
}
}
import os
from alter_sdk import App
from alter_sdk_atlassian import AtlassianIntegration
async def execute(arguments):
async with App(api_key=os.environ["ALTER_API_KEY"]) as app:
provider = AtlassianIntegration(app, {"grant_id": os.environ["PROVIDER_GRANT_ID"]})
call = await provider.application_roles.get_all_application_roles(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
pathobjectRequired within parentAdditional keys: not allowed
path.cloudIdstringRequired within parentPattern: ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$

Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.

FieldTypePresenceDescription and constraints
$arrayRoot
$[]ModelEach itemExpand Get application role — response body

Referenced models: Get application role — response body

Get application role — response body
FieldTypePresenceDescription and constraints
$objectRootDetails of an application role.
defaultGroupsJSONOptional
defaultGroups (anyOf 1)arrayAlternativeThe 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.
Unique items: true
defaultGroups (anyOf 1)[]stringEach item
defaultGroups (anyOf 2)nullAlternative
defaultGroupsDetailsJSONOptional
defaultGroupsDetails (anyOf 1)arrayAlternativeThe groups that are granted default access for this application role.
defaultGroupsDetails (anyOf 1)[]ModelEach itemExpand Get user groups — response body — item
defaultGroupsDetails (anyOf 2)nullAlternative
definedJSONOptional
defined (anyOf 1)booleanAlternativeDeprecated.
defined (anyOf 2)nullAlternative
groupDetailsJSONOptional
groupDetails (anyOf 1)arrayAlternativeThe groups associated with the application role.
groupDetails (anyOf 1)[]ModelEach itemExpand Get user groups — response body — item
groupDetails (anyOf 2)nullAlternative
groupsJSONOptional
groups (anyOf 1)arrayAlternativeThe groups associated with the application role. As a group's name can change, use of `groupDetails` is recommended to identify a groups.
Unique items: true
groups (anyOf 1)[]stringEach item
groups (anyOf 2)nullAlternative
hasUnlimitedSeatsJSONOptional
hasUnlimitedSeats (anyOf 1)booleanAlternative
hasUnlimitedSeats (anyOf 2)nullAlternative
keyJSONOptional
key (anyOf 1)stringAlternativeThe key of the application role.
key (anyOf 2)nullAlternative
nameJSONOptional
name (anyOf 1)stringAlternativeThe display name of the application role.
name (anyOf 2)nullAlternative
numberOfSeatsJSONOptional
numberOfSeats (anyOf 1)JSONAlternative
numberOfSeats (anyOf 1) (anyOf 1)integerAlternativeThe maximum count of users on your license.
Format: int32
numberOfSeats (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
numberOfSeats (anyOf 2)nullAlternative
platformJSONOptional
platform (anyOf 1)booleanAlternativeIndicates if the application role belongs to Jira platform (`jira-core`).
platform (anyOf 2)nullAlternative
remainingSeatsJSONOptional
remainingSeats (anyOf 1)JSONAlternative
remainingSeats (anyOf 1) (anyOf 1)integerAlternativeThe count of users remaining on your license.
Format: int32
remainingSeats (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
remainingSeats (anyOf 2)nullAlternative
selectedByDefaultJSONOptional
selectedByDefault (anyOf 1)booleanAlternativeDetermines whether this application role should be selected by default on user creation.
selectedByDefault (anyOf 2)nullAlternative
userCountJSONOptional
userCount (anyOf 1)JSONAlternative
userCount (anyOf 1) (anyOf 1)integerAlternativeThe number of users counting against your license.
Format: int32
userCount (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
userCount (anyOf 2)nullAlternative
userCountDescriptionJSONOptional
userCountDescription (anyOf 1)stringAlternativeThe [type of users](https://confluence.atlassian.com/x/lRW3Ng) being counted against your license.
userCountDescription (anyOf 2)nullAlternative

Referenced models: Get user groups — response body — item

Get user groups — response body — item
FieldTypePresenceDescription and constraints
$objectRootDetails about a group.
groupIdJSONOptional
groupId (anyOf 1)JSONAlternative
groupId (anyOf 1) (anyOf 1)stringAlternativeThe ID of the group, which uniquely identifies the group across all Atlassian products. For example, *952d12c3-5b5b-4d04-bb32-44d383afc4b2*.
groupId (anyOf 1) (anyOf 2)nullAlternative
groupId (anyOf 2)nullAlternative
nameJSONOptional
name (anyOf 1)stringAlternativeThe name of group.
name (anyOf 2)nullAlternative
selfJSONOptional
self (anyOf 1)stringAlternativeThe URL for these group details.
Format: uri
Read only: true
self (anyOf 2)nullAlternative

SDK function policy ID: atlassian.getallapplicationroles. Catalog operation: getallapplicationroles. Rules can name either ID; function rules distinguish managed calls and conservatively cover raw calls sharing the route. Existing grant permissions and policy rules apply. wait() returns an immediate result or waits for a required approval; it never approves the request itself. Persist the approval ID to resume after a restart.

Provider errors retain their response; JSON decoding raises ProviderAPIError for provider failures. ManagedOperationError identifies contract/input/retention errors. See error handling and provider-specific behavior. Sensitive input may be refused before approval storage. A decoding error never resubmits a write.

Required provider scopes: ["manage:jira-configuration"]

Official provider source

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.