---
title: "List all trusted IdPs"
method: GET
path: "/v2/directories/{directoryId}/trusted-idps"
tags: ["Trusted IdPs"]
---

# List all trusted IdPs

`GET /v2/directories/{directoryId}/trusted-idps`

## Request

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

List all trusted IdPs for a given directory.

## Path parameters

- `directoryId` 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.

## Response `200`

List of trusted IdPs

- ListTrustedIdps: A paginated list of trusted IdPs.
  - `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` TrustedIdp[], required
    - `id` string, uuid, required: The ID of the trusted IdP.
    - `issuer_url` string, uri, required: The issuer URL of the trusted IdP. Unique per vault.
    - `display_name` string, nullable: A human-friendly display name for the trusted IdP, distinct from its unique `issuer_url`.
    - `jwks_uri` string, uri, nullable, required: JWKS URI of the trusted IdP. Overrides OIDC discovery when set.
    - `jit_provisioning_enabled` boolean, required: Whether a principal is provisioned just-in-time on first exchange when no principal matches the subject_token's issuer and its identifier claim — `sub` by default, or the claim `jit.mapping.identifier` names.
    - `vault_access_enabled` boolean, required: Whether vault token exchange is enabled for principals provisioned by this trusted IdP. Defaults to false; it can be set on create, is reset to false when omitted in the replace operation, and can be changed via the patch operation.
    - `jit` TrustedIdpJit: Just-in-time provisioning configuration for this trusted IdP. The `mapping` decides how the OIDC claims a client presents to fetch-principal shape a principal provisioned just in time.
      - `mapping` TrustedIdpJitMapping: How the OIDC claims a client presents to fetch-principal map onto a principal provisioned just in time for this trusted IdP. Every field names one of those claims and is optional; a claim the mapping names but the lookup does not carry contributes nothing — except `identifier`, which the vault token exchange uses to look up the principal, and whose absence from the subject_token fails the exchange. An absent `mapping` — or an absent `jit` — means no claim mapping: provisioned principals get empty metadata and the lookup's claim value as display name.
        - `metadata` object: Maps a principal metadata key to the name of the claim whose value populates it: `metadata[key] = claims[claim]`, values narrowed to the shapes the metadata render paths accept. At most 64 entries.
        - `email` string: Name of the claim whose string value is attached to the provisioned principal as a custom identity keyed `email`. When a principal already carries it, that principal adopts the looked-up identity instead of a new one being provisioned.
        - `groups` string: Name of the claim carrying the names of the groups the provisioned principal joins — a string is one group, an array is many. Groups that do not exist yet are created. At most 100 groups per token.
        - `display_name` string: Name of the claim whose string value becomes the provisioned principal's display name. When absent from the token, the lookup's claim value is used instead.
        - `identifier` string: Name of the claim whose string value identifies the principal: the principal's OIDC identity keys on it, and an exchange looks the principal up by it. Defaults to `sub`. Set it when the IdP keys principals on another claim — Entra ID tokens, for example, carry the immutable object id in `oid`. The claim's value must identify one principal. When the claim is absent from the token, the lookup fails. Changing `identifier` re-keys existing principals' OIDC identities: they stop resolving, and the next exchange provisions anew or fails.
    - `created_at` string, date-time, required: An ISO-8601 timestamp representation of entity creation date.
    - `updated_at` string, date-time, required: An ISO-8601 timestamp representation of entity update date.

## Other responses

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

## Changes

- **2026-11-12** `d8bd04cfbaf7`: 1 info
  - added the optional property `data/items/jit/mapping/identifier` to the response with the `200` status
- **2026-11-03** `72599e2b1b09`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/kong/apis/konnect-api-go-sdk/changes/v2/directories/:directoryId/trusted-idps/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)
