Interface Organization.OrganizationMembers

  • All Implemented Interfaces:

    
    public interface Organization.OrganizationMembers
    
                        

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

    • Constructor Detail

    • Method Detail

      • delete

         abstract StytchResult<OrganizationMemberDeleteResponseData> delete(String memberId)

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

        Parameters:
        memberId - The ID of the member to be deleted
        Returns:

        DeleteMemberResponse

      • delete

         abstract Unit delete(String memberId, Function1<StytchResult<OrganizationMemberDeleteResponseData>, Unit> callback)

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

        Parameters:
        memberId - The ID of the member to be deleted
        callback - a callback that receives a DeleteMemberResponse
      • deleteCompletable

         abstract CompletableFuture<StytchResult<OrganizationMemberDeleteResponseData>> deleteCompletable(String memberId)

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

        Parameters:
        memberId - The ID of the member to be deleted
        Returns:

        DeleteMemberResponse

      • reactivate

         abstract StytchResult<MemberResponseCommonData> reactivate(String memberId)

        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.

        Parameters:
        memberId - The ID of the member to be reactivated
        Returns:

        ReactivateMemberResponse

      • reactivate

         abstract Unit reactivate(String memberId, Function1<StytchResult<MemberResponseCommonData>, Unit> callback)

        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.

        Parameters:
        memberId - The ID of the member to be reactivated
        callback - a callback that receives a ReactivateMemberResponse
      • reactivateCompletable

         abstract CompletableFuture<StytchResult<MemberResponseCommonData>> reactivateCompletable(String memberId)

        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.

        Parameters:
        memberId - The ID of the member to be reactivated
        Returns:

        ReactivateMemberResponse

      • create

         abstract Unit create(Organization.OrganizationMembers.CreateMemberParameters parameters, Function1<StytchResult<MemberResponseCommonData>, Unit> callback)

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

        Parameters:
        parameters - the parameters required for creating a user
        callback - a callback that receives a CreateMemberResponse
      • update

         abstract StytchResult<MemberResponseCommonData> update(Organization.OrganizationMembers.UpdateMemberParameters parameters)

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

        Parameters:
        parameters - the parameters required for updating a user
        Returns:

        UpdateOrganizationMemberResponse

      • update

         abstract Unit update(Organization.OrganizationMembers.UpdateMemberParameters parameters, Function1<StytchResult<MemberResponseCommonData>, Unit> callback)

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

        Parameters:
        parameters - the parameters required for updating a user
        callback - a callback that receives a UpdateOrganizationMemberResponse
      • search

         abstract StytchResult<MemberSearchResponseData> search(Organization.OrganizationMembers.SearchParameters parameters)

        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.

        Parameters:
        parameters - the parameters for searching
        Returns:

        MemberSearchResponse

      • search

         abstract Unit search(Organization.OrganizationMembers.SearchParameters parameters, Function1<StytchResult<MemberSearchResponseData>, Unit> callback)

        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.

        Parameters:
        parameters - the parameters for searching
        callback - a callback that receives a MemberSearchResponse
      • searchCompletable

         abstract CompletableFuture<StytchResult<MemberSearchResponseData>> searchCompletable(Organization.OrganizationMembers.SearchParameters parameters)

        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.

        Parameters:
        parameters - the parameters for searching
        Returns:

        MemberSearchResponse