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
| Argument | Type | Required | Description |
|---|---|---|---|
id | ID | No | Global node ID |
userId | ID | No | User-specific ID |
If both are omitted, returns the current user.
Return Type
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
}
}
}
}