Skip to Content
Xeonr Developer Docs

List Team Members

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

Lists a team's members with their team roles and per-application role names for the calling application. The calling subject must be a member (or the caller a service account of an entitled application).

Set applications to also return each member's role names on other applications, in roles_by_application. Those slugs are restricted the same way SetMemberApplicationRoles restricts its target: an auth:teams:app-roles caller may only name applications its client is bound to; auth:teams:manage may name any.

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
pageSize?integer

Maximum members to return; clamped to 500. Zero returns the first page at the default size rather than every member, so a large team cannot be fetched accidentally in one response.

Formatint32
Range0 <= value <= 500
pageToken?string

Cursor from the previous response's next_page_token.

Lengthlength <= 64
applications?array<>

Additional applications, by slug, whose role names to return in each member's roles_by_application. Restricted exactly as SetMemberApplicationRoles is: an auth:teams:app-roles caller may only name applications its client is bound to, while the broad auth:teams:manage tier may name any. A console managing several products needs this because the roles a member holds on a product cannot otherwise be read back, only written.

Itemsitems <= 32
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://auth.xeonr.io/xeonr.auth.api.v1.TeamsService/ListTeamMembers" \  -H "Connect-Protocol-Version: 1" \  -H "Connect-Timeout-Ms: 1000" \  -H "Content-Type: application/json" \  -d '{}'
{
  "members": [
    {
      "memberId": "urn:xeonr:auth:uid:user:123",
      "role": "TEAM_ROLE_UNSPECIFIED",
      "applicationRoles": [
        "string"
      ],
      "username": "string",
      "avatarUrl": "string",
      "joinedAt": "2023-01-15T01:30:15.01Z",
      "rolesByApplication": {
        "property1": {
          "roles": [
            "string"
          ],
          "inheritedRoles": [
            "string"
          ]
        },
        "property2": {
          "roles": [
            "string"
          ],
          "inheritedRoles": [
            "string"
          ]
        }
      },
      "inheritedApplicationRoles": [
        "string"
      ],
      "automation": true,
      "inheritedFrom": "urn:xeonr:auth:company:7c1e0f4a-2b3d-4e5f-8a9b-0c1d2e3f4a5b",
      "displayName": "John Doe"
    }
  ],
  "nextPageToken": "string"
}