getConnectionGroups

abstract suspend fun getConnectionGroups(request: IB2BGetSCIMConnectionGroupsParameters): B2BGetSCIMConnectionGroupsResponse

Retrieves the groups associated with the organization's SCIM connection. Calls the POST /sdk/v1/b2b/scim/groups endpoint. Requires an active session.

Kotlin:

StytchB2B.scim.getConnectionGroups(
B2BGetSCIMConnectionGroupsParameters(limit = 100)
)

iOS:

let params = B2BGetSCIMConnectionGroupsParameters(limit: 100)
let response = try await StytchB2B.scim.getConnectionGroups(params)

React Native:

StytchB2B.scim.getConnectionGroups({ limit: 100 })

Return

B2BGetSCIMConnectionGroupsResponse containing the SCIM groups.

Parameters

request
  • IB2BGetSCIMConnectionGroupsParameters

  • cursor? — Pagination cursor from a previous response.

  • limit? — Maximum number of groups to return.

Throws

StytchError

if the request fails.

if the coroutine is cancelled.