B2BMembersAdminClient

Admin-level operations on organization members, requiring appropriate RBAC permissions.

Functions

Link copied to clipboard
abstract suspend fun delete(memberId: String): OrganizationsAdminMemberDeleteResponse

Permanently deletes the specified member from the organization. Calls the DELETE /sdk/v1/b2b/organizations/members/{member_id} endpoint. Requires an active session and appropriate RBAC permissions. This action is irreversible.

Link copied to clipboard
abstract suspend fun deleteMFAPhoneNumber(memberId: String): OrganizationsAdminMemberDeleteMFAPhoneNumberResponse

Removes the MFA phone number from the specified member's account. Calls the DELETE /sdk/v1/b2b/organizations/members/mfa_phone_numbers/{member_id} endpoint. Requires an active session and appropriate RBAC permissions.

Link copied to clipboard
abstract suspend fun deleteMFATOTP(memberId: String): OrganizationsAdminMemberDeleteMFATOTPResponse

Removes the TOTP authenticator registration from the specified member's account. Calls the DELETE /sdk/v1/b2b/organizations/members/totp/{member_id} endpoint. Requires an active session and appropriate RBAC permissions.

Link copied to clipboard
abstract suspend fun deletePassword(memberPasswordId: String): OrganizationsAdminMemberDeletePasswordResponse

Deletes the specified password credential from the organization. Calls the DELETE /sdk/v1/b2b/organizations/members/passwords/{member_password_id} endpoint. Requires an active session and appropriate RBAC permissions.

Link copied to clipboard
abstract suspend fun reactivate(memberId: String): OrganizationsAdminMemberReactivateResponse

Reactivates a previously deleted member in the organization, restoring their access. Calls the PUT /sdk/v1/b2b/organizations/members/{member_id}/reactivate endpoint. Requires an active session and appropriate RBAC permissions.

Link copied to clipboard
abstract suspend fun startEmailUpdate(memberId: String, request: IOrganizationsAdminMemberStartEmailUpdateParameters): OrganizationsAdminMemberStartEmailUpdateResponse

Initiates an email address update for the specified member by sending a verification link to the new address. Calls the POST /sdk/v1/b2b/organizations/members/{member_id}/start_email_update endpoint. Requires an active session and appropriate RBAC permissions.

Link copied to clipboard
abstract suspend fun unlinkRetiredEmail(memberId: String, request: IOrganizationsAdminMemberUnlinkRetiredEmailParameters): OrganizationsAdminMemberUnlinkRetiredEmailResponse

Removes a retired (previously used) email address from the specified member's account. Calls the POST /sdk/v1/b2b/organizations/members/{member_id}/unlink_retired_email endpoint. Requires an active session and appropriate RBAC permissions.

Link copied to clipboard
abstract suspend fun update(memberId: String, request: IOrganizationsAdminMemberUpdateParameters): OrganizationsAdminMemberUpdateResponse

Updates profile fields on any member in the organization. Calls the PUT /sdk/v1/b2b/organizations/members/{member_id} endpoint. Requires an active session and appropriate RBAC permissions.