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

requestSelfUserInfo

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.

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.