OrganizationMembers

An interface that provides methods for performing create, update, delete, reactivate, and search operations on an Organization's members

Types

Link copied to clipboard
data class CreateMemberParameters @JvmOverloads constructor(    val emailAddress: String,     val name: String? = null,     val isBreakGlass: Boolean? = null,     val mfaEnrolled: Boolean? = null,     val mfaPhoneNumber: String? = null,     val untrustedMetadata: Map<String, Any?>? = null,     val createMemberAsPending: Boolean? = null,     val roles: List<String>? = null)

Data class used for wrapping the parameters necessary for creating a user

Link copied to clipboard
data class SearchParameters @JvmOverloads constructor(    val cursor: String? = null,     val limit: Int? = null,     val query: Organization.OrganizationMembers.SearchQuery? = null)

Data class used for wrapping the parameters necessary to search members

Link copied to clipboard
data class SearchQuery(val operator: SearchOperator, val operands: List<Organization.OrganizationMembers.SearchQueryOperand>)

A data class representing conditions for a query

Link copied to clipboard
sealed class SearchQueryOperand

A data class representing a Search Query Operand, which contains all of the filters and values to apply to your search query.

Link copied to clipboard
data class UpdateMemberParameters @JvmOverloads constructor(    val memberId: String,     val emailAddress: String? = null,     val name: String? = null,     val isBreakGlass: Boolean? = null,     val mfaEnrolled: Boolean? = null,     val mfaPhoneNumber: String? = null,     val untrustedMetadata: Map<String, Any?>? = null,     val roles: List<String>? = null,     val preserveExistingSessions: Boolean? = null,     val defaultMfaMethod: MfaMethod? = null)

Data class used for wrapping the parameters necessary for creating a user

Functions

Link copied to clipboard

Creates a Member. The caller must have permission to call this endpoint via the project's RBAC policy & their role assignments.

Link copied to clipboard

Creates a Member. The caller must have permission to call this endpoint via the project's RBAC policy & their role assignments.

Link copied to clipboard
abstract suspend fun delete(memberId: String): DeleteMemberResponse
abstract fun delete(memberId: String, callback: (DeleteMemberResponse) -> Unit)

Deletes a Member. The caller must have permission to call this endpoint via the project's RBAC policy & their role assignments.

Link copied to clipboard

Deletes a Member. The caller must have permission to call this endpoint via the project's RBAC policy & their role assignments.

Link copied to clipboard
abstract fun deleteMemberAuthenticationFactor(    memberId: String,     authenticationFactor: MemberAuthenticationFactor,     callback: (DeleteOrganizationMemberAuthenticationFactorResponse) -> Unit)

Deletes a MemberAuthenticationFactor from the currently authenticated member

Deletes a MemberAuthenticationFactor from the currently authenticated member

Link copied to clipboard
abstract suspend fun reactivate(memberId: String): ReactivateMemberResponse
abstract fun reactivate(memberId: String, callback: (ReactivateMemberResponse) -> Unit)

Reactivates a deleted Member's status and its associated email status (if applicable) to active. The caller must have permission to call this endpoint via the project's RBAC policy & their role assignments.

Link copied to clipboard

Reactivates a deleted Member's status and its associated email status (if applicable) to active. The caller must have permission to call this endpoint via the project's RBAC policy & their role assignments.

Link copied to clipboard

Search for Members from the caller's organization. Submitting an empty query returns all non-deleted Members. All fuzzy search filters require a minimum of three characters. The caller must have permission to call this endpoint via the project's RBAC policy & their role assignments.

Link copied to clipboard

Search for Members from the caller's organization. Submitting an empty query returns all non-deleted Members. All fuzzy search filters require a minimum of three characters. The caller must have permission to call this endpoint via the project's RBAC policy & their role assignments.

Link copied to clipboard

Updates a Member. The caller must have permission to call this endpoint via the project's RBAC policy & their role assignments.

Link copied to clipboard

Updates a Member. The caller must have permission to call this endpoint via the project's RBAC policy & their role assignments.