getGroupsOf

abstract suspend fun getGroupsOf(userId: UserId): Result<Set<GroupId>>

Return

a successful Result with the groups of the given userId or a failed one in case of error.