Appearance
SuiteQL and sensitive fields
Last reviewed: 30 November 2026
In short: through SuiteQL, an AI assistant can query any data the connected role can see in SuiteAnalytics Workbook. Hiding a custom field does not protect it. List your sensitive fields, find every place they can be read, and test each one with the AI role before you rely on it.
Why it matters
The connector's ns_runCustomSuiteQL tool runs read-only SuiteQL queries. Oracle says what it can reach:
- Anyone can see the tool: "There are no specific permission requirements to see this tool in the AI client."
- What it returns depends on the role: "the data you can see or query with SuiteQL depends on the permissions assigned to your NetSuite role."
- SuiteQL "enforces the same role-based access restrictions used in SuiteAnalytics Workbook".
So the question to ask is "what can this role query?", not "what does the AI see on screen?". A query can also reveal a value without returning it, for example by filtering on it (WHERE field = 'guess'). Treat any field the role can query as readable.
Three things make sensitive values easier to reach than people expect:
- Hidden is not secured. Oracle: "Hiding a custom field doesn't provide field-level security. It's for display purposed only." A hidden field's value can still be found by search.
- Field-level restrictions are limited. Custom fields can be given access levels for search and reporting, down to "None". We found no field-level control for standard fields in Oracle's documentation.
- History keeps old values. System notes record "the old and new value in the record". The
systemnotetable is queryable. Without the Administrator role or the "System Notes for Analytics and REST" permission, a user sees only notes for their own changes.
What to do
| Control | Owner | Test | Evidence |
|---|---|---|---|
| List your sensitive fields and where each one lives: standard fields, custom fields, custom records (bank details are often on their own record), and free-text fields such as memos and notes, where people paste anything. | Data owner (e.g. controller) | A second person reviews the list against a sample of real records. | The list, with its owner and date |
| Keep sensitive record types off the AI role. Record-level permission is the control Oracle documents for SuiteQL. | NetSuite administrator | With the AI role, query each sensitive record type. Expect an error or no rows. | Test queries and their results |
| For custom fields, set the search and reporting access to None for the AI role, then test it through SuiteQL. Oracle documents that SOAP web services respect custom field security; we found no such statement for SuiteQL or REST. | NetSuite administrator | Query the field with the AI role through the AI client. Expect no value. | Test query and result |
| Keep the "System Notes for Analytics and REST" permission off the AI role, so it can't read other people's old values from system notes. | NetSuite administrator | Query systemnote with the AI role. Expect only the role's own changes. | Test result |
| Use standard reports for financial reporting, not ad hoc queries. Oracle: "Don't use SuiteQL or build new reports for financial reports." | Controller | Spot-check AI-produced figures against the standard report. | Reconciliation notes |
| Re-test after changes: new custom fields, role changes, and SuiteApp updates. | NetSuite administrator | Rerun the test queries. | Dated rerun results |
How to check it
Keep a short script of test queries, one per sensitive field or record type, and run it through the AI client with the AI role. Include a direct SELECT and a filter on the field, for example WHERE field = 'x'. A filter that returns different rows for different guesses reveals the value even if the field is never returned.
Limits
- Unverified: whether SuiteQL and REST honour custom field access levels. Test it in your account; don't assume.
- No field-level control for standard fields was found. If a standard field on a record type is sensitive, the options are to keep the record type away from the role, or to add a control outside NetSuite.
- Free-text fields can hold anything. No field list covers what people type into a memo.
How Angel handles this
Angel adds a field-level layer that NetSuite doesn't document for SuiteQL:
- Masking by name. Admins choose which fields are masked by name, and bank details and social security numbers start masked. Angel replaces their values in every result before the AI receives it.
- Query checks. Angel checks every SuiteQL query before it runs. It blocks a query that uses a masked field in a filter, join, sort or calculation, and any query it can't fully check.
- Withholding. If Angel can't verify a result's shape, it withholds the whole result.
- System notes. Because system notes can hold old values of masked fields, the
systemnotetable must stay off the record types a company's Angel policy allows. Angel's demo policy does this; for each company it is a setting to check.
The limits:
- Masking works by field name, so a sensitive value typed into a memo field is not found.
- The guard also blocks some harmless queries.
- Angel's handling of real NetSuite results has not yet been confirmed against a real account; its demo uses a simulated NetSuite.
See Angel's security page.
Sources (checked 30 November 2026)
- Oracle NetSuite, ns_runCustomSuiteQL
- Oracle NetSuite, SuiteQL
- Oracle NetSuite, Setting Display Options for Custom Fields
- Oracle NetSuite, Restricting Access to Custom Fields
- Oracle NetSuite, Limiting Search and Reporting Access to a Custom Field
- Oracle NetSuite, Custom Field Security
- Oracle NetSuite, System Notes Overview
- Oracle NetSuite, System Note
- Oracle NetSuite, Best Practices for MCP Standard Tools SuiteApp