Skip to Content
Xeonr Developer Docs

List Assignable Application Roles

POST
/xeonr.auth.api.v1.TeamsService/ListTeamApplicationRoles

Lists the team-typed ApplicationRoles each named application defines, so a UI can offer what is assignable before calling SetMemberApplicationRoles. Only applications the team is entitled to are returned; application-typed roles (enrollments, admin checks, scope gates) are never listed here because they are not assignable within a team.

Read role_options, not applications: a role's name is the slug tokens match on, and role_options carries the display name to show beside it. applications is the same set as names alone, kept for callers that want nothing more.

Slugs are restricted as in SetMemberApplicationRoles. With no applications, the calling client's own application is described.

Required scopes: auth:teams:read

Authorization

AuthorizationBearer <token>

JWT access token obtained via OAuth2 flow or service account

In: header

Header Parameters

Connect-Protocol-Version?number

Define the version of the Connect protocol

Connect-Timeout-Ms?number

Define the timeout, in ms

Request Body

application/json

team?string
Length1 <= length <= 128
applications?array<>

Applications by slug; empty describes the calling client's own application.

Itemsitems <= 32
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://auth.xeonr.io/xeonr.auth.api.v1.TeamsService/ListTeamApplicationRoles" \  -H "Connect-Protocol-Version: 1" \  -H "Connect-Timeout-Ms: 1000" \  -H "Content-Type: application/json" \  -d '{}'
{
  "applications": {
    "property1": {
      "roles": [
        "string"
      ],
      "inheritedRoles": [
        "string"
      ]
    },
    "property2": {
      "roles": [
        "string"
      ],
      "inheritedRoles": [
        "string"
      ]
    }
  },
  "roleOptions": {
    "property1": {
      "roles": [
        {
          "name": "string",
          "displayName": "string",
          "description": "string"
        }
      ]
    },
    "property2": {
      "roles": [
        {
          "name": "string",
          "displayName": "string",
          "description": "string"
        }
      ]
    }
  }
}