9 API Access and Integrations
This chapter covers everything that connects TraxrGRC to other systems: API tokens, the REST API, the Model Context Protocol server for AI assistants, and the practices that keep machine access safe.
9.1 Integration points
| Integration | Address | Authenticates with | Turned on by |
|---|---|---|---|
| REST API | /api/v1/... | API token | Always available |
| OpenAPI document | /api/v1/openapi | None (public) | Always available |
| AI assistants (MCP) | /api/mcp | API token, or Microsoft Entra ID access token | Settings → AI assistants |
| SCIM provisioning | /scim/v2 | SCIM token | Settings → Provisioning (see Authentication and Single Sign-On) |
| LDAP and SAML sign-in | Directory or identity provider | Settings → Integrations (see Authentication and Single Sign-On) | |
| Outbound email | Your SMTP server, or Microsoft Graph | SMTP credentials, or OAuth 2.0 client credentials for Microsoft 365 | Settings → Integrations (see Notifications and Email) |
| DocuSign e-signature | DocuSign's eSignature REST API (outbound) | JWT grant with the integration key's RSA key | Settings → Integrations (see DocuSign e-signature below) |
| DocuSign Connect | /api/integrations/docusign/connect (inbound) | HMAC signature from DocuSign | Settings → Integrations, only when the instance is reachable from the internet |
| Microsoft Entra ID account feeds | Microsoft Graph, read only (outbound) | Client credentials of an app registration | Settings → Integrations (see Microsoft Entra ID below) |
| Secureworks Taegis XDR devices | Taegis's regional API, read only (outbound) | Client credentials of a Taegis API client | Settings → Integrations (see Security tools and device coverage below) |
| Tenable Vulnerability Management devices | cloud.tenable.com, read only (outbound) | A read-only API user's access and secret keys | Settings → Integrations (see Security tools and device coverage below) |
| Microsoft Intune and Defender for Endpoint devices | Microsoft Graph and the Defender for Endpoint API, read only (outbound) | Client credentials of one app registration | Settings → Integrations (see Security tools and device coverage below) |
| Outside assessments | /assess/<token> | A per-request link | Sending an assessment (see the User Manual, Online Assessments) |
| Health check | /api/health | None (public) | Always available; answers {"status":"ok"} or 503 |
TraxrGRC has no outbound webhooks and sends nothing to outside addresses except assessment emails and, once they are set up, the contracts an approver sends to DocuSign for signature, the read-only Microsoft Graph requests of account review pulls and the read-only requests of connected security tools, by design. Systems that need to react to changes read the REST API on a schedule.
9.2 DocuSign e-signature
An approved contract can be sent for signature through DocuSign from its page (see the User Manual, Signing with DocuSign). The app signs in to DocuSign as one DocuSign user through the JWT grant: it holds that user's ID, your integration key and the integration key's RSA private key, and sends every envelope in that user's name. Signers get DocuSign's own emails; nobody needs a DocuSign account to sign.
Until it is set up, Send for signature with DocuSign is shown disabled to administrators with "Not set up" and a link here, and not at all to anyone else. The demo leaves it unset.
Setting it up (about 20 minutes)
- A DocuSign developer account. Sign up for a free developer account at developers.docusign.com. Everything below is done there first (the Developer (demo) account environment, account-d.docusign.com), then repeated in production after DocuSign's go-live review.
- The integration key. In DocuSign, Settings → Apps and Keys, note
the User ID (the user the app will send as) and the API Account
ID. Click Add App and Integration Key, name it after your instance,
and note the Integration Key: the GUID in the app's row, not the User
ID or API Account ID above it, which look the same. A wrong key fails at
sign-in with
issuer_not_found(client_id_not_foundon the consent page). - The RSA keypair. On the integration key, under Service Integration,
click Generate RSA. DocuSign shows the private key once: copy all of it,
from
-----BEGIN RSA PRIVATE KEY-----to the end line. The operator of the instance stores it: keep the original in your password manager (for the instances Traxr operates, a Dashlane secure note), never in email, chat or a file in the repository. Paste the PEM text itself into Settings. On a Mac,security find-generic-password -wprints a value that contains line breaks as hex, so a key read from the Keychain that way must be decoded before it is pasted. - The redirect URI. Under Additional settings → Redirect URIs on the
integration key, add
<APP_URL>/settings/integrations(the card shows the exact address). DocuSign returns there after consent. - Settings → Integrations → DocuSign. Choose the environment, enter the
integration key, user ID and API account ID, paste the private key, and
Save. Leave Base URI blank to have it found from the account at
sign-in, or enter the account's base URI (such as
https://demo.docusign.net); only https addresses on docusign.net or docusign.com are accepted, since the access token is sent there. The key and the Connect HMAC key are encrypted at rest like the SMTP password, are never sent back to the browser ("Stored. Type to replace."), and saving writes an audit entry and alerts every administrator. - Consent. Click Open the consent page, sign in to DocuSign as the user whose ID you entered, and accept. This is needed once per integration key and user; until it is done, every call fails with "consent has not been granted". (A DocuSign organization administrator can grant consent for the whole organization instead, from DocuSign Admin.)
- Test connection. It runs the JWT grant and reads the user's accounts, and reports the user, the account name and its base URI, or what failed.
- Going live. DocuSign reviews an integration key before it may be used in production (it needs a number of successful calls in the developer account first). After that, in your production DocuSign account, note its own user ID and API account ID, add the redirect URI again, switch the card to Production, enter the production IDs, keep or replace the key, save, consent again and test.
Status updates: Connect or polling
The worker checks every envelope still out for signature (and any completed one not yet recorded) every 15 minutes, always. That is all an instance that DocuSign cannot reach needs, such as one only on your own network: leave Connect off.
An instance reachable from the internet can also be told at once. In
DocuSign, Settings → Connect → Connect Keys, add an HMAC key and copy it.
On the card, turn on Receive status updates through DocuSign Connect and
paste the key. Each envelope then asks DocuSign to post its status changes to
<APP_URL>/api/integrations/docusign/connect with an HMAC signature
(X-DocuSign-Signature-1); no account-wide Connect configuration is needed.
A message without a matching signature is refused (401), and while Connect is
off the address answers 404. The app uses only the envelope ID from a message
and reads the status back from DocuSign's API, so a replayed message changes
nothing.
Where the signatures go
Signature fields are placed at anchor text in the document: /sig1/ where
the other party signs and /sig2/ where you sign (with /date1/ and /date2/
for the dates, optional). Put them in your templates in white text so they do
not print. A document without both anchors gets the fields side by side near
the foot of its last page (the page count comes from the PDF, or from what
Word last saved in a .docx); when the page count is unknown, each signer
places their own signature (DocuSign's free-form signing). .docx and .pdf
documents can be sent; a .docx goes through the same checks as a template
upload (no macros or ActiveX, size and expansion limits).
When it is signed
On completion the app downloads the signed documents as one PDF and DocuSign's
certificate of completion, adds them to the contract (the executed copy, and
"Certificate of completion" as Other), records who signed for the other party
and when, and marks the contract signed by the person chosen to sign for you,
through the same step as Mark signed: their sign right (own or delegated)
is checked then, the signed date is locked, and "on behalf of" is recorded
when they signed under a delegation. If that cannot be done (they lost the
right or were deactivated, or the contract was sent back), the card shows why,
the sender is emailed once (contract.signature.update), the check repeats
every 15 minutes, and Legal can still Mark signed by hand with the PDF.
A declined or voided envelope is recorded with its reason and the sender is
emailed; the contract stays approved and can be sent again.
Notes
- Send for signature and Void need contracts sign on the contract, own or delegated (Void is also open to whoever sent it). While an envelope is out, the contract cannot be sent back to draft; void it first.
- Backups carry the encrypted key. A backup restored on an instance with a
different
SETTINGS_ENCRYPTION_KEY(orAUTH_SECRET) cannot read it: paste the key again. DOCUSIGN_TEST_ENDPOINTpoints every DocuSign call at a stand-in server for the end-to-end tests. Never set it on a real instance. Only an http(s) address on127.0.0.1,::1orlocalhostis honored; any other value is ignored, with one warning in the log.
9.3 Microsoft Entra ID (account review feeds)
An account review program can pull its accounts from Entra ID instead of a CSV: the members of chosen groups (nested groups included) and the users assigned to an enterprise app (see the User Manual, Pulling accounts from Microsoft Entra ID). The app reads the directory through Microsoft Graph with its own app registration and application permissions, so no person signs in and nothing in the tenant is ever changed.
Until it is set up, programs only take accounts by hand or CSV, and Pulled from Microsoft Entra ID is not offered. The demo leaves it unset.

Setting it up (a tenant administrator, about 10 minutes)
-
Register an app. In the Microsoft Entra admin center, Identity → Applications → App registrations → New registration. Name it after your instance (for example "TraxrGRC account reviews"), choose Accounts in this organizational directory only, leave the redirect URI empty and register. From its Overview, note the Application (client) ID and the Directory (tenant) ID.
-
Grant the permissions. API permissions → Add a permission → Microsoft Graph → Application permissions, and add:
Permission Needed for User.Read.AllAlways: each account's name, sign-in name, enabled state and creation date. GroupMember.Read.AllAlways: finding groups by name and reading their members, nested groups included. AuditLog.Read.AllOnly to show each account's last sign-in; also needs an Entra ID P1 or P2 license. Application.Read.AllOnly for programs that review an enterprise app's assigned users. Remove the delegated
User.ReadMicrosoft adds by default if you like; it is not used. Then click Grant admin consent for <your tenant>. Without consent every pull fails, naming the permission it lacks. -
Create a client secret. Certificates & secrets → Client secrets → New client secret. Copy its Value (not its Secret ID) at once: Microsoft shows it only then. Keep it in your password manager (for the instances Traxr operates, a Dashlane secure note), never in email or chat. Note when it expires: pulls stop with a sign-in error on that day until a new secret is saved.
-
Settings → Integrations → Microsoft Entra ID. Enter the tenant (the GUID, or a verified domain such as
contoso.onmicrosoft.com), the client ID and the secret, turn on Read each account's last sign-in only if you grantedAuditLog.Read.All, and Save. The secret is encrypted at rest like the SMTP password and never sent back to the browser ("Stored. Type to replace."); saving writes an audit entry and alerts every administrator. Saving all three fields empty turns the connection off. -
Test connection. It signs in and reads one user and one group (and one last sign-in when that is on), and says what failed, for example a wrong secret (
AADSTS7000215) or a permission without consent.
What a pull stores. For each account in scope: its Entra object id,
sign-in name (UPN), display name, whether it is enabled, when it was created,
its last sign-in (when turned on), and which groups or app brought it in,
plus what changed since the previous pull. Nothing else is read: no
passwords, no group owners, no mailbox or profile data. A pull stops with an
error beyond 20,000 accounts; split the program by group if you need more.
Backups carry the encrypted secret; restored on an instance with a different
SETTINGS_ENCRYPTION_KEY (or AUTH_SECRET), it cannot be read: enter it
again.
How it behaves. Group membership is read transitively, so a member of a
group nested inside a reviewed group is reviewed too: nested membership grants
the same access, which is what the review is for. Users assigned to the app
through a group are expanded the same way; service principals assigned to the
app are left out. Graph's paging is followed to the end, and throttling (429,
or 503 and 504) is waited out as long as Graph's Retry-After asks, up to a
minute at a time and five times per request. A next page on any host other
than Graph stops the pull, so a reply cannot steer the access token
elsewhere. Pulls of one program never overlap. Scheduled pulls (monthly or
quarterly) run each morning at 05:30 UTC in the worker for every active
program whose last successful pull is that old, as the system user; a failure
is recorded on the program's Pulls tab and in the worker log and never
stops the other programs. Every pull, successful or not, is in the audit log
under the program.
Testing. ENTRA_TEST_ENDPOINT sends every call, sign-in included, to a
stand-in server instead of Microsoft; the end-to-end tests use it. It is
honored only for a loopback address, so a stray value cannot send the client
secret anywhere else. Never set it on a real instance.
9.4 Security tools and device coverage
TraxrGRC can read the device lists of the security tools you run and show, in one register, which machines each tool covers (see the User Manual, Devices). Four tools connect today: Secureworks Taegis XDR, which provides the EDR capability; Tenable Vulnerability Management, which provides vulnerability scanning; Microsoft Intune, which provides device management; and Microsoft Defender for Endpoint, which provides EDR and, where the tenant has Defender Vulnerability Management, vulnerability scanning of the endpoints it covers. Any other tool can send its devices through a custom source and a script of your own (below). Each is optional. Until one is connected, nothing new appears anywhere outside its card on Settings → Integrations: no Devices tab, no coverage grid.
Every connection only reads. Each sends a fixed set of requests (a sign-in, the device list or export, and for Tenable a session check), and the application refuses to send anything else, so nothing in any tool is ever changed.
Connecting Taegis
- In the Taegis console, create an API client for this instance and note its client ID and client secret. Give it read access to assets and nothing more: its schema also offers actions such as isolating a host, and a read-only client cannot take them even if its secret leaked.
- Settings → Integrations → Secureworks Taegis XDR. Choose the Region your tenant is in (US1, US2, US3 or EU; the list shows each region's API host), enter the client ID and secret, and click Save and test. The settings are saved only if the test signs in and reads the asset count.
Connecting Tenable with a read-only key
Tenable keys carry the rights of the user they belong to, and an
Administrator's keys can change scans, credentials and assets. TraxrGRC
refuses a key whose user is an Administrator (Tenable reports permission
level 64 or higher on /session), both when you save and before every sync.
- In Tenable Vulnerability Management, create a user for this instance with a
custom role that holds only Explore: read and export
(
VM.VM_EXPLORE.VM_EXPLORE.EXPORT, plus the role's base use privilege), and give it Can View on the All Assets access group. The Basic role also works, but Tenable lets Basic users create managed credentials, so it is not strictly read-only. - Generate that user's API keys (an access key and a secret key) and keep them in your password manager.
- Settings → Integrations → Tenable Vulnerability Management. Enter both keys and click Save and test. The test signs in and checks the role; an Administrator's key is refused with a message saying so.
Connecting Microsoft Intune and Defender for Endpoint
One Microsoft Entra app registration reads both tools, and each has its own switch, so turn on only what your organization runs. You need someone who can create an app registration and grant admin consent in your tenant (a Global Administrator, or a Privileged Role Administrator for the consent).
-
In the Microsoft Entra admin center, App registrations → New registration. Name it for this instance, accounts in this organizational directory only, no redirect URI. Note the Application (client) ID and the Directory (tenant) ID from its overview.
-
API permissions → Add a permission, then add application permissions (not delegated) for the tools you will turn on:
Tool API to choose Application permission Intune Microsoft Graph DeviceManagementManagedDevices.Read.AllDefender for Endpoint APIs my organization uses → WindowsDefenderATP Machine.Read.All(shown as "Read all machine profiles")Grant nothing else: both are read-only, and the ReadWrite permissions next to them could retire, wipe or isolate devices.
-
Click Grant admin consent for your organization. Application permissions do nothing until an administrator consents, and must be consented again after any change to the list.
-
Certificates & secrets → New client secret. Copy its Value (not its ID) at once; Microsoft shows it only then. Note when it expires: syncs stop when it does.
-
Settings → Integrations → Microsoft Intune and Defender for Endpoint. Enter the tenant ID (or a verified domain), the client ID and the secret, turn on Read Microsoft Intune, Read Microsoft Defender for Endpoint or both, and click Save and test. Each tool turned on signs in and reads one record; the settings are saved only if every test passes. The card lists the permissions above.
Intune's Graph API needs an active Intune license in the tenant. Microsoft documents that Defender for Business (the small-business edition, included in Microsoft 365 Business Premium) uses the same Defender for Endpoint APIs.
This tenant has Defender vulnerability management, under the Defender switch, is on by default: Defender then provides vulnerability scanning as well as EDR. Turn it off when the tenant has Defender for Endpoint Plan 1, which has no vulnerability management. Defender for Business, Defender for Endpoint Plan 2 and the Defender Vulnerability Management add-on include it. With it off, Defender provides EDR only: it no longer satisfies vulnerability scanning in the coverage grid, in any device's status or in the register's columns (the column goes when no other connected tool provides scanning), and a grid cell that relied on Defender alone for scanning shows Missing. Saving the change is for administrators, is written to the audit log like the card's other settings, and recomputes every device at once. A grid saved while it is off keeps Defender out of its scanning cells, so after turning it back on, add Defender to those cells again.
To stop reading one tool, turn its switch off and save: that tool is disconnected and the other keeps syncing. Disconnect on the card clears the credentials and disconnects both.
Secrets and keys are encrypted at rest like the SMTP password and never sent back to the browser ("Stored. Type to replace."). Saving writes an audit entry with the non-secret fields and whether each secret changed, and alerts every administrator. Test connection tests the saved credentials again.
Disconnecting, deleting the data, and retention
To disconnect a tool, click Disconnect on its card and confirm. Before you
confirm, the dialog shows the coverage it would cost, worked out on the server
without changing anything. It leads with any real gaps the disconnect would
hide: devices that would have a required capability uncovered that the gap
filter no longer shows, because only this tool sees them or only it gives the
class that requires the capability (up to ten named, with what each would be
missing). That counts a gap a device has today and one the disconnect itself
creates: a device this tool alone sees and covers has no gap today, but
without the tool it is uncovered and out of the count, so it is listed too,
and the dialog says how many gaps are there today and how many the disconnect
creates. A device only this tool sees with nothing required hides no gap; the
dialog says how many of those there are. That is a
relaxation, as relaxing the grid is: the dialog asks for a reason, the server
refuses without one, the source.disconnect audit row records the reason,
relaxed and the hidden devices, and the owners of each control whose enabled
automatic tests count those gaps are emailed (template
control.coverage.relaxed). The same holds when a Microsoft switch is turned
off and saved (the dialog opens before saving) and when a tool's credentials
are cleared and saved, which is refused with a pointer to Disconnect. Then
it shows how many devices would gain a required gap (with
up to ten named), how many devices only that tool sees (they would count
toward no coverage and leave the gap filter, so their gaps would stop
showing), the grid cells that would be left with no connected tool
("No connected tool would provide Vulnerability scanning for Server"), and the
enabled automatic tests that count those cells, whose next daily result would
count those devices as uncovered. Syncing
stops and its credentials are cleared, but the device records it reported are
kept. The card then reads Disconnected, with how many records it holds,
when the tool was disconnected and when the records will be deleted. In the
register and on device pages that data is labeled "from a disconnected tool".
It counts toward no coverage: the devices are recomputed without it, so a
capability only that tool proved shows as missing where the grid requires it,
and a device only that tool reported has no coverage, is not counted as seen
recently, and drops out of the Missing a required capability filter. Its
name and class still come from what the tool reported, so the device stays in
the register.
Connecting the same tool again (enter its credentials and Save and test) reuses the kept records: every device keeps its id, so links and history stay valid, and coverage counts the tool again at once.
Delete stored data on a disconnected tool's card deletes its records now.
Confirm by typing the tool's name (Taegis, Tenable, Intune or
Defender, or a custom source's short name). Devices only
that tool reported leave the register. The deletion is written to the audit
log (module devices, action source.purge, reason administrator, with the
count). A connected tool's data cannot be deleted this way; disconnect it
first.
Retention. Once a tool is disconnected, its records are kept for 90 days
by default, then the daily job (04:15 UTC) deletes them and writes an audit
entry as the system (action source.purge, reason retention). Change the
period on the Disconnected tools' data card on Settings → Device
coverage (1 to 3650 days), which shows while a tool is connected or a
disconnected tool's data is kept. Saving it is
audited. Until one of these deletes them, the kept records are in your
backups like any other data.

The coverage grid
Once a tool is connected, a Coverage requirements card appears on
Settings → Device coverage, the page that holds how devices are counted
(the grid, the rules below, the delivery alert, retention and device
exceptions); the Integrations page keeps the tools themselves and links to
it. The card has the device classes down the side (Domain controller, Server,
Workstation, Linux, Mobile, Storage, Network and appliance, Other) and one
column for each capability a connected tool provides. No built-in mapping
puts a device in Storage: it is for NAS and SAN appliances you classify
with a rule (a hostname starting with nas-, say) or by hand, so they can
have their own requirements apart from switches and printers. For each cell choose:
- Required, Optional or Not applicable (for example, EDR is not applicable to network gear, which cannot run an agent), and
- which connected tools satisfy it. A laptop fleet assessed by a different vulnerability tool than the servers, say, is a workstation cell that ticks only that tool.
Nothing is required until you set it. A cell you have not set is optional and satisfied by any connected tool providing the capability, so a new install assumes no one's tools. A required cell needs at least one tool ticked. The Missing a required capability filter on the Devices register is the gap report this grid defines.
A disconnected tool, or one whose stored data you deleted, stays in the cells that name it: the card shows only connected tools, and saving never drops the others, so they count again if the tool is connected again (removing a custom source drops it from the grid). A Required cell no connected tool counts for shows in red: every device of that class counts as missing the capability until you connect a tool, tick one, or make the cell Optional or Not applicable. It never stops you saving the rest of the grid; only a cell you make Required, or untick to nothing, while a connected tool provides the capability is refused.
Relaxing the grid takes a reason: making a Required cell Optional or Not
applicable, or unticking a tool on a Required cell. The card lists what the
save relaxes and asks for the reason before Save coverage works. The
reason and the relaxed cells are recorded in the save's audit row, and the
owners of every control whose automatic tests count those cells (its owner
and its owner group's members) are emailed with the change and the reason
(template control.coverage.relaxed). Making the grid stricter needs no
reason.
Relaxation approval (D2). The card of that name on
Settings → Device coverage requires a coverage relaxation to be approved before
it takes effect. Until an administrator saves the switch, it is on wherever at
least two active people may approve (administrators, or Approve on Controls at
All) and off otherwise, so it turns itself on once a second approver exists;
the card says when it is following that default. Once saved, on or off, the
stored choice stays (Chris, 2026-11-18, DA1). Relaxations it holds are: a coverage test turned off, its threshold lowered or replaced
while on, or a relaxed grid cell. While on, such a save is held as a pending
request (table coverage_relaxation_requests, audited
coverageRelaxation.request) and nothing changes. The pending request shows
on the control's Automatic tests tab (test relaxations) or above the grid on
this page, and in the approvers' My Tasks. Approving takes Approve on
Controls at All (the right this adds; the built-in GRC Manager role has it,
and a migration gave it to that role) or an administrator, never the person who
asked. Approving applies the save as the requester made it, checked again as
if they saved it now: if they have since lost the right or been deactivated,
or the test changed, it is refused and stays pending. The applied change's
audit row carries relaxationRequestId and approvedById; decisions and
withdrawals are audited as coverageRelaxation.approve, .reject and
.withdraw. Rejecting needs a reason. One request per test, and one for the
grid, may wait at a time; the requester can withdraw it. Turning the setting on
needs at least two active people who may approve. A disconnect that hides gaps
applies at once, since the tool may already be gone, and is reported like the rest. Every
relaxation applied, held or not, is in the Overrides report.
Two more settings sit on the card:
- Seen recently means within (days), 35 by default: a tool whose last sighting is older counts a device as stale. A device no tool has seen for longer than the lost contact window (below) still counts, as a gap. Set shorter than the lost contact window, lost contact counts from this window instead, and the field says so.
- Network and appliance operating systems: a scanner-reported operating system starting with any line here puts the device in the Network and appliance class. The default lists common switch, storage, firewall, phone and printer makers; add a prefix once you have checked what a device in Other is, or add a rule (below). Restore the default list puts it back.
Saving recomputes every device at once and is audited with the grid before and after.
Lost contact and new devices (the card below the grid). Two windows decide when a device counts:
- Lost contact after (days), 32 by default (1 to 365). A device no connected tool has seen for longer than this has lost contact: it stays in the gap filter, the Device coverage report (a Lost contact column and summary) and every automatic test's count, as a gap on every capability its class requires, until you retire it or an exception covers the capability. A laptop that goes dark therefore lowers measured coverage instead of raising it. The window is the grace: a device quiet for less is judged on its sightings as before. It is separate from the active window above, which says how recent one tool's sighting must be, and can be at most that window: a device silent for longer than the active window but not yet past a longer lost contact window would be neither active nor lost contact, and would drop out of the count. Saving a longer one is refused. The defaults, 32 and 35 days, keep a device that only a monthly scanner sees from reading Lost contact between scans. An installation that saved either window before keeps what it saved, and one that never did gets the new defaults; if the saved pair has lost contact longer than the active window, lost contact counts from the active window, and the card says so until you change it.
- New device grace (days, 0 for none), 7 by default (0 to 90). A device new to the estate (every tool first reported it after that tool's own first sync) is not counted for this long from its first sighting, so one being set up does not fail a test on its first day. Devices that arrive with a newly connected tool get no grace.
Shortening either needs nothing more. Lengthening either counts devices later, so it asks for a reason, is audited with the windows before and after, is listed in the Overrides report as a coverage relaxation, and is held for approval while Relaxation approval is on. Saving recomputes every device.
Retiring a device. On a device that has lost contact or is not seen recently, an administrator clicks Retire device and gives a reason (sold, lost, returned). It stops counting at once; if a connected tool sees it again it counts again on its own. Return to service undoes it. Each retirement is audited and listed in the Overrides report, and the Device coverage report notes that devices were retired after a snapshot was taken.
Preview the change works out, without saving, what the grid and active window you have set would do today: devices with a required gap and the coverage of every required capability, today and after, and each enabled automatic test whose reading (covered, required, pass or fail) would change. It runs the same merge and evaluation as a save, in a read-only transaction, and writes nothing: no setting, no device, no snapshot, no audit row. The network and appliance list is not previewed, since applying it reclassifies stored records. Results are still recorded only by the next daily snapshot. Those who manage automatic tests see the same kind of reading in the Add test and Edit dialogs on a control: what the test would read on today's register as they change it.
Operating system rules
Below the grid, Operating system rules maps an operating system value a
tool reports, or a device's hostname, to a class: "every device whose scanner
reports Mystery Box OS is a Server", "every device whose operating system
starts with FreeBSD is a Server", "every device whose hostname starts with
nas- is Storage". Use it for a value the built-in mapping leaves in
Other, or to correct one it maps wrongly. Each rule has:
- Tool: one of the connected tools, or Any tool. A rule for a tool that was disconnected later stays, and keeps its tool when edited.
- Match on: Operating system (the value below) or Hostname (each
name the tool reports for the device: its short name, such as
nas-01, and its full name, such asnas-01.example.com). - How: is exactly, starts with or contains, always ignoring
case and spaces at either end. A hostname rule is the way to class a few
machines apart from others running the same operating system: a rule on
FreeBSDalone would reclassify every FreeBSD machine. - Value: for an operating system rule, the field each tool's class comes
from, without a version, so one rule holds across updates: Taegis's OS family and system type joined by a slash
(
WINDOWS / NT_SERVER,WINDOWS / NT_WORKSTATION,WINDOWS / NT_DOMAIN_CONTROLLER, andLINUXalone, since Taegis reports no system type for Linux), Tenable's detected operating system (Microsoft Windows Server 2019), Intune's operating system (Windows,iOS) and Defender's OS platform (Windows11). Taegis reports every Windows device under the one familyWINDOWS, so the system type is what lets a Taegis rule cover workstations without touching servers and domain controllers. Each device page shows the exact value every tool reports, so copy it from there. - Class: any of the classes in the grid.
The order that decides a device's class, highest first:
- A class set on the device itself (Set class, below).
- Rules. When several match one device's record, a hostname rule wins over an operating system rule, a rule for the record's own tool over one for Any tool, is exactly over starts with over contains, and then the longer value. The order never depends on when rules were added.
- The built-in mapping, which includes the Network and appliance operating systems list above. A rule therefore wins over that list too.
Where a device's tools disagree after the rules apply, the most specific class still wins. A rule changes classes and coverage only, never how records are merged into devices, so device pages and their links stay put.
Click Add rule to make one, or Edit and Delete on a row. The list
shows each rule's tool, what it matches and how, its value, class, how many
devices it classifies, and who set it and when. A second rule for the same
tool, match and value is refused; edit the existing one instead. Rules save on their own, without Save coverage:
each change recomputes every device at once, applies to every device synced
later, and is written to the audit log (module settings, entity
deviceOsRule, actions create, update and delete, with the rule before
and after). Rules, like every device setting, cannot be changed in demo mode.
An administrator can also make a rule from a device's page: the Operating system values card lists the value each tool reports for that device and what classifies it, and Treat this OS as… picks the class and whether the rule covers only that tool or any tool. When a rule for that value and scope already exists, saving changes it. The page then says the class was set by the rule, and the register's Classified by a rule quick filter lists every device whose class a rule set.
Syncs
The worker syncs every connected tool daily at 04:15 UTC, and an administrator can click Sync now on a tool's card; the card lists the latest runs with their counts: records kept (and left out), new, changed, removed and gone stale. One sync of a tool runs at a time. A sync:
- Taegis: reads every asset record, 500 at a time, and stops if the count read differs from the total Taegis reports, so a partial list is never taken for the whole estate. Archived records (deleted or archived in Taegis) are left out, and records sharing a hostname (a reinstall, or an older agent's record) count as one machine, the most recently seen.
- Tenable: requests an asset export, waits for it (up to 30 minutes) and reads every chunk.
- Intune: reads every managed device from Microsoft Graph, following each next-page link to the end. Microsoft gives no total for this list, so none is checked. Graph's list leaves the Ethernet MAC address empty (Microsoft returns it only when one device is read at a time), so Intune devices match on the Entra device id, name and Wi-Fi MAC.
- Defender for Endpoint: reads every machine, 10,000 at a time. Machines Defender reports as not onboarded (found on the network by device discovery, or unsupported) are left out, like Taegis's archived records: no sensor ever ran on them. Machines sharing a hostname (a reimage) count as one, the most recently seen. Machines Defender reports as Inactive (no report for seven days) are kept and their records marked stale, whatever their last-seen date: such a device shows Stale for EDR (and for vulnerability scanning, while Defender provides it), and the Missing a required capability filter lists it where the grid requires the capability, so a laptop that goes quiet stays visible rather than turning Missing. Machines with other health states (no sensor data, impaired communication) are kept, and their last-seen date decides whether they are stale.
- Phones and tablets (iOS, iPadOS, Android) from Intune or Defender go in the Mobile class and are matched only on the Entra device id and MAC, never by name: many are named just "iPhone".
- Retries a request that is throttled (429) or meets a server error, waiting longer each time, up to four attempts.
- Replaces each record's stored details with the latest, removes records the tool no longer returns, and recomputes the merged devices and their coverage. A second sync of unchanged data changes nothing.
Each run is in the audit log (module devices, action sync) with its counts. A
failed run keeps the previous data, says why on the card, and alerts every
administrator ("A security tool sync failed", at most once an hour per tool).
Failure messages name the status and request, never what the tool sent back.
What is stored, and who sees it
For each record a tool returns: the tool's id, hostname, short names, MAC and IPv4 addresses, the Microsoft Entra device id (Intune and Defender), operating system, class, when the tool last saw it, and the record exactly as the tool sent it, the latest copy only. Hostnames often name a person, and a tool's record can include usernames, so treat these as personal data: add the processing to your records of processing, and note that they stay while the tool is connected and for the retention period after it is disconnected, and are in your server backups.
The Devices register and device pages need the Devices permission
(devices:read). A list of the machines that lack EDR or scanning is a map
for an attacker, so it is granted apart from assets: by default only
administrators and the built-in GRC Manager role hold it. Risk Owners,
Auditors and every other built-in role do not, and custom roles get it only
when an administrator adds it in the role editor. Without it the Devices tab
is hidden and the register, device pages and gap filter answer forbidden. The
coverage grid, operating system rules, credentials, Sync now, deleting stored
data, setting a device's class and what a tool sent stay with administrators
only. Device exceptions follow their own rules (Device exceptions, below).
Setting a device's class
The class decides which row of the grid a device is judged by. When the tools
get it wrong (a retired domain controller kept as a lab box, an appliance the
scanner reports as a server), an administrator can set it: on the device's
page, click Set class, choose the class and give a reason. The class you
set wins over every tool's and every operating system rule, and stays through
every sync, whatever the tools later report. To fix every device reporting
the same value at once, use an operating system rule instead. The page shows it as "Set by" the administrator with the date
and the reason, beside each tool's reported class. Clear returns the
device to the rules and the built-in mapping, where the most specific class
wins. Coverage recomputes when you set or clear it, and both are written to
the audit log (module devices, actions class.override and class.clear,
with the reason). The register's Class overridden quick filter lists every
device whose class was set by hand.
Device exceptions
An accepted gap on one device (an appliance that cannot run an EDR agent, a machine due for retirement) goes through the exception workflow the risk, compliance and policy modules use. On the device's page, Exceptions → Request an exception takes the capabilities (only those the device has a gap for today), a title, the justification, an approver and an expiry date, at most 366 days ahead.
- Who requests: someone with the Devices permission and the right that manages automatic coverage tests (controls update at All), or an administrator, since an exception changes what those tests count. A control's owners (its named owner, or a member of its owner group) may also request one for a device their control's automatic tests counted, the same devices whose pages they can open without the Devices permission; the server checks this on every request, and the approver rules are the same.
- Who decides: the named approver, who must be able to read devices; an
administrator may stand in, and so may the approver's delegate. The
requester never decides their own (with separation of duties relaxed, it is
recorded as self-approved). Every device exception has a named approver.
The request waits in the approver's My Tasks until decided; a rejection
needs a reason. A request still undecided after the expiry it asked for is
never marked expired (top-10 #10): it stays open as Decision overdue,
amber, in the approver's and their delegate's My Tasks, and approving it
takes a new expiry, within 366 days of today or of a renewal's start. The
same holds for risk, compliance and policy exceptions, which have no cap
beyond a date not in the past. The audit row of such an approval carries
pastRequestedExpiry,expiresAtandrequestedExpiresAt, and the Overrides report lists it. The nightly sweep marks only approved exceptions expired; requests the sweep marked expired before this change stay so. - Renewal (top-10 #5): an approved exception that has not ended can be
renewed from its card or the expiring email's link. The renewal is a request
for the same device and capabilities, stored with
renewsIdandstartsAt(the day after the current one ends), and counts from that day once approved, so coverage never lapses between the two. Its expiry is at most 366 days from its start. A request overlapping an open exception's days is refused, with a pointer to renewal. A requested or approved renewal stops the expiring reminder, and an approved one stops the expired email. - What counts: an exception counts only while it is approved and its expiry date has not passed in the organization's time zone. Approving recomputes every device in the same transaction, so the device counts as covered for those capabilities at once wherever no tool covers them (a tool's sighting is always credited first). The recompute, and so every daily snapshot, which recomputes before it counts, leaves an exception out from the day after its expiry date, whether or not the nightly sweep has yet marked it expired. All of this is decided on the server: the register's Covered (exception), the gap filter, the snapshots, the Device coverage report and the automatic tests all read the one stored result.
- Evidence: each snapshot's device list records which capabilities an exception covered that day, the CSV of the devices behind a test result says Covered (exception), and the Device coverage report's note names device exceptions when one was approved or expired after the snapshot.
- Audit: requests, approvals, rejections and expiries are written to the
audit log (module devices, entity
deviceException, actionscreate,approve,rejectandexpire), with the device, capabilities, expiry, approver, decider and reason. - Where to see them: the device's Exceptions card, and every device exception on Settings → Device coverage, for those with the Devices permission. They are also in the Exceptions report (type Device) and, approved and expiring within 30 days, in the dashboard's deadlines strip, as the other exception types are: everyone with the Devices permission sees them in the report, and a control owner those on devices their control's tests counted; the strip shows each one to its requester, its approver and administrators.
- Emails: a request goes to its approver (
device.exception.requested) and a decision to its requester (device.exception.decided); the daily sweep reminds the requester while an approved one is within the exception lead days of its expiry (device.exception.expiring, a reminder that a digest can bundle), and the nightly sweep that marks it expired tells the requester once (device.exception.expired). The requester hears only while they can still open the device. Notification rules can also use the Device exception record type, for those who read devices.
An exception names the device it was requested for. If a later merge or the tools' own lists remove that device from the register, the exception stays in the list with the device's name and no longer counts. A capability another open exception already covers on the device is refused. Requesting and deciding are refused in demo mode.
Probable matches: confirm or split
Two devices that share only an IPv4 address, from different tools, are kept apart and marked as probably the same machine: a scan by address without name resolution and a reused address look alike. Both count in the register, and each shows Probable for the capability only the other's tool provides. On either device's page an administrator can decide, with a reason:
- Same machine merges the two into one device, covered by both tools. The page moves to the merged device.
- Not the same keeps them apart and drops the probable mark, so neither borrows the other's coverage: a capability only the other tool provided shows Missing.
A merge keeps one device's id (the one holding more of the records, then the older) and removes the other, losing nothing set on it by hand. When only the removed device has a class set by hand, the merged device takes it, with its reason, who set it and when. When both have one and they differ, the merged device keeps its own and the other is recorded in the audit log and on the decision. The confirm dialog says which of these will happen before you confirm. A link to the removed device (from the audit log, a coverage snapshot's device list or a bookmark) opens a page saying which device it was merged into.
The decision is kept on the two tool records that matched, by tool and the
tool's own id, not on the device, so it holds through every later sync and
push for as long as both tools report those records. It never undoes a match
by Entra device id, name or MAC. Each page lists the decisions on its records
("Confirmed as one machine with…", "Kept apart from…") with who decided, when
and why. A pair kept apart has Same machine beside it, which replaces that
decision in one step (audited as a confirm replacing the split). Undo
returns the two records to the matching rules alone. Undoing a merge brings the
removed device back under its own id and creation date, with its class set by
hand, and takes a class it passed to the merged device back off it, unless
someone has changed that class since; anything it cannot put back (that
changed class, or a device still joined by a firm match) is named in the
message and in the audit entry.
Confirming, splitting and undoing recompute coverage at once and are written
to the audit log on the device (module devices, actions match.confirm,
match.split and match.undo, with both records and the reason). They are
administrator only and refused in demo mode. Removing a custom source removes
the decisions on its records.

Custom sources: devices pushed by your own script
For a tool TraxrGRC has no connection for (CrowdStrike, Qualys, Jamf, an in-house inventory), declare a custom source and have a script of your own send its device list. Nothing about the tool is stored in the application: no credentials of yours, no code. The script reads the tool however you like and sends normalized records.
- On Settings → Integrations → Custom sources, click Add a custom source. Give a name (CrowdStrike Falcon), a short name (Falcon, shown in the register and the coverage grid, and typed to confirm a deletion; it cannot repeat a built-in tool's or another source's), and what it provides: EDR, vulnerability scanning, device management, log forwarding. The source is connected at once and appears in the coverage grid as a provider of those capabilities; Edit changes them later.
- Click Issue token. The push token (
dpt_...) is shown once: store it where the script runs, as a secret. It is separate from API tokens and writes only this source's devices, through one endpoint, and grants nothing else; nobody's role gains a write right on devices. It expires like an API token, after the maximum lifetime set in Settings → Sessions (365 days by default; with no maximum set it does not expire), and every administrator is emailed 14 days before. Rotate token issues a new one with a new expiry and the old one stops at once, with no overlap, so put the new one in the script straight away; Revoke token stops pushes until a new one is issued, and the card says when it was revoked. Issuing, rotating and revoking are written to the audit log (module devices, actionspushToken.create,pushToken.rotate,pushToken.revoke), and issuing or rotating alerts administrators; the token itself is never written anywhere. - Run the script on a schedule, daily or more often. The card shows the endpoint, when the token was issued, last used and expires, and the latest pushes with their counts. A source with no working token (none issued, revoked or expired) reads "Connected, but pushes are refused until a push token is issued".

Each push is the full list. Like a sync, a push replaces everything the
source reported before: records not sent are removed, so send every device
the tool knows each time, not only the changes. A list of up to 1,000 devices
goes in one request with "complete": true. A longer one goes in pages: the
first request (without runId) returns a runId; send each further page with
it, and "complete": true on the last. Nothing changes in the register until
the last page arrives; then the whole list is applied in one step and coverage
is recomputed. Starting a new push abandons an unfinished one, and a push not
completed within an hour is refused and cleared by the daily job. A push with
no devices at all is refused: to clear a source, disconnect it and use
Delete stored data.
Each record takes:
| Field | Required | What it is |
|---|---|---|
externalId | yes | The tool's own id for the device, unique within the source |
hostname, names | no | The device's name and any other names; matched without the domain, as for every tool |
macs, ips | no | MAC and IPv4 addresses; randomized MACs, loopback and link-local addresses are ignored |
entraDeviceId | no | The Microsoft Entra device id, matched first, as from Intune and Defender |
os, osVersion | no | The operating system as the tool names it (Windows Server 2022) and its version; os is the value operating system rules match |
serialNumber | no | Kept with the record; not matched |
lastSeenAt | no | When the tool last heard from the device, ISO 8601 with a zone; a device not seen within the active window is stale |
inactive | no | true when the tool itself says it has stopped hearing from the device: its record is stale whatever its last-seen date |
Pushed devices merge with other tools' records exactly as theirs merge with each other (Entra device id, then name, then MAC, then IPv4 as a probable match), take their class from the operating system (the infrastructure list first) unless an operating system rule or an administrator's class says otherwise, and count toward coverage like any connected tool's.
Disconnecting a custom source keeps its records under the same rules as a disconnected tool: labeled, outside coverage, deleted by Delete stored data or the retention period. The Disconnect dialog shows the coverage it would cost, as for a built-in tool, and asks what happens to the push token:
- Keep the push token (the default), for a pause: while the source is
disconnected, every push with the token is refused with 409
source-disconnectedand writes nothing. Connect again and the same token works at once, with no change to the script. A kept token can still be revoked while the source is disconnected (Revoke token on its card). - Revoke the push token, for good: it stops working at once and stays revoked. After Connect again, issue a new token for the script.

The audit log records the choice on the source.disconnect entry
(pushToken: kept, revoked, or none when no token was issued), and a
revocation also writes pushToken.revoke. Connect again reuses the kept
records. A disconnected source with no data left can be Removed, with its
operating system rules and any kept token.
An example in Python 3 with no extra packages:
import json, os, urllib.request
ENDPOINT = "https://grc.example.com/api/v1/devices/sources/<source id>/records" # from the source's card
TOKEN = os.environ["GRC_PUSH_TOKEN"]
def send(body):
request = urllib.request.Request(ENDPOINT, data=json.dumps(body).encode(), method="POST",
headers={"Authorization": f"Bearer {TOKEN}", "Content-Type": "application/json"})
with urllib.request.urlopen(request) as response:
return json.load(response)["data"]
def devices():
# Read your tool here and yield one record per device.
yield {"externalId": "a1b2", "hostname": "web01.example.com", "macs": ["00:1a:2b:3c:4d:5e"],
"ips": ["10.0.0.5"], "os": "Ubuntu", "osVersion": "24.04", "lastSeenAt": "2026-11-15T08:00:00Z"}
records = list(devices())
pages = [records[start:start + 1000] for start in range(0, len(records), 1000)] or [[]]
run_id = None
for number, page in enumerate(pages, 1):
body = {"records": page, "complete": number == len(pages)}
if run_id:
body["runId"] = run_id
result = send(body)
run_id = result["runId"]
print(result) # {"runId": ..., "status": "succeeded", "received": ..., "counts": {...}, ...}
Or one request with curl: curl -fsS -X POST "$ENDPOINT" -H "Authorization: Bearer $GRC_PUSH_TOKEN" -H "Content-Type: application/json" -d '{"complete": true, "records": [{"externalId": "a1b2", "hostname": "web01"}]}'.
Answers: 200 with {"data": {...}}; 400 invalid-input (with the record's
index, and the field when it is one listed above; unknown fields are
refused), duplicate-external-id, empty-snapshot, last-seen-in-future
or too-many-records (200,000 in one push); 401 for a missing, wrong,
rotated or revoked token, and 401 token-expired for an expired one (rotate
it and update the script); 403 for another source's token; 409 run-not-open,
run-expired, or source-disconnected (the source is disconnected; the
token was kept, so pushes work again once it is connected); 413 for a request over 1 MB; 429 past 600 requests a
minute. Errors never repeat what was sent. Each completed push is written to
the audit log (module devices, action push, with its counts, never the
records), and refused tokens are logged as denied requests (module security,
action permission.denied) with the reason, the source id the request's URL
named (requestedSourceId, recorded even when no token matched) and, when
the token matched a source, that source (pushSourceId). The caller learns
none of this. Pushes are refused in demo mode.
Delivery alerts and push token expiry
A connected source that stops delivering is easy to miss: its devices age
into Stale one by one. When a connected tool has not synced successfully,
or a custom source has not completed a push, for the number of days on the
Delivery alerts card on Settings → Device coverage (3 by default, 1 to 90), every administrator is
emailed ("A device source has stopped delivering"), once per lapse: the next
successful sync or push ends the lapse, and a later silence alerts again. The
days count from the latest delivery, or from when the source was connected
(declared, or connected again) when that is later, so a new or reconnected
source has its full allowance; a disconnected source is never alerted on.
Each alert is written to the audit log as the system (module devices, action
source.silent). Changing the days is administrator only, refused in demo
mode and audited (module settings).
Fourteen days before a push token expires, every administrator is emailed
once for that token ("A push token expires soon", audit action
pushToken.reminder); a rotated token gets its own reminder. Both checks run
on the worker every ten minutes. Push tokens issued before expiry existed were
given 365 days from the upgrade that added it, so no script stopped working.

Daily coverage snapshots
Once a day the worker records the coverage state: for each device class and capability, the requirement in force and how many active devices were covered, stale, probable or missing, with the totals (devices, active, with a required capability, with a required gap) and the tools connected at the time. The daily sync job takes it after its syncs, so it reflects that morning's data. If that job did not run or failed before the snapshot, the worker's 10-minute job takes the day's snapshot after 10:00 UTC instead.
- One per UTC day, never changed. The first snapshot of a day stands, and no button takes one, so nobody can choose a good moment. A day the worker was down stays empty; it is never filled in later with another day's state.
- Counts and the device list behind them. Beside the counts, each
snapshot keeps the active devices it counted: each device's id, name and
class and its status per capability that day, so every test result can be
re-performed and its uncovered devices shown as they were. No address,
user or tool payload is kept. A device name can identify a person (a
laptop named after its user), so names are kept for a set period and then
cleared: Keep device names in snapshots for (days) on the
Disconnected tools' data card, 400 by default (a 12-month audit period
plus fieldwork), 30 to 3650, administrators only and audited. The daily
device job clears the names of every snapshot older than that and records
how many in the audit log (module devices, action
snapshotNames.clear). The device id, class and status stay, so the counts and every result can still be re-performed; a cleared name reads "Name cleared after N days" on the control's tab and in the CSV. Until then only the people below see the names. Snapshots are kept indefinitely; disconnecting a tool, deleting its stored data and the retention period remove records, never history, and never a snapshot's device list. Snapshots taken before 2026-11-16 have counts only. - Nothing is taken while no tool is connected and no records are kept.
- Each snapshot is in the audit log (module devices, action
snapshot, as the system) with its totals, how many devices its list holds and each coverage test's result. - For a worker that missed a day,
npx tsx --tsconfig tsconfig.worker.json scripts/run-coverage-snapshot.tson the server takes today's snapshot now, if the day has none.
The Device coverage report in the Report Center reads these snapshots (see the User Manual). It needs Reports read and the Devices permission, like the register. Its percentages are rounded down to one decimal, and the report, its coverage columns and its CSV say so. A scheduled email of it carries the report's own file name (with the snapshot's day) and its note when settings changed after the snapshot.
Automatic coverage tests on controls
A control can carry coverage tests, so its evidence comes from the tools every day rather than a yearly attestation. Open the control, then Automatic tests, then Add test. Administrators and anyone whose role updates controls at All (the GRC Manager role, for one) manage tests (Chris's decision of 2026-11-16); the tab shows to them once a tool is connected, and to everyone who reads the control once it has a test, naming who manages tests to those who cannot (break-glass accounts, such as the install's first administrator, are left out of that line). A test names:
- a capability, or Every required capability;
- device classes, or none for every class;
- a pass threshold, a percentage with up to two decimals (98, 99.5);
- what this test evidences for the control, required: one line such as "The EDR agent is installed and reporting on every server". Tests added before 2026-11-16 read "Not recorded: this test was set up before each test had to say what it evidences." until someone edits them; those who manage tests see a prompt to.
Each daily snapshot evaluates every test that is on: of the active devices the coverage grid requires the capability on, in those classes, the share covered must reach the threshold. The comparison is exact (2 of 3 passes at 66.66% and fails at 66.67%). Stale, probable and missing count as not covered, as in the Missing a required capability filter. With nothing required (the grid not set for those classes, or no active device of them) the result is Nothing required, never a pass. Point the test at the control your compliance mappings already link to CM-8, RA-5 or SI-4: the control carries it into the frameworks and their crosswalks.
The dialog shows the control's success criterion (from its check settings) beside the threshold. When the criterion reads as a coverage percentage (a percentage of devices with an agent installed, enrolled, reporting, scanned or covered) it warns when the threshold is lower; when it does not (detections triaged in time, findings remediated within an SLA), the tab and dialog warn that the results show coverage only, not that the criterion is met. Results are labeled Coverage, rounded down to one decimal so a percentage never reads as reaching a threshold the exact count misses.

Results are evidence and are never changed or deleted. Changing a test applies
from the next snapshot, and each result keeps the definition it was evaluated
with. A test with results can only be turned off (no new results, history
kept): its Delete is disabled and says how many results it has. A test
with none can be deleted. A control with results cannot be deleted, only
retired, as with recorded checks, and a retired control's tests record
nothing. Each test says who created it and when, and who last changed it, when
and what changed, old and new ("threshold 95% to 100%"); the creator is kept
in coverage_tests.createdById (tests from before 2026-11-16 take it from
their coverageTest.create audit row, else whoever last saved them).
Once a test has results its capability and device classes are locked, in
the dialog and on the server (a save that changes them is refused), so its
history cannot be repurposed under a new definition. The threshold, on or
off, and what it evidences stay editable. To measure something else, choose
Replace with a new test in the dialog: one save adds the new test and
turns the old one off with its results kept, needs a reason, records both
(coverageTest.create with replaces, coverageTest.update with
replacedBy) and emails the control's owners when the old test was on. The
old test then reads Replaced by the new one and the new one Replaces
the old one, each with the day, who did it and the reason, linked to each
other; a test with results says what it measures is fixed.
Turning a test off or lowering its threshold takes a reason. The dialog asks for it when the change relaxes the test; it is
recorded in the audit row and the control's owners (its named owner and its
owner group's members, not you) are emailed with the change and the reason
(template control.coverage.relaxed, always sent). Raising a threshold,
or turning a test on needs none.
Adding, changing, turning off and deleting a test are recorded on the
control's History tab (module controls, actions coverageTest.create,
coverageTest.update, coverageTest.delete, with the threshold as a
percentage and any reason), each row reading what changed with its old and new
values, and so is each download of a result's device list
(coverageTest.devicesExport).
Who sees what. Anyone who can read the control sees each result, its percentage and its counts ("24 of 27 covered; 26 of 27 needed to pass"). The devices behind a result (which were not covered that day, and the CSV of every device it counted) show to the control's named owner, the members of its owner group, anyone holding the built-in Auditor role, and anyone with the Devices permission. That grants no Devices permission: the register and the Device coverage report still need it. The owner of a risk the control treats (by name or owner group; the risk not archived) sees the devices that were not covered, and only those, in the list and the CSV, and can open those devices' pages, so the risk's "open the control to see which devices fail" leads somewhere. They cannot request a device exception.
Population per snapshot (auditors). Administrators, those with the Devices
permission and the built-in Auditor and Internal Auditor roles see a
Population button beside each result in a test's history. It lists, as
that day's snapshot recorded them and never from the live register, the
devices of the test's classes that were counted, had lost contact (counted as
gaps), were inactive or were excluded (retired, new and in their grace,
reported only by disconnected tools, or of no known class), each with its
reason, and the devices that joined or left the test's population since the
previous snapshot, with why. Download the population (CSV) exports it,
audited on the control (coverageTest.populationExport). Snapshots taken
before this release kept only counted devices, and the dialog says so. Each
device also shows when each connected tool last saw it that day ("Taegis
2026-11-17, Tenable 2026-11-02"), here, in the tab's list of uncovered devices
and in both CSVs (Last seen, Last seen by tool; DA5); snapshots from
before 2026-11-18 kept only the latest sighting.
The control's owners (and those with the Devices permission) can also open the device page of each device the control's tests counted, linked from the tab: the server allows an owner only devices in the population of a result of one of their controls' tests (Chris's decision of 2026-11-16), with no register and no other device. The built-in Auditor role, administrators and anyone who manages coverage tests get How coverage is counted, linked from the tab: the active window, the sources (name, capabilities, connected or not, last successful delivery; never a token or credential) and the coverage grid, read only, so a result's population can be checked without the Devices permission. In the Add test dialog, each device class says what the grid requires of it for the chosen capability, or that it would count nothing ("Optional, so not counted").
When a test fails. The check status (checks and tasks) does not
change. The control instead shows Automatic test failing since DATE (N
days) on its header and tab, the Controls list has a Failing filter on
its Automatic tests column, the Control check status widget counts such
controls, the owner has an entry in My Tasks until it passes, and the
requirements and risks the control is mapped to show Automatic test
failing beside its status, without counting it as a failed check. No finding
is raised automatically; the tab offers Record a failed check for each
failing test to whoever can record results on the control, which fills in the
result and what the snapshot found. With an audit plan chosen for findings
from failed checks (Control check settings), the finding it raises records
the test (audit_findings.sourceCoverageTestId); its deadline is the POA&M due
days for Moderate severity from today (90 by default), not the 30-day re-check.
A failing test counts as tracked (top-10 #9) by that finding while open; by a
stored link to an open finding on the same control (Link this test to it,
offered when one exists, naming it); or by Acknowledge with a plan (an
owner, a target date up to a year ahead and a note), until the target date has
passed, when it reads due for review. Links and plans are kept in
coverage_test_tracking, one per test, set by anyone with update on the
control, and audited on the control as coverageTest.track; a link adds a
line to the finding's thread. With no plan chosen the tab says a failed check
raises no finding. After 14 failing days in a row with nothing tracking the
test, the tab says Nothing tracks this yet and the owner's My Tasks entry
has Track it (Review the plan once a plan is due), opening the tab at
that test; still no automatic finding. When
every failing test of a control is tracked by a finding on the owner's own
list, My Tasks folds the failing-test entry into the finding's. When a test's
result is a fail and its previous result was not (a first result that fails
included), the control's owner gets one email (template
control.coverage.failed, always sent like a failed check's, linking to the
control's Automatic tests tab); a control with no owner emails every active
administrator instead. A test that stays failing, a pass and Nothing required
send nothing. The email goes once the snapshot is saved, and a send that
fails never undoes the snapshot: the delivery log shows it, and the
snapshot's audit row marks the test with alert (owner or
administrators). A notification rule with the Coverage test failed
trigger fires on the same mark, for groups and webhooks. Nothing is sent in
demo mode, and tests cannot be managed there.
Turned off while failing (DA1). A test turned off, replaced or given a
lower threshold while its latest result is a fail keeps a marker, "test was
failing when turned off on date" (or "relaxed"), on the control's header, and
the Control check status widget counts such controls, until the next coverage
snapshot is taken (stored on the test as failingWhenRelaxedAt and
failingWhenRelaxedChange; the audit row carries failingWhenRelaxed). The
failure therefore never leaves the record on the day it was turned off. With
nothing tracking it otherwise, the tab says Nothing tracks this yet, and
when the control has an open finding not linked to the test it names that
finding (auditor-14).
Testing. SECURITY_TOOLS_TEST_ENDPOINT sends every call to a stand-in
server instead of Taegis, Tenable and Microsoft (sign-in, Graph and the
Defender API, under /microsoft); the end-to-end tests use it. It is
honored only for a loopback address, so a stray value cannot send a key
anywhere else. Never set it on a real instance.
9.5 Key-term suggestions (local AI)
Legal can ask a language model to read a contract document and suggest its key terms (see the User Manual, Suggesting key terms from a document). The feature is off by default, on new and upgraded instances alike, and stays off until an administrator turns it on in Settings → Integrations → Key-term suggestions (local AI). Nothing a model returns reaches a contract until a person accepts it, through the contract's own update and its audit.

What it needs. A model server your organization runs: Ollama, or an
OpenAI-compatible server (llama.cpp's llama-server, vLLM, LM Studio). It
reads the text TraxrGRC already extracts from contract files for search, so
.docx and text-layer PDFs work and scanned PDFs do not.
Choosing a model. The default, qwen3.8:27b-q6-128k, scored best in an
evaluation on 14 public commercial contracts (2026-10-31): 99% of fields
correct with no invented quotes, about 23 seconds a contract, and it fits in
24 GB of GPU memory. gemma4:31b was a close second. Smaller, faster models
were looser on termination for convenience. The context size defaults to
40,960 tokens, which matches the evaluation; a document too long for it is
refused with a message rather than cut short.
Setting it up
- Run the model where the TraxrGRC server can reach it. With Ollama:
ollama pull qwen3.8:27b-q6-128k, listening on port 11434. - In the card, turn on Offer key-term suggestions on contracts, choose
the endpoint type and enter the address (for example
http://192.168.1.20:11434; in Docker, an address the container can reach, notlocalhost). If the endpoint, or a proxy in front of it such as Caddy, requires a bearer token, enter it as the API key; it is sent with every request, for Ollama too. - Load models asks the endpoint what it serves; the card loads them by
itself once an endpoint is saved. Model then lists only those, and
Context (tokens) only sizes the model supports:
- Ollama sets the context on each request, so the list runs from 4K up to
the model's maximum, and choosing a model selects the size it was built
with (a Modelfile's
num_ctx), if any. - llama.cpp, vLLM and LM Studio fix the context when the model loads, so the card shows the server's value and it is changed on the server. An LM Studio model that isn't loaded yet offers sizes up to its maximum.
- A server that reports no context leaves a number to type, as does an endpoint that can't be reached; the card says why.
- Ollama sets the context on each request, so the list runs from 4K up to
the model's maximum, and choosing a model selects the size it was built
with (a Modelfile's
- Save. When the endpoint answers, saving refuses a model it doesn't list or a context larger than the model allows.
- Test connection reaches the endpoint and checks the model is listed. Neither it nor loading the models sends contract text.
The private-network check. Contract text goes only to an endpoint whose
host resolves to a private (RFC 1918), loopback or link-local address, or an
IPv6 unique-local or link-local one. The check runs when the settings are
saved and again on every call, inside the connection itself, so the address
that was checked is the one used. An endpoint elsewhere is refused unless an
administrator ticks Approved for contract text outside the private
network; tick it only if your organization has approved that service to
receive contract text. The cloud metadata addresses (169.254.169.254 and
its IPv6 form) are refused whatever is ticked. The client follows no
redirects. Saving the settings is audited and emails every administrator.
Notes
- One document is read at a time (a stately worker queue). A run left running by a stopped worker is marked failed after an hour; ask again.
scripts/run-key-term-suggestions.tsruns anything queued at once (for testing a model by hand, in the worker container:./node_modules/.bin/tsx --tsconfig tsconfig.worker.json scripts/run-key-term-suggestions.ts).- Suggestions are ordinary database rows, so a database restore brings back those from its time. Accepted values are on the contract and in the audit trail, labeled with the run; anything not accepted can be asked for again.
- There is no REST API or AI-assistant (MCP) access to suggestions.
- The demo instance refuses these settings, as it does the other integrations; its Harwick NDA shows a recorded run.
9.6 API tokens
Settings → API Tokens (address /settings/api-tokens) issues bearer
tokens for the REST API and the MCP server.
| Action | Needs |
|---|---|
| Open the page | apiTokens:read. With it at all you see every token; otherwise only your own. |
| Create a token | apiTokens:create |
| Revoke your own token | apiTokens:update |
| Revoke someone else's | apiTokens:update at all |
None of the built-in roles holds API token rights, so by default only administrators can issue tokens.
The list shows each token's Name, Scopes, Created by, Created, Last used, Expires and Status (Active, Expired or Revoked). Last used is updated at most once a minute.
9.6.1 Creating a token
Watch the video: How to create an API token and set up MCP
- Click Create token. The Create API token dialog opens.
- Enter a Name that says what uses it and who owns it, for example "SIEM export (Security Ops)". Up to 120 characters.
- Optionally set an Expiry date. The label states the longest lifetime allowed (365 days unless changed on the Sessions page). Blank gets the longest lifetime; a later date is refused. When the maximum is 0, a blank date means the token never expires.
- Check the scopes: per module, Read, Create, Update, Delete, and Review where the module has it (Risks, Compliance, Policies, Data privacy). At least one is required.
- Click Create token.
- The Token created dialog shows the token once. Copy it into your secret store, then click Done. Only a SHA-256 hash is kept; a lost token cannot be recovered, only replaced.

Creating a token is recorded in the Audit Log and emails every administrator a security alert naming the token, its scopes and expiry.
9.6.2 What a token can do
A token acts as the user who created it, and every request must pass both checks:
- The token's scopes. They bound everything the request does, beyond the endpoint it calls: creating a risk from a DPIA also needs Create on Risks, linking a vendor needs Read on Third parties, and mappings to modules the token cannot read come back hidden.
- The creator's current rights, including own-level access, checked on every request. A token never exceeds its creator. If the creator loses a right, the token loses it too; if the creator is deactivated or deleted, the token stops working (401).
A token works on the REST API and the MCP server. It does not work at the SCIM address, and SCIM tokens do not work on the API.
9.6.3 Expiry, revocation and restores
- An expired token is refused at once and shows Expired.
- Click the trash on a token's row and confirm Revoke token? to stop it. Revocation is immediate, cannot be undone, and is audited.
restore:finishrevokes every API token and every SCIM token after a restore (see the Disaster Recovery Guide). Plan to issue new tokens to every integration, and a new SCIM token to the identity provider, afterward.- Changing the maximum lifetime on the Sessions page affects new tokens only.
9.7 The REST API for administrators
Developers find the endpoints, parameters and payloads in the OpenAPI document and the User Manual chapter REST API. What an administrator needs to know:
- Base address:
https://<your address>/api/v1. Requests and responses are JSON; lists page withpageandpageSize(at most 200). - Authentication:
Authorization: Bearer aat_...on every request. Missing, unknown, revoked or expired tokens get 401; missing scopes or creator rights get 403. - OpenAPI document:
/api/v1/openapi, public, cached for five minutes, titled with the product name. Load it into a viewer or client generator. Each operation states the scope it needs. - Coverage: risks (with classifications and the risk scale), controls, assets, business units, compliance packages and analyses, policies, third parties, incidents, audits, projects, awareness, data privacy, account reviews, assessments, evidence, contracts (with obligations, the review and signature steps, templates and the clause library) and custom fields. Not covered: users, groups, roles, settings pages, notifications, the Report Center, the dashboard, the Audit Log and backups.
- Settings through the API: creating risk classifications needs
settings:create; replacing the risk scale (PUT /api/v1/risk-scale) needssettings:update. Reading both needsrisks:read. - Decisions through the API: a contract's review steps are open to a
token whose scopes and creator hold the right the step needs (submit:
contracts:update; take and send back:contracts:revieworcontracts:approve; approve:contracts:approve; mark signed:contracts:sign). Separation of duties and the document lock apply as on the page, and the step is audited the same way, naming the token. Submit takesapprovalAttachmentId, the version for approval, when the contract has more than one draft, redline or other copy, and its response listswarningsfor a term or renewal not yet stated. Approve takes it only for a contract submitted before versions were named. Mark signed takes the term (termKindend_dateorno_fixed_term,expiresAt,noFixedTermReason,renewalChoiceautoornone,renewalTermMonths,noticePeriodDays) wherever the contract does not state it, andversionReasonwhen the executed copy is not the approved version; without them it answers 400. A token never uses its creator's cover (delegations), so give an integration that approves or signs a token from someone who holds the right. Sending for signature with DocuSign and uploading templates are not in the API. - Auditing: every change is recorded in the Audit Log naming the token and
its creator. Every refusal is recorded too (module
security, actionpermission.denied, with the reason: missing token, invalid, revoked, expired, scope, creator unavailable, creator rights or rate-limited), at most ten a minute per person or address. - Rate limit: each token may make 600 requests a minute on
/api/v1by default. Past that, requests get429with aRetry-Afterheader giving the seconds until the token's one-minute window ends, and the body{"error":"rate_limited"}. Only the first refusal in each window is recorded (permission.denied, reasonrate-limited). SetAPI_RATE_LIMIT_PER_MINUTEin.envto change the budget, or0to turn it off (see Configuration Reference). The count is kept in the database, so it covers all web processes together. If the database can't answer, each process counts for itself until it can. Large writes are also bounded by the record validation limits (for example 100,000 characters of free text). - Notifications: API changes send no rule emails unless Notify on API changes and CSV imports is on.
A quick check that a token works:
curl -s -H "Authorization: Bearer $GRC_API_TOKEN" \
"https://grc.example.com/api/v1/risks?pageSize=1"
9.8 AI assistants (MCP)
TraxrGRC includes a Model Context Protocol server at /api/mcp, so AI
assistants (Microsoft Copilot Studio agents, GitHub Copilot in VS Code, Claude
Code and other MCP clients) can search and read records and attach evidence on
behalf of a user. The full reference, with setup for each client, is
docs/MCP.md; this section covers the administrator's decisions.

9.8.1 Turning it on
Settings → AI assistants (address /settings/mcp) opens with
settings:read; only an administrator can save. Every save is audited and
emailed to every administrator.
| Setting | Default | Effect |
|---|---|---|
| Allow AI assistants to connect | Off | Turns on /api/mcp. While off, the address and its metadata documents answer 404. |
| Include privacy records | Off | While off, processing activities, DPIAs, personal data breaches, transfer impact assessments, DPA fields on vendors, system data fields on assets and Data Liaison questionnaires are never returned or accepted, whatever the user may see in the app. |
| Accept Entra ID access tokens | Off | Lets people sign in to a shared Copilot Studio agent as themselves. Needs the Directory (tenant) ID, Application (client) ID, optionally the Application ID URI (default api://<client ID>) and the Required scope (default Mcp.Access). |
There is no per-user switch: while the endpoint is on, anyone with an API token or an Entra sign-in can use it. Control access through who may hold tokens.
9.8.2 What an assistant can do
Twenty tools, all acting as one named user with that user's live permissions:
| Tool | Purpose |
|---|---|
search | Text search across risks, controls, policies, requirements, vendors, assets, audit plans and findings, incidents, projects, business units, evidence and contracts (processing activities and data processing agreements when privacy records are included) |
get_record | One record in full, with key linked records and attachment details (including each file's SHA-256) |
list_risks, list_controls, list_compliance, list_policies | Filtered lists |
my_open_items | What is waiting on the user |
list_evidence | Evidence and vendor reports with status, files, links and lock state |
create_evidence, link_evidence, lock_evidence | Record evidence or a vendor's report, link it to the records it supports (or unlink it), and lock it; they need evidence:create or evidence:update, and unlocking stays in the app and the REST API |
upload_evidence | Attach short evidence the assistant writes (up to 10 MB) to a record the user may update; for a control or compliance requirement it lands on new evidence linked to the record, which needs evidence:create |
request_upload_link | A browser link, valid 15 minutes, for the user to upload up to 10 files (25 MB each) to a record |
list_contracts | Contracts with their renewal state, term end and notice deadline; data processing agreements only when privacy records are included |
list_obligations | Contract obligations across the contracts the user can read, soonest due first, with owner, contract and days until due |
list_clauses, list_contract_templates | The clause library (preferred wording, fallbacks, never-accept notes) and the contract templates with their merge fields, never the files; both need contracts read on every contract, as Legal has |
request_contract | Asks Legal for a contract with an existing third party, as Request a contract does in the app; it needs contracts:create and leaves drafting, review, approval and signature to Legal in the app |
No tool deletes, unlocks, edits record fields or decides anything; the evidence tools only
create evidence, change its links and lock it, and request_contract only starts a request.
9.8.3 Authentication
- API token: the token's creator is the user, limited to the token's
scopes. A read-only assistant needs Read scopes only; the two upload tools
also need Update and Create on the target module, the evidence tools
Evidence Create or Update, and
request_contractContracts Create. In Copilot Studio an API key makes every person using the agent act as the token's owner, so use it only for personal agents. - Microsoft Entra ID: each person signs in as themselves. The account must already exist and be active with the same email as the Entra sign-in name; MCP never creates or links accounts. An account with a password or administrator rights is matched only after it has signed in with SAML or an administrator has allowed linking on it (see Authentication and Single Sign-On).
9.8.4 Limits, auditing and reachability
- 120 tool calls a minute, 20 uploads an hour and 20 upload links an hour, per token (per user for Entra sign-ins), counted in each web process.
- Requests are POST only, JSON only, up to 16 MB, and a request whose
Originis notAPP_URL's is refused. - Every tool call is recorded in the Audit Log (module
mcp, action the tool name) with the user, the token or Entra sign-in, the address and the arguments without file content. Upload links are audited when issued and for each file. - Copilot Studio calls from Microsoft's cloud and needs a public HTTPS address.
A private instance works only with assistants on the same network (VS Code,
Claude Code), and Node-based clients need
NODE_EXTRA_CA_CERTSfor a private certificate authority.
To connect Claude Code with a token, for example:
claude mcp add --transport http grc https://grc.example.com/api/mcp \
--header "Authorization: Bearer aat_..."
9.9 Service accounts and token practice
A token acts as its creator, so the account that creates it decides what the integration can ever do and whose name appears in the Audit Log.
Use a dedicated service account for each long-lived integration:
- Create a user for the integration, for example
[email protected], with a recognizable name ("Service: SIEM export"). Leave Administrator off. - Create a role holding exactly the rights the integration needs, plus Read and Create on API tokens, and attach it to a group containing only the service account.
- Sign in as the service account once, create the token with the same narrow scopes, and store it in your secret manager.
- Take the API token rights off the role afterward if you want no one using that account to issue more. The existing token keeps working.
With SSO only turned on, password sign-in is refused for everyone except break-glass administrators, so a service account must then exist in your identity provider to sign in and create its token.
Tokens created by a person's own account stop working when that person leaves and their account is deactivated, which breaks the integration. Short-lived tokens for one-off jobs (such as the bundle loader) can come from an administrator's account, revoked when the job is done.
Good practice for every token:
- One token per integration, named for the integration and its owner.
- The fewest scopes that work; Read only where the integration only reads.
- An expiry date. Put the renewal in a calendar: create the new token, switch the integration over, then revoke the old one.
- Keep tokens out of command lines, scripts and repositories: use a secret
manager, environment variables or
--token-file. - Review the API Tokens page regularly. Revoke tokens whose Last used is old or empty, and any whose owner has left.
- Watch the security alert emails for token creation you did not expect, and
the Audit Log for
permission.deniedentries naming a token. - After restoring a backup, issue new tokens:
restore:finishrevokes them all.