getConnection

abstract suspend fun getConnection(): B2BGetSCIMConnectionResponse

Retrieves the organization's SCIM connection. Calls the GET /sdk/v1/b2b/scim endpoint. Requires an active session.

Kotlin:

val response = StytchB2B.scim.getConnection()

iOS:

let response = try await StytchB2B.scim.getConnection()

React Native:

StytchB2B.scim.getConnection()

Return

B2BGetSCIMConnectionResponse containing the organization's SCIM connection.

Throws

StytchError

if no SCIM connection exists or the request fails.

if the coroutine is cancelled.