getUserDetail

suspend fun getUserDetail(userUid: String, fetchType: ZyncFetchType = ZyncFetchType.NONE): GetUserDetailResult

Get detailed user information including contacts, role permissions, and custom fields. Supports offline-first pattern with background sync and force refresh capabilities.

Return

GetUserResult containing user details with complete information and sync metadata, or error

Parameters

userUid

The unique identifier of the user

fetchType

The fetch type to control data freshness (NONE, FORCE_REFRESH, MARK_STALE)