Skip to main content

Organisation

An Organisation is a company, charity, or other corporate entity. Organisations contain Groups for departmental teams and manage billing, user permissions, and data retention at the top level.

Implements: Node

Fields

FieldTypeDescription
idID!Unique identifier
nameString!Full title of the organisation
ipAddressStringIP security restrictions for users
retentionIntDefault data retention period (days)
pdfRetentionIntDefault PDF retention (days)
attachmentRetentionIntDefault attachment retention (days)
textRetentionIntDefault text file retention (days)
createdAWSDateTimeWhen the organisation was created
userCountIntCount of users in this organisation

Relationships

FieldTypeDescription
billingBillingBilling information (requires billing permission)
quotasQuotasSend credits and contact information

Connections

All connections support cursor-based pagination.

groupConnection

Groups belonging to this organisation.

ArgumentTypeDescription
firstIntNumber of items
afterIDPagination cursor

userConnection

Users and their organisation-level permissions.

ArgumentTypeDescription
firstIntNumber of items
afterIDPagination cursor
userIdIDFilter to a specific user

retentionConnection

Data retention records showing when data and documents will be deleted.

ArgumentTypeDescription
firstIntNumber of items
afterIDPagination cursor
startAWSDateTimeFilter by start date
endAWSDateTimeFilter by end date
filterStringFilter by retention compound key

dataStopConnection, dataDeletionConnection, invoiceConnection

Standard pagination arguments (first, after, last, before).

dataSubjectConnection

Search for documents associated with a specific email address.

ArgumentTypeDescription
emailAWSEmail!Email address to search
firstIntNumber of items
afterIDPagination cursor

Query

query GetOrganisation($id: ID!) {
organisation(id: $id) {
id
name
userCount
retention
}
}

Example

Loading organisation data with user permissions (based on the Legalesign Console app):

query GetMyOrganisations {
user {
organisationConnection {
organisations {
id
created
}
edges {
node {
id
name
}
canInvoice
canMakeTeams
canReleaseData
canChangeTeams
canAccessBilling
canExportRecords
canStopProcessing
canAdministerUsers
canChangeRetention
}
}
}
}
note

Organisation-level permissions are returned on the OrganisationEdge, not on the Organisation itself. This includes fields like canAdministerUsers, canAccessBilling, and canMakeTeams.