Skip to main content

Group

A Group (sometimes called a team) is a workspace within an Organisation. Groups contain templates, documents, contacts, and their own settings for data retention, PDF security, and signing experiences. Users access groups through GroupMember records which define their permissions.

Implements: Node

Fields

FieldTypeDescription
idID!Unique identifier
nameString!Group title
publicNameStringPublic-facing name for external use
attachmentRetentionInt!Retention period for attachments (days)
pdfRetentionInt!Retention period for PDFs (days)
retentionInt!Retention period for other data (days)
textRetentionInt!Retention period for text files (days)
apiIntegrationBooleanWhether this group is for API integration
styleAWSJSONCustom styling for this group
certifyDocumentsBooleanCertify final documents
sequentialSendBooleanDefault sending sequence for multiple documents
stopPDFPrintingBooleanPrevent printing of final PDF
stopPDFCopyingBooleanPrevent copying of final PDF
appendAuditLogBooleanAppend audit log to signed PDF
autoTagBooleanAppend Legalesign and signer info to PDF
appendAdditionalSignerInfoBooleanCheck for text tags on upload
passwordTypeIntPDF password protection (0=none, 1=kept, 2=deleted after signing)
pdfPasswordStringPassword for the final PDF
retainPdfPasswordBooleanRetain password after signing
licensesRemainingIntRemaining send licenses
creditIntSend credits for this group
ownerIDUser ID of the group owner
groupCCEmail[AWSEmail]CC email for all final documents
emailDomainSettingsAWSJSONDomain-specific email format settings
emailSubjectToSenderIfCompletedStringEmail subject when document completed
emailSubjectToSenderIfRejectedStringEmail subject when document rejected
sendWhenSignedOrRejectedBooleanNotify sender on sign/reject
attachPDFWhenNotifyingBooleanAttach PDF to notification emails
sendWhenBouncesBooleanNotify sender on email bounce

Relationships

FieldTypeDescription
organisationOrganisationParent organisation
cloudStoreCloudStoreActive cloud storage connection
settings[GroupSetting]Advanced extensible settings

Connections

All connections support cursor-based pagination.

memberConnection

Members of this group with their permissions.

ArgumentTypeDescription
firstIntNumber of items
afterIDPagination cursor

documentConnection

Documents sent from this group.

ArgumentTypeDefaultDescription
firstIntNumber of items
afterIDPagination cursor
fromAWSDateTimeStart date filter
toAWSDateTimeEnd date filter
searchStringnullSearch by name
statusStringnullFilter by status
sendTypeSendTypeALLSINGLE, BATCHED, or ALL
sender[ID]nullFilter by sender user IDs

templateConnection

Templates in this group.

ArgumentTypeDefaultDescription
firstIntNumber of items
afterIDPagination cursor
archivedBooleanfalseInclude archived
searchStringnullSearch by title
statusStringnullFilter by status

batchConnection

Batches sent from this group.

ArgumentTypeDefaultDescription
firstIntNumber of items
afterIDPagination cursor
fromAWSDateTimeStart date filter
toAWSDateTimeEnd date filter
searchStringnullSearch by name
statusStringnullFilter by status
archivedBooleanfalseFilter archived
typeBatchTypeBULK or BATCH

experienceConnection, scheduleConnection, attachmentConnection, contactConnection, contactGroupConnection, draftConnection, invitationConnection, standardMessageConnection

Standard pagination arguments (first, after, last, before). contactConnection also accepts a filter argument (AWSJSON) for field-level filtering. draftConnection accepts a search argument.

activityConnection

Recent activity for this group (last 90 days). No pagination arguments.

reportData

ArgumentTypeDescription
startAWSDateTime!Report period start
endAWSDateTime!Report period end
reportTypeReportTypeDefault SIGNINGTIME

Query

query GetGroup($id: ID!) {
group(id: $id) {
id
name
publicName
credit
licensesRemaining
}
}

Example

Loading group settings and options in a single call (based on the Legalesign Console app):

query GetGroupOptions {
group(id: "Z3JwbGVnYWxlc2lnbxRldg==") {
id
retention
certifyDocuments
stopPDFPrinting
stopPDFCopying
appendAuditLog
pdfPassword
retainPdfPassword
settings {
name
value
}
templateConnection {
templates {
id
title
valid
locked
pageCount
}
totalCount
}
experienceConnection {
experiences {
id
name
defaultExperience
language
}
}
scheduleConnection {
schedules {
id
name
default
items {
id
daysAfter
frequency
subject
when
timeOfDay
skipWeekend
}
}
}
}
}