B2BMembersClient

B2B member management methods for the authenticated member and organization members.

Properties

Link copied to clipboard

Admin-level member management methods requiring elevated permissions.

Functions

Link copied to clipboard
abstract suspend fun create(request: IOrganizationsMemberCreateParameters): OrganizationsMemberCreateResponse

Creates a new member in the organization. Calls the POST /sdk/v1/b2b/organizations/members endpoint. Requires an active session and appropriate RBAC permissions.

Link copied to clipboard
abstract suspend fun deleteMFAPhoneNumber(): OrganizationsMemberDeleteMFAPhoneNumberResponse

Removes the MFA phone number from the currently authenticated member's account. Calls the DELETE /sdk/v1/b2b/organizations/members/deletePhoneNumber endpoint. Requires an active session.

Link copied to clipboard
abstract suspend fun deleteMFATOTP(): OrganizationsMemberDeleteMFATOTPResponse

Removes the TOTP authenticator registration from the currently authenticated member's account. Calls the DELETE /sdk/v1/b2b/organizations/members/deleteTOTP endpoint. Requires an active session.

Link copied to clipboard
abstract suspend fun me(): B2BGetMeResponse

Returns the currently authenticated member and their organization. Calls the GET /sdk/v1/b2b/organizations/members/me endpoint. Requires an active session.

Link copied to clipboard
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.

Link copied to clipboard
abstract suspend fun startEmailUpdate(request: IOrganizationsMemberStartEmailUpdateParameters): OrganizationsMemberStartEmailUpdateResponse

Initiates an email address update for the currently authenticated member by sending a verification link to the new address. Calls the POST /sdk/v1/b2b/organizations/members/start_email_update endpoint.

Link copied to clipboard
abstract suspend fun unlinkRetiredEmail(request: IOrganizationsMemberUnlinkRetiredEmailParameters): OrganizationsMemberUnlinkRetiredEmailResponse

Removes a retired (previously used) email address from the currently authenticated member's account. Calls the POST /sdk/v1/b2b/organizations/members/unlink_retired_email endpoint.

Link copied to clipboard
abstract suspend fun update(request: IOrganizationsMemberUpdateParameters): OrganizationsMemberUpdateResponse

Updates profile fields on the currently authenticated member. Calls the PUT /sdk/v1/b2b/organizations/members/update endpoint. Requires an active session.