requestOrganizationsForUser
Declaration
suspend fun requestOrganizationsForUser( userId: String, timeoutMs: Long = DEFAULT_TIMEOUT_MS ): OrganizationResult
Summary
Returns
OrganizationResult containing the list of organizations.
Throws
SitesException— if the request fails with an error.kotlinx.coroutines.CancellationException— if the coroutine is cancelled.
Parameters
| Name | Type | Summary |
|---|---|---|
| userId | String | The user ID to query organizations for. |
| timeoutMs | Long | Maximum time to wait for the request to complete. |
Requests all organizations for a user.
Consider using
requestSelfOrganizationInfoinstead.