Profile

interface Profile

Profile feature — manage the member’s profile and search for colleagues.

This interface provides operations to:

  • Retrieve the current member’s profile.

  • Update the member’s profile data.

  • Search for colleague profiles within the tenant organization.

Platform & threading

  • All functions are suspend and must be called from a coroutine.

  • Errors surface as Throwable and should be handled at call sites.

Typical flows

  • Profile page: call get to display the member’s current profile.

  • Profile edit: call update when saving changes.

  • Colleague search: call searchColleagueProfiles for directory-style lookups.

Functions

Link copied to clipboard
abstract suspend fun get(): MemberProfile

Retrieves the profile data for the current member.

Link copied to clipboard
abstract suspend fun searchColleagueProfiles(query: String, maxResults: Int): List<ColleagueProfile>

Searches for colleague profiles within the organization.

Link copied to clipboard
abstract suspend fun update(profileData: MemberProfile): MemberProfile

Updates the current member’s profile data.