Overview
useFetchMyWorkspaceMembership returns a callable that reads the signed-in user’s own standing on a workspace — the same record useFetchWorkspaceMemberStanding returns for another user, and one roster row’s shape.
Authorization: self-service. Any signed-in user may call it for any workspace: it is not gated by roster visibility, so a user with no relation to the workspace gets a record with reasons: [] rather than an error. Your own access is never fenced: capabilities, permissions, rank and relativeRank are always present.
Your own membership is /workspaces/:workspaceId/members/me: this hook reads it, useUpdateMyWorkspaceMembership edits your title, and useLeaveWorkspace leaves it. Hooks that take a user id (useFetchWorkspaceMemberStanding, useUpdateWorkspaceMember, useRemoveWorkspaceMember, useRemoveWorkspaceMemberFromSubtree) act on other members and refuse your own id.
Usage Example
Parameters
string
required
The workspace UUID.
Returns
Promise<WorkspaceMemberStanding> — the record itself:
The type is the shared
WorkspaceMemberStanding, where the four authority fields are optional because another user’s standing may be fenced; on this read they are always set.
Error codes
Related
useFetchWorkspaceMemberStanding— the same record for another useruseFetchWorkspaceAuthority— your resolved authority ({ reasons, capabilities, permissions, rank })useLeaveWorkspace— leave this workspace- Fetch My Membership API

