requestSelfUserInfo
Declaration
suspend fun requestSelfUserInfo( timeoutMs: Long = DEFAULT_TIMEOUT_MS ): UserResult
Summary
Returns
UserResult containing the user information if successful.
Throws
SitesException— if the request fails with an error.kotlinx.coroutines.CancellationException— if the coroutine is cancelled.
Requests information for the currently authenticated user.
Uses the user ID from the access token to fetch user information.
To fetch organizations, consider using
requestSelfOrganizationInfoinstead.