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!
capabilities[String!]!Project capabilities the role grants.
budgetProjectMemberBudgetThe member's monthly AI budget in this project; null when none is configured.
budgetStatusProjectMemberBudgetStatusUsage against the budget this month; null when the member has no budget.

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

Example

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