# `getSamlConnection()`, Deprecated

This method is deprecated. Use [`getEnterpriseConnection()`](/content/docs/reference/backend/enterprise-connections/get-enterprise-connection/index.html) instead.

Gets the given [`SamlConnection`](/content/docs/reference/backend/types/backend-saml-connection/index.html).

```typescript
function getSamlConnection(samlConnectionId: string): Promise<SamlConnection>
```

## [`GetOrganizationParams`](/content/docs/reference/backend/saml-connections/get-saml-connection#get-organization-params/index.html)

- **Name**: `samlConnectionId`  
  **Type**: `string`  
  **Description**: The ID of the SAML connection to retrieve.

## [Usage](/content/docs/reference/backend/saml-connections/get-saml-connection#usage/index.html)

Note

Using `clerkClient` varies based on the SDK you're using. Refer to the [overview](/content/docs/reference/backend/overview/index.html) for usage details, including guidance on [how to access the `userId` and other properties](/content/docs/reference/backend/overview#example-get-the-user-id-and-other-properties/index.html).

```javascript
const samlConnectionId = 'samlc_123'

const response = await clerkClient.samlConnections.getSamlConnection(samlConnectionId)
```

## [Backend API (BAPI) endpoint](/content/docs/reference/backend/saml-connections/get-saml-connection#backend-api-bapi-endpoint/index.html)

This method in the SDK is a wrapper around the BAPI endpoint `GET/saml_connections/{saml_connection_id}`. See the [BAPI reference⁠](/content/docs/reference/backend-api/tag/saml-connections/GET/saml_connections/%7Bsaml_connection_id%7D/index.html) for more information.
