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

IntegrationAddressAuthenticates withTurned on by
REST API/api/v1/...API tokenAlways available
OpenAPI document/api/v1/openapiNone (public)Always available
AI assistants (MCP)/api/mcpAPI token, or Microsoft Entra ID access tokenSettings → AI assistants
SCIM provisioning/scim/v2SCIM tokenSettings → Provisioning (see Authentication and Single Sign-On)
LDAP and SAML sign-inDirectory or identity providerSettings → Integrations (see Authentication and Single Sign-On)
Outbound emailYour SMTP server, or Microsoft GraphSMTP credentials, or OAuth 2.0 client credentials for Microsoft 365Settings → Integrations (see Notifications and Email)
DocuSign e-signatureDocuSign's eSignature REST API (outbound)JWT grant with the integration key's RSA keySettings → Integrations (see DocuSign e-signature below)
DocuSign Connect/api/integrations/docusign/connect (inbound)HMAC signature from DocuSignSettings → Integrations, only when the instance is reachable from the internet
Microsoft Entra ID account feedsMicrosoft Graph, read only (outbound)Client credentials of an app registrationSettings → Integrations (see Microsoft Entra ID below)
Secureworks Taegis XDR devicesTaegis's regional API, read only (outbound)Client credentials of a Taegis API clientSettings → Integrations (see Security tools and device coverage below)
Tenable Vulnerability Management devicescloud.tenable.com, read only (outbound)A read-only API user's access and secret keysSettings → Integrations (see Security tools and device coverage below)
Microsoft Intune and Defender for Endpoint devicesMicrosoft Graph and the Defender for Endpoint API, read only (outbound)Client credentials of one app registrationSettings → Integrations (see Security tools and device coverage below)
Outside assessments/assess/<token>A per-request linkSending an assessment (see the User Manual, Online Assessments)
Health check/api/healthNone (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)

  1. 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.
  2. 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_found on the consent page).
  3. 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 -w prints a value that contains line breaks as hex, so a key read from the Keychain that way must be decoded before it is pasted.
  4. 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.
  5. 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.
  6. 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.)
  7. 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.
  8. 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

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.

The Microsoft Entra ID card in Settings → Integrations: the tenant, client ID and client secret of the app registration, the last sign-in switch and the Graph permissions to grant.
Figure 9.1. The Microsoft Entra ID card in Settings → Integrations: the tenant, client ID and client secret of the app registration, the last sign-in switch and the Graph permissions to grant.

Setting it up (a tenant administrator, about 10 minutes)

  1. 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.

  2. Grant the permissions. API permissions → Add a permission → Microsoft Graph → Application permissions, and add:

    PermissionNeeded 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.Read Microsoft 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.

  3. 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.

  4. 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 granted AuditLog.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.

  5. 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

  1. 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.
  2. 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.

  1. 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.
  2. Generate that user's API keys (an access key and a secret key) and keep them in your password manager.
  3. 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).

  1. 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.

  2. API permissions → Add a permission, then add application permissions (not delegated) for the tools you will turn on:

    ToolAPI to chooseApplication permission
    IntuneMicrosoft GraphDeviceManagementManagedDevices.Read.All
    Defender for EndpointAPIs my organization uses → WindowsDefenderATPMachine.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.

  3. 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.

  4. 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.

  5. 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 Disconnected tools' data card in Settings → Device coverage: how long a disconnected tool's device records are kept, and how long the daily snapshots' device lists keep device names before clearing them.
Figure 9.2. The Disconnected tools' data card in Settings → Device coverage: how long a disconnected tool's device records are kept, and how long the daily snapshots' device lists keep device names before clearing them.

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:

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:

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:

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:

The order that decides a device's class, highest first:

  1. A class set on the device itself (Set class, below).
  2. 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.
  3. 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:

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.

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:

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.

A device page with a probable match: two devices sharing only an IP address, with Same machine and Not the same for an administrator.
Figure 9.3. A device page with a probable match: two devices sharing only an IP address, with Same machine and Not the same for an administrator.

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.

  1. 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.
  2. 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, actions pushToken.create, pushToken.rotate, pushToken.revoke), and issuing or rotating alerts administrators; the token itself is never written anywhere.
  3. 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".
The Custom sources card in Settings → Integrations with one declared source: its capabilities, the endpoint its script posts to, when its push token was issued and when it expires, and the token and disconnect buttons.
Figure 9.4. The Custom sources card in Settings → Integrations with one declared source: its capabilities, the endpoint its script posts to, when its push token was issued and when it expires, and the token and disconnect buttons.

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:

FieldRequiredWhat it is
externalIdyesThe tool's own id for the device, unique within the source
hostname, namesnoThe device's name and any other names; matched without the domain, as for every tool
macs, ipsnoMAC and IPv4 addresses; randomized MACs, loopback and link-local addresses are ignored
entraDeviceIdnoThe Microsoft Entra device id, matched first, as from Intune and Defender
os, osVersionnoThe operating system as the tool names it (Windows Server 2022) and its version; os is the value operating system rules match
serialNumbernoKept with the record; not matched
lastSeenAtnoWhen the tool last heard from the device, ISO 8601 with a zone; a device not seen within the active window is stale
inactivenotrue 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:

Disconnecting a custom source: the coverage it would cost (devices that would gain a required gap, grid cells left with no tool, the automatic tests counting them), and keep the push token for a pause (the default) or revoke it for good.
Figure 9.5. Disconnecting a custom source: the coverage it would cost (devices that would gain a required gap, grid cells left with no tool, the automatic tests counting them), and keep the push token for a pause (the default) or revoke it for good.

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.

The Delivery alerts card in Settings → Device coverage: how many days a connected source may go without delivering before administrators are emailed.
Figure 9.6. The Delivery alerts card in Settings → Device coverage: how many days a connected source may go without delivering before administrators are emailed.

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.

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:

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.

The Automatic tests tab on a control: a failing test with since when and the next step, its latest result with the devices needed to pass and the uncovered devices that day, and every daily result with a date range.
Figure 9.7. The Automatic tests tab on a control: a failing test with since when and the next step, its latest result with the devices needed to pass and the uncovered devices that day, and every daily result with a date range.

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.

The Key-term suggestions (local AI) card in Settings → Integrations, off by default: the endpoint, model and limits, and the private-network check.
Figure 9.8. The Key-term suggestions (local AI) card in Settings → Integrations, off by default: the endpoint, model and limits, and the private-network check.

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

  1. Run the model where the TraxrGRC server can reach it. With Ollama: ollama pull qwen3.8:27b-q6-128k, listening on port 11434.
  2. 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, not localhost). 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.
  3. 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.
  4. Save. When the endpoint answers, saving refuses a model it doesn't list or a context larger than the model allows.
  5. 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

9.6 API tokens

Settings → API Tokens (address /settings/api-tokens) issues bearer tokens for the REST API and the MCP server.

ActionNeeds
Open the pageapiTokens:read. With it at all you see every token; otherwise only your own.
Create a tokenapiTokens:create
Revoke your own tokenapiTokens:update
Revoke someone else'sapiTokens: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

  1. Click Create token. The Create API token dialog opens.
  2. Enter a Name that says what uses it and who owns it, for example "SIEM export (Security Ops)". Up to 120 characters.
  3. 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.
  4. 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.
  5. Click Create token.
  6. 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.
The Create API token dialog with the name, expiry date and scope matrix.
Figure 9.9. The Create API token dialog with the name, expiry date and scope matrix.

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:

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

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:

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.

The AI assistants (MCP) screen with the endpoint switches and the Microsoft Entra ID sign-in card.
Figure 9.10. The AI assistants (MCP) screen with the endpoint switches and the Microsoft Entra ID sign-in card.

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.

SettingDefaultEffect
Allow AI assistants to connectOffTurns on /api/mcp. While off, the address and its metadata documents answer 404.
Include privacy recordsOffWhile 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 tokensOffLets 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:

ToolPurpose
searchText 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_recordOne record in full, with key linked records and attachment details (including each file's SHA-256)
list_risks, list_controls, list_compliance, list_policiesFiltered lists
my_open_itemsWhat is waiting on the user
list_evidenceEvidence and vendor reports with status, files, links and lock state
create_evidence, link_evidence, lock_evidenceRecord 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_evidenceAttach 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_linkA browser link, valid 15 minutes, for the user to upload up to 10 files (25 MB each) to a record
list_contractsContracts with their renewal state, term end and notice deadline; data processing agreements only when privacy records are included
list_obligationsContract obligations across the contracts the user can read, soonest due first, with owner, contract and days until due
list_clauses, list_contract_templatesThe 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_contractAsks 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

9.8.4 Limits, auditing and reachability

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:

  1. Create a user for the integration, for example [email protected], with a recognizable name ("Service: SIEM export"). Leave Administrator off.
  2. 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.
  3. Sign in as the service account once, create the token with the same narrow scopes, and store it in your secret manager.
  4. 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: