Get project member

projectMember(projectReference: ID!, userId: ID!): ProjectMemberDetail!

Requires project.members.read.

Arguments

ArgumentTypeRequiredDescription
projectReferenceID!YesProject UUID, slug or domain. An inaccessible project is not_found.
userIdID!YesUser ID of the member. A user who is not a member is not_found.

Response

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

FieldTypeDescription
userIdID!
emailString!
nameStringDisplay name; null when the member has none.
avatarSrcStringAvatar URL; null when the member has none.
roleProjectRole!
sourceProjectMemberSource!Where the access comes from: project or account.
capabilities[String!]!Project capabilities the role grants.
budgetProjectMemberBudgetThe member's monthly AI budget in this project; null when none is configured.

All fields of ProjectMemberDetail.

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

Example

query.graphql
query ProjectMember($projectReference: ID!, $userId: ID!) {  projectMember(projectReference: $projectReference, userId: $userId) {    name    avatarSrc    capabilities    email    role  }}
variables.json
{  "projectReference": "00000000-0000-4000-8000-000000000001",  "userId": "00000000-0000-4000-8000-000000000001"}