---
title: "List team memberships for principal"
url: "https://nov18-dev.movespot.fyi/apis/internal-pdp-policy-access-point-api-v1-1/versions/38c51035-26bf-4e85-b665-4a699daed68a/operations/listPrincipalTeamMemberships"
---

> Full API specification: https://nov18-dev.movespot.fyi/apis/internal-pdp-policy-access-point-api-v1-1/versions/38c51035-26bf-4e85-b665-4a699daed68a.md

# List team memberships for principal

`GET` `/{principalType}/{principalId}/team-memberships`

Operation ID: `listPrincipalTeamMemberships`

Returns a paginated list of teams the principal is a member of

## Path parameters

- `principalType` (string, required) - Type of principal
- `principalId` (string, uuid, required) - Unique identifier of the principal

## Responses

- `200` - Successful response

## OpenAPI definition

```yaml
openapi: 3.0.3
info:
  title: Internal PDP Policy Access Point API v1
  version: 1.0.2
servers:
  - url: http://authorization-pap-api.kauth.svc.cluster.local:8000/v1
    description: Konnect cluster
paths:
  /{principalType}/{principalId}/team-memberships:
    parameters:
      - name: principalType
        in: path
        description: Type of principal
        required: true
        schema:
          $ref: "#/components/schemas/IndividualPrincipalType"
      - name: principalId
        in: path
        description: Unique identifier of the principal
        required: true
        schema:
          $ref: "#/components/schemas/PrincipalId"
    get:
      operationId: listPrincipalTeamMemberships
      summary: List team memberships for principal
      description: Returns a paginated list of teams the principal is a member of
      responses:
        "200":
          description: Successful response
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/PagedTeamMembershipResponse"
      tags:
        - Team Memberships
security:
  - konnectAccessToken: []
components:
  schemas:
    IndividualPrincipalType:
      description: Individual principal types (users, system-accounts, portal-developers)
      type: string
      enum:
        - users
        - system-accounts
        - portal-developers
    PrincipalId:
      description: Contains a unique identifier used for a principal (user, system
        account, portal developer, etc.)
      type: string
      format: uuid
      example: 5f9fd312-a987-4628-b4c5-bb4f4fddd5f7
    PagedTeamMembershipResponse:
      type: object
      properties:
        meta:
          $ref: "#/components/schemas/PaginatedMeta"
        data:
          type: array
          items:
            $ref: "#/components/schemas/TeamMembership"
      required:
        - meta
        - data
    PaginatedMeta:
      description: returns the pagination information
      type: object
      properties:
        page:
          $ref: "#/components/schemas/PageMeta"
      required:
        - page
      title: PaginatedMeta
    TeamMembership:
      description: Record denoting a subject's membership in a team
      type: object
      properties:
        id:
          description: Unique identifier of the team
          type: string
          format: uuid
      required:
        - id
    PageMeta:
      description: Contains pagination query parameters and the total number of
        objects returned.
      type: object
      properties:
        number:
          type: number
          example: 1
        size:
          type: number
          example: 10
        total:
          type: number
          example: 100
      required:
        - number
        - size
        - total
  securitySchemes:
    konnectAccessToken:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >
        The Konnect access token is meant to be used by the Konnect dashboard
        and the decK CLI authenticate with.
```
