---
title: "Get a trusted IdP"
method: GET
path: "/v2/directories/{directoryId}/trusted-idps/{trustedIdpId}"
tags: ["Trusted IdPs"]
---

# Get a trusted IdP

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

## Request

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

Get a trusted IdP for a directory.

## Path parameters

- `directoryId` string, uuid, required
- `trustedIdpId` string, uuid, required

## Response `200`

A trusted IdP

- TrustedIdp: A trusted external IdP for a token-vault enabled directory.
  - `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, nullable: 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, nullable: 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, nullable: 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, nullable: 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-20** `757a21fb79f2`: 1 info
  - added the optional property `jit/mapping/identifier` to the response with the `200` status
- **2026-11-05** `f018071a4515`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/kong/apis/konnect-api/changes/v2/directories/:directoryId/trusted-idps/:trustedIdpId/get.md)

---

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