Skip to main content
←API Reference ←com.nianticspatial.nsdk.sites ←SitesSession

requestSelfUserInfo


Declaration​

suspend fun requestSelfUserInfo( timeoutMs: Long = DEFAULT_TIMEOUT_MS ): UserResult

Summary​

Requests information for the currently authenticated user.


Uses the user ID from the access token to fetch user information.
To fetch organizations, consider using requestSelfOrganizationInfo instead.

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.