Sanity Library Reference Docs
    Preparing search index...
    • Load human members, robot-token members, assignable roles, and loading/error state for a project. Resolved profiles supply account-global user IDs. A member without that ID retains the project membership ID. New assignments reject unresolved project IDs.

      members lists people only, for assignment controls. robots lists the project's API-token members, so passing the whole result to actorDisplayFor from @sanity/workflow-components names a robot actor by its token label.

      Role reads use loadProjectRolesOrNone. If the catalog is unavailable, member loading still succeeds and assignment controls use member-held roles.

      Parameters

      • projectId: string

      Returns ProjectMembersState & { robots: readonly ProjectMember[] }