Package com.stytch.sdk.b2b.organization
The Organization.kt interface provides methods for retrieving, updating, and deleting the current authenticated user's organization and creating, updating, deleting, reactivating, and searching an organizations members
Call the StytchB2BClient.organization.get() method to retrieve the members current organization. This request will make a network call and return the freshest information.
Call the StytchB2BClient.organization.getSync() method to retrieve the members current organization. This request will not make a network call and returns the cached information.
Call the StytchB2BClient.organization.update() method to update the members current organization.
Call the StytchB2BClient.organization.delete() method to delete the members current organization. All Members of the Organization will also be deleted.
Call the StytchB2BClient.organization.members.create() method to create a new member in an organization.
Call the StytchB2BClient.organization.members.update() method to update a specific member from an organization.
Call the StytchB2BClient.organization.members.delete() method to delete a specific member from an organization.
Call the StytchB2BClient.organization.members.reactivate() method to reactivate a specific member from an organization.
Call the StytchB2BClient.organization.members.deleteMemberAuthenticationFactor() method to delete an authentication factor from a member of the organization.
Call the StytchB2BClient.organization.members.search() method to search an organizations members.
Call the StytchB2BClient.organization.onChange() method with a callback to be triggered on changes to the underlying organization. Alternatively, you can listen directly to the flow using the StytchB2BClient.organization.onChange StateFlow.
See: Description
-
Class Summary Class Description UpdateOrganizationParameters Data class used for wrapping parameters used for making an Organization update call CreateMemberParameters Data class used for wrapping the parameters necessary for creating a user UpdateMemberParameters Data class used for wrapping the parameters necessary for creating a user SearchParameters Data class used for wrapping the parameters necessary to search members SearchQuery A data class representing conditions for a query MemberIds An operand for searching based on member_ids MemberEmails An operand for searching based on member_emails MemberEmailFuzzy An operand for searching based on member_email_fuzzy MemberIsBreakingGlass An operand for searching based on member_is_breakglass Statuses An operand for searching based on statuses MemberMFAPhoneNumbers An operand for searching based on member_mfa_phone_numbers MemberMFAPhoneNumberFuzzy An operand for searching based on member_mfa_phone_number_fuzzy MemberPasswordExists An operand for searching based on member_password_exists MemberRoles An operand for searching based on member_roles Custom An operand for searching based on custom filters SearchQueryOperand A data class representing a Search Query Operand, which contains all of the filters and values to apply to your search query. -
Interface Summary Interface Description OrganizationMembers An interface that provides methods for performing create, update, delete, reactivate, and search operations on an Organization's members Organization The Organization interface provides methods for retrieving, updating, and deleting the current authenticated user's organization and creating, updating, deleting, reactivating, and searching an organizations members