List project members

projectMembers(projectReference: ID!, limit: Int, cursor: String): ProjectMemberList!

Requires project.members.read.

Arguments

ArgumentTypeRequiredDescription
projectReferenceID!YesProject UUID, slug or domain. An inaccessible project is not_found.
limitIntNoMembers per page, 1 to 100; default 20.
cursorStringNoThe previous page's pageInfo.endCursor.

Response

Returns ProjectMemberList!. Open the type for its fields and nested types.

FieldTypeDescription
data[ProjectMember!]!Everyone with access to the project, ordered by user ID: the project members and the owners and admins of the account that owns it. A user who is both is listed once, under the higher grant: the project role when it ranks at least as high as the account role, otherwise the account role.
pageInfoPageInfo!

Types marked with ! cannot be null. Lists use [Type] notation. The type index lists all published input and response types.

Example

query.graphql
query ProjectMembers($projectReference: ID!, $limit: Int, $cursor: String) {  projectMembers(projectReference: $projectReference, limit: $limit, cursor: $cursor) {    data {      name      avatarSrc      capabilities      email      role    }    pageInfo {      hasNextPage      endCursor      hasPreviousPage      startCursor    }  }}
variables.json
{  "projectReference": "00000000-0000-4000-8000-000000000001"}