---
title: "List all identities for a principal"
method: GET
path: "/v2/directories/{directoryId}/principals/{principalId}/identities"
tags: ["KongPrincipalIdentity"]
---

# List all identities for a principal

`GET /v2/directories/{directoryId}/principals/{principalId}/identities`

## Request

- Base URL: `https://global.api.konghq.com`
- URL: `https://global.api.konghq.com/v2/directories/{directoryId}/principals/{principalId}/identities`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer
  - HTTP bearer
  - HTTP bearer

Retrieves a paginated list of all identities associated with the specified principal.

## Path parameters

- `directoryId` string, uuid, required
- `principalId` string, uuid, required

## Query parameters

- `page` CursorPageParameters
  - `size` integer: The number of items included per page.
  - `after` string: Cursor param specifying the page (i.e. the next page) of data returned.
  - `before` string: Cursor param specifying the page (i.e. the previous page) of data returned.
- `sort` string: The `asc` suffix is optional as the default sort order is ascending. The `desc` suffix is used to specify a descending order. Multiple sort attributes may be provided via a comma separated list. JSONPath notation may be used to specify a sub-attribute (eg: 'foo.bar desc').
- `filter` object
  - `type` object: Filter using **one** of the following operators: `eq`, `oeq`
    - `eq` string: The field exactly matches the provided value.
    - `oeq` string: The field matches any of the provided values.

## Response `200`

List of principal identities

- ListKongPrincipalIdentities
  - `meta` CursorMeta, required: Pagination metadata.
    - `page` CursorMetaPage, required
      - `first` string, path: URI to the first page
      - `last` string, path: URI to the last page
      - `next` string, path, nullable, required: URI to the next page
      - `previous` string, path, nullable, required: URI to the previous page
      - `size` number, required: Requested page size
  - `data` KongPrincipalIdentity[], required
    - union
      - KongPrincipalIdentityOIDCResponse
        - [`KongPrincipalIdentityResponseBase`](https://skmtc.dev/kong/apis/konnect-api-go-sdk/revisions/3b071797f6e4/schema?at=%2Fcomponents%2Fschemas%2FKongPrincipalIdentityResponseBase)
        - object
          - `type` 'oidc', required
          - `issuer` string, required
          - `claim` object, required
            - `name` string, required
            - `value` string, required
      - KongPrincipalIdentityAuthServerClientResponse
        - [`KongPrincipalIdentityResponseBase`](https://skmtc.dev/kong/apis/konnect-api-go-sdk/revisions/3b071797f6e4/schema?at=%2Fcomponents%2Fschemas%2FKongPrincipalIdentityResponseBase)
        - object
          - `type` 'auth_server_client', required
          - `auth_server_id` string, uuid, required
          - `client_id` string, required
      - KongPrincipalIdentityCPConsumerResponse
        - [`KongPrincipalIdentityResponseBase`](https://skmtc.dev/kong/apis/konnect-api-go-sdk/revisions/3b071797f6e4/schema?at=%2Fcomponents%2Fschemas%2FKongPrincipalIdentityResponseBase)
        - object
          - `type` 'control_plane_consumer', required
          - `control_plane_id` string, required
          - `consumer_id` string, required
          - `workspace_id` string
          - `control_plane_type` 'api_gateway' | 'ai_gateway', required: The kind of control plane the linked consumer was found in.
      - KongPrincipalIdentityCustomResponse
        - [`KongPrincipalIdentityResponseBase`](https://skmtc.dev/kong/apis/konnect-api-go-sdk/revisions/3b071797f6e4/schema?at=%2Fcomponents%2Fschemas%2FKongPrincipalIdentityResponseBase)
        - object
          - `type` 'custom', required
          - `key` string, required
          - `value` string, required

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found

## Changes

- **2026-11-16** `a209c8bfa7b7`: 8 info
  - the `type` response property const value `auth_server_client` was added for the status `200`
  - the `type` response property const value `control_plane_consumer` was added for the status `200`
  - the `type` response property const value `custom` was added for the status `200`
  - the `type` response property const value `oidc` was added for the status `200`
  - …4 more
- **2026-11-12** `d8bd04cfbaf7`: 8 breaking, 4 warning, 4 info
  - the `type` response property const value `auth_server_client` was removed for the status `200`
  - the `type` response property const value `control_plane_consumer` was removed for the status `200`
  - the `type` response property const value `custom` was removed for the status `200`
  - the `type` response property const value `oidc` was removed for the status `200`
  - …12 more
- **2026-11-05** `ff8439091e5f`: 8 info
  - the `type` response property const value `auth_server_client` was added for the status `200`
  - the `type` response property const value `control_plane_consumer` was added for the status `200`
  - the `type` response property const value `custom` was added for the status `200`
  - the `type` response property const value `oidc` was added for the status `200`
  - …4 more
- …earlier changes not shown

[Operation history](https://skmtc.dev/kong/apis/konnect-api-go-sdk/changes/v2/directories/:directoryId/principals/:principalId/identities/get.md)

---

[API](https://skmtc.dev/kong/apis/konnect-api-go-sdk.md) - [All operations](https://skmtc.dev/kong/apis/konnect-api-go-sdk/llms.txt) - [OpenAPI document](https://skmtc.dev/kong/apis/konnect-api-go-sdk/revisions/3b071797f6e4?raw)
