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).

Required scopes: auth:teams:read

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

Value in1
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
[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 "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"
    }
  ],
  "nextPageToken": "string"
}
{
  "code": "not_found",
  "message": "string",
  "details": [
    {
      "type": "string",
      "value": "string",
      "debug": {}
    }
  ]
}