search

abstract suspend fun search(request: IOrganizationsMemberSearchParameters): OrganizationsMemberSearchResponse

Searches for members within the organization matching the provided criteria. Calls the POST /sdk/v1/b2b/organizations/me/members/search endpoint. Requires an active session and appropriate RBAC permissions.

Kotlin:

StytchB2B.members.search(
OrganizationsMemberSearchParameters(cursor = "")
)

iOS:

let params = OrganizationsMemberSearchParameters(cursor: "")
let response = try await StytchB2B.members.search(params)

React Native:

StytchB2B.members.search({ cursor: "" })

Return

OrganizationsMemberSearchResponse containing a page of matching members.

Parameters

request
  • IOrganizationsMemberSearchParameters

  • cursor — Pagination cursor from a previous response; pass an empty string to start from the beginning.

  • limit? — Maximum number of members to return per page.

  • query? — Search query to filter results.

Throws

StytchError

if the request fails.

if the coroutine is cancelled.