Skip to main content

user

Returns a User by ID. If no ID is provided, returns the currently authenticated user — this is the primary way to bootstrap the app on login.

Arguments

ArgumentTypeRequiredDescription
idIDNoGlobal node ID
userIdIDNoUser-specific ID

If both are omitted, returns the current user.

Return Type

User

Example

query GetCurrentUser {
user {
id
firstName
lastName
email
timeZone
session {
pinnedTemplates
tutorialState {
onboarding
}
}
consents {
id
answer
description
}
memberConnection {
groupMembers {
id
permission
canEdit
canCreateSend
canAdminister
group {
id
name
organisation {
id
name
}
}
}
}
organisationConnection {
edges {
node {
id
name
}
canAdministerUsers
canAccessBilling
canMakeTeams
canChangeTeams
}
}
}
}

Export This Article

Save a copy of this page as PDF or plain text.