Skip to main content

Overview

useFetchSpaceTeam returns a callable function that fetches all admins and moderators of a space in a single non-paginated response. This is useful for displaying the space’s leadership team.

Usage Example

Parameters

string
required
UUID of the space.
string
Resolves each team member’s reputation into a spaceReputation number on the embedded user. Accepts a space <uuid>, "none" (project-general bucket), or "context" (server-derived from the request context). Empty string, "general", and null are rejected. See Reputation.
boolean
When true, spaceReputation is the subtree sum (the space plus all its descendants). Only honored when spaceReputationId is an explicit <uuid>.

Returns

SpaceMemberWithUser[]
All admins and moderators with active status, including embedded user details. When spaceReputationId is set, each embedded user carries an added spaceReputation number. See SpaceMember and Reputation.