Skip to main content

User

A User represents a Legalesign account holder. Users belong to Organisations and access Groups through GroupMember records. Each user has their own webhooks, signature images, and support tickets.

info

The user query is a special case — if you omit the id argument, it returns the currently authenticated user. All other types require an explicit ID.

Fields

FieldTypeDescription
idID!Unique identifier
nameString!Full name
firstNameStringFirst name
lastNameStringLast name
emailString!Email address
timeZoneStringPreferred timezone
companySizeStringCompany size
companyRoleStringRole in their company
companyTypeStringType of company
settingsAWSJSONAdvanced settings including MFA and status
lastDocumentSentAtAWSDateTimeLast document sent (any group)
lastValidTemplateMadeAtAWSDateTimeLast valid template created (any group)
uploadedTemplatesCountIntNumber of templates uploaded
webhookHmacSecretStringSecret for signing webhooks
signatureImageStringShort-lease URL to signature image (deprecated)
signatureImage1StringShort-lease URL to signature image
signatureImage2StringShort-lease URL to alternative signature image

Relationships

FieldTypeDescription
consents[Consent]User consent records
sessionSessionSession data (pinned items, tutorial state)
webhooks[Webhook]Webhooks configured by this user
authenticationEvents[AuthenticationEvent]Login history

Connections

organisationConnection

Organisations this user belongs to. Returns OrganisationConnection with organisation-level permissions on each edge.

memberConnection

Group memberships with permissions.

ArgumentTypeDescription
firstIntNumber of items
afterIDPagination cursor

supportTicketConnection

Support tickets for this user.

ArgumentTypeDescription
pageIntPage number
organisationOrGroupIdIDFilter by org or group (null = own tickets)

Query

# Get the current user
query GetMyUser {
user {
id
firstName
lastName
email
}
}

# Get a specific user
query GetUser($id: ID!) {
user(id: $id) {
id
firstName
lastName
email
}
}

Example

Querying group members through a group (based on the Legalesign Console app):

query GetGroupUsers {
group(id: "Z3JwbGVnYWxlc2lnbxRldg==") {
memberConnection {
groupMembers {
user {
id
email
firstName
lastName
name
}
}
}
}
}

Full user profile with organisations and group memberships:

query GetUserProfile {
user {
id
name
firstName
lastName
email
timeZone
lastDocumentSentAt
uploadedTemplatesCount
organisationConnection {
organisations {
id
name
}
}
memberConnection(first: 20) {
groupMembers {
id
canAdminister
canCreateSend
canEdit
isActive
group {
id
name
credit
}
}
}
webhooks {
id
url
event
enabled
groupId
}
}
}

Export This Article

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