---
title: "Retrieve an enterprise connection"
method: GET
path: "/enterprise_connections/{enterprise_connection_id}"
tags: ["Enterprise Connections"]
---

# Retrieve an enterprise connection

`GET /enterprise_connections/{enterprise_connection_id}`

Fetches the enterprise connection whose ID matches the provided `enterprise_connection_id` in the path.

## Path parameters

- `enterprise_connection_id` string, required

## Response `200`

An enterprise connection

- EnterpriseConnection
  - `object` 'enterprise_connection', required
  - `id` string, required — The enterprise connection ID
  - `name` string, required — The display name of the connection
  - `provider` string, required
  - `logo_public_url` string, nullable
  - `active` boolean, required — Whether the enterprise connection is active
  - `domains` string[], required — Domains associated with the enterprise connection
  - `organization_id` string, nullable — Organization ID when the connection is linked to an organization
  - `sync_user_attributes` boolean — Controls whether to update the user's attributes on each sign-in
  - `disable_additional_identifications` boolean — When true, users cannot add additional identifications when using this connection
  - `allow_organization_account_linking` boolean — Whether this connection supports account linking via organization membership
  - `custom_attributes` object[] — Custom attributes to map from the IdP to the user's profile via SSO or SCIM provisioning
    - `name` string, required — Display name for the custom attribute
    - `key` string, required — Key used to store the attribute in the user's public/private/unsafe metadata
    - `sso_path` string — Path to extract the attribute value from SSO claims (SAML assertions or OIDC claims)
    - `scim_path` string — GJSON path to extract the attribute value from SCIM user resources
    - `directory_path` string — GJSON path to extract the attribute value from directory sync user resources. Same value as `scim_path`.
    - `multi_valued` boolean — When true, the attribute supports multiple values; values from the IdP are written to public_metadata as an array. Defaults to false.
  - `saml_connection` object, nullable — Present when the enterprise connection uses SAML
    - `id` string — SAML connection ID
    - `name` string — SAML connection display name
    - `idp_entity_id` string, nullable — IdP entity ID (optional, when connection details are loaded)
    - `idp_sso_url` string, nullable — IdP SSO URL (optional, when connection details are loaded)
    - `idp_certificate` string, nullable — Primary IdP X.509 signing certificate (optional, when connection details are loaded)
    - `idp_certificate_issued_at` integer, nullable — Unix timestamp (milliseconds) of the primary certificate's X.509 NotBefore
    - `idp_certificate_expires_at` integer, nullable — Unix timestamp (milliseconds) of the primary certificate's X.509 NotAfter
    - `idp_certificates` object[] — Every IdP signing certificate the connection trusts, primary first. A SAML response verifies against any of them.
      - `certificate` string, required — The X.509 certificate, base64 DER without PEM armor
      - `issued_at` integer, nullable, required — Unix timestamp (milliseconds) of the X.509 NotBefore
      - `expires_at` integer, nullable, required — Unix timestamp (milliseconds) of the X.509 NotAfter
    - `idp_metadata_url` string, nullable — IdP metadata URL (optional, when connection details are loaded)
    - `acs_url` string, nullable — Assertion Consumer Service URL
    - `sp_entity_id` string, nullable — Service Provider entity ID
    - `sp_metadata_url` string, nullable — Service Provider metadata URL
    - `active` boolean — Whether the SAML connection is active
    - `allow_idp_initiated` boolean — Whether IdP-initiated SSO is allowed
    - `allow_subdomains` boolean — Whether subdomains are allowed for domain matching
    - `force_authn` boolean — Whether to force re-authentication
    - `login_hint` object — Configuration for the login_hint sent to the IdP on SSO sign-in
      - `mode` 'email_address' | 'custom_attribute' | 'off', required — Controls the login_hint sent to the IdP on SSO sign-in
      - `source` string — The user public_metadata key whose value is sent as the login_hint when mode is custom_attribute
  - `oauth_config` object, nullable — Present when the enterprise connection uses OIDC or EASIE
    - `id` string — OAuth config ID
    - `name` string — Custom OIDC provider display name
    - `provider_key` string — OAuth provider key (e.g. oidc_custom, oidc_ghe_*, oidc_gitlab_ent_*)
    - `client_id` string, nullable — OAuth client ID
    - `discovery_url` string, nullable — OIDC discovery URL
    - `auth_url` string, nullable — OAuth authorization endpoint URL (present when configured or resolved from discovery)
    - `token_url` string, nullable — OAuth token endpoint URL (present when configured or resolved from discovery)
    - `user_info_url` string, nullable — OIDC userinfo endpoint URL (present when configured or resolved from discovery)
    - `requires_pkce` boolean — Whether PKCE is required for this OAuth client
    - `logo_public_url` string, nullable — Logo URL for the provider
    - `created_at` integer — Unix timestamp in milliseconds when the config was created
    - `updated_at` integer — Unix timestamp in milliseconds when the config was last updated
  - `created_at` integer, required — Unix timestamp in milliseconds when the connection was created
  - `updated_at` integer, required — Unix timestamp in milliseconds when the connection was last updated

## Other responses

- `402` — Payment required
- `403` — Authorization invalid
- `404` — Resource not found

## Changes

- **2026-10-02** `65fe91cf191f` — 4 info
  - added the optional property `saml_connection/idp_certificate` to the response with the `200` status
  - added the optional property `saml_connection/idp_certificate_expires_at` to the response with the `200` status
  - added the optional property `saml_connection/idp_certificate_issued_at` to the response with the `200` status
  - added the optional property `saml_connection/idp_certificates` to the response with the `200` status
- **2026-08-12** `7d969765e49a` — 1 info
  - added the optional property `custom_attributes/items/directory_path` to the response with the `200` status
- **2026-07-30** `405105aa16c3` — 2 info
  - added the optional property `saml_connection/login_hint` to the response with the `200` status
  - added the required property `object` to the response with the `200` status
- **2026-06-08** `661534a68b4f` — 1 info
  - added the optional property `custom_attributes/items/multi_valued` to the response with the `200` status

[Change history](https://skmtc.dev/clerk/apis/clerk-backend-api/changes/enterprise_connections/:enterprise_connection_id/get.md)

---

[API](https://skmtc.dev/clerk/apis/clerk-backend-api.md) · [All operations](https://skmtc.dev/clerk/apis/clerk-backend-api/llms.txt) · [OpenAPI document](https://skmtc.dev/clerk/apis/clerk-backend-api/revisions/65fe91cf191f?raw)
