The Query Library holds the saved queries that Interno runs on your behalf. It has three tabs:
| Tab | What it holds |
|---|---|
| Widget | Saved queries that render as dashboard widgets |
| Evidence | Queries that collect compliance evidence against a control or a parameter |
| Alert | Queries that run on a schedule and email their results |
This guide covers the Evidence and Alert tabs. Widgets are covered in *How to Build Custom Widgets and Dashboards*.
Navigation: Sidebar → Assets → Query Library
defence:query:view to see the Alert tab; grc:evidence:view to see the Evidence tabdefence:query:create to open the Query Builder for either typegrc:evidence:create for the Create Evidence buttondefence:query:execute to preview an evidence query or trigger an alertIf you have none of the three tabs' view permissions, the whole Query Library page shows an Unauthorized screen.
An evidence query collects data that supports a compliance control, or that fills a named parameter.
An information icon on the builder header notes: "If you are going to automate parameters, make sure you have selected only one aggregation, nothing else."
| Field | Required | Notes |
|---|---|---|
| Title | Yes | The evidence query's name |
| Evidence Type | Yes | control or parameter |
| Controls | Yes, when the type is *control* | Pick the compliance control this evidence supports |
| Variables | Yes, when the type is *parameter* | Pick the parameter this evidence fills |
| Date Filter On | No, *parameter* only | The timestamp column to filter the evidence by |
> There is no Description field on an evidence query — that field only appears for widgets and alerts.
If the preview returned more than one row, an information icon appears next to the button warning: "You have selected more than one row, please make sure you want to automate control evidence not parameters."
| Column | What it shows |
|---|---|
| Identifier | The control identifier for *control* evidence, or the title's initials otherwise |
| Name | The evidence query's name |
| Type | control or parameter |
| Created By | Who created it |
| Created On | When it was created |
| Updated By | Who last changed it |
| Updated On | When it was last changed |
Above the table there is a search box and a Type filter offering Control and Parameter.
The query runs and the results appear in a table inside the preview panel. This needs defence:query:execute.
The action menu also offers Edit (confirm, then the Query Builder reopens) and Delete.
An alert runs a query every N days and emails the result to a list of users.
| Field | Notes |
|---|---|
| Title | Becomes the email subject, as Alert: <title> |
| Description | Up to 500 words; included in the email body |
| Users | The recipients of the alert email |
| Interval (In Day/Days) | A whole number greater than 0 |
> Row limit. The Create Alert button is disabled while the preview returns more than 100 rows, and an information icon explains: "You have selected more than 100 rows, make sure total number of rows is less than 100." Add a filter or a limit to bring the result set down.
| Column | What it shows |
|---|---|
| Name | The alert's title |
| Interval | "1 day" or "N days" |
| Created By | Who created it |
| Created On | When it was created |
| Last Executed | The last run |
| Next Execution | The next scheduled run |
Use the search box to find an alert by name.
The query runs and the email goes out straight away. The schedule is unaffected.
The action menu also offers Edit and Delete.
The Query Library page shows an Unauthorized screen → You have none of defence:widget:view, grc:evidence:view or defence:query:view. Ask your administrator for the ones you need.
One tab shows Unauthorized while the others work → Each tab is gated separately: Widget needs defence:widget:view, Evidence needs grc:evidence:view, Alert needs defence:query:view.
The Create Evidence button is missing → That button requires grc:evidence:create.
Create Evidence opens but the builder refuses me → The Query Builder itself requires defence:query:create for both evidence and alerts. You need both that and grc:evidence:create to create evidence end to end.
Preview or Trigger fails → Both require defence:query:execute.
Edit opens the builder but saving fails → Saving an edited evidence query or alert requires defence:query:update. This is a different permission from defence:query:create, which is what governs whether the Edit menu item is shown.
The Create Alert button stays greyed out → The preview is returning more than 100 rows. Narrow the query.
The query returns no rows → Confirm the source integration is connected and has completed a sync, and check the filters on the query.
I am looking for a tab called Evidences or Alerts → The tabs are named Widget, Evidence and Alert, in the singular.
Need more help? Contact support@zeron.one