Skip to main content
Fetch Member Standing
Returns a single user’s full standing on a workspace, addressed by userId (not a membership-row id, so it works for users with no direct row). Returns the same unified shape as one roster row, computed on demand for any relation — direct member, this workspace’s owner, an ancestor-owner, or a reach-holder. Returns empty/none only if the user has no relation at all. Requires roster visibility — any relation to the workspace (owner, ancestor-owner, member, or reach-holder). reasons is an array of structured entries — { type, viaWorkspaceId? } — the same object shape a roster entry’s reasons carries. viaWorkspaceId names the granting ancestor and appears on ancestor-owner / reach-holder only.
The authority-bearing fields are fenced, and the gate is scoped to THIS workspace. capabilities, permissions, rank and relativeRank are omitted from the response (absent — not null) unless the caller:
  • holds one of the four people-operating capabilities on this workspace — invite, remove-member, edit-member-access, edit-member-profile; or
  • is this workspace’s owner or an ancestor-owner; or
  • is asking about themselves (a caller always sees their own access).
A service key names the user it reads as and is fenced exactly as that user is — see Acting on behalf of a user.The gate is a per-node verdict, not a global one: clearing it here says nothing about any other node, and clearing it elsewhere says nothing about here. “On this workspace” means your resolved standing on it — including capabilities reaching in from an ancestor through an unbroken open inherit chain, and ownership from any ancestor — but not authority that stops at a sealed boundary. The roster read takes the same verdict independently for each descendant-member row it returns, so the two reads agree node for node.Everything else — user, reasons, title, metadata — is visible to any relation. Treat these four fields as optional in your types.relativeRank is fenced with rank, not beside it: it is rank minus the caller’s own anchor, a number the caller already knows, so returning it to a fenced caller would reconstruct the fenced rank exactly.

Path Parameters

string
required
The workspace UUID.
string
required
The target user whose standing to read.

Query Parameters

string
required
Service keys only — the user to act as. Required with a service key: a key that names nobody is refused with 400 workspace/missing-user-id. Enforced: roster visibility and the authority-field fence above both evaluate against the named user, so a key acting as a plain member receives the fenced standing (and the full one when asking about that user themselves). A user token always acts as its own user and must not send it (400 workspace/acting-user-not-allowed). See Acting on behalf of a user.

Response

Caller who may see authority fields (a people-operator, an owner, or the user themselves):
Caller with a plain relation, reading someone else’s standing — the four authority fields are simply absent:
  • reasons is always present; viaWorkspaceId appears on ancestor-owner / reach-holder entries only.
  • capabilities is the resolved set (direct + reach + ownership). view is implied by every other capability — anyone with standing resolves with view, including a member whose stored capabilities array is empty. A user with no relation at all returns reasons: [] and an empty capability set.
  • permissions is per-node (the direct membership on this workspace only; may be empty).
  • rank is the direct-membership rank, or null for owners / ancestor-owners / reach-only holders (they sit outside the numbered ladder).
  • relativeRank is that same position expressed as an offset from the caller — 2 above means the target sits two rungs below you; a negative value means they are senior to you, and 0 means they are your peer. null exactly when rank is null. The caller’s own anchor is their member row on this workspace if they hold one, and apex (one step above rank 0) otherwise — so an owner reads a rank-0 member back as 1. See rank semantics.

Error Responses

Every path id on the workspaces bundle is checked for UUID shape before the route runs, so a malformed one is a plain 400 rather than a 500 from the database.
A service key sent no actingUserId. This read needs a user: the key names the user whose view it gets.
A user token sent actingUserId, even naming its own user. Only a service key names the user it acts as; a user token always acts as its own user.
A GET takes every field, actingUserId included, in the query string, so any request body is refused: a JSON object with keys, a non-empty array, or a non-JSON payload such as multipart (then params is omitted). An absent body and {} pass.
Returned when a service key names an actingUserId that isn’t a user in this project.
See also: useFetchWorkspaceMemberStanding · List Members · Read Authority