Content security in AI Search keeps record access tied to the user running the search. Indexing retains the security features of ServiceNow AI Platform records, and query processing removes records the user cannot access. A security review should therefore test both permitted discovery and restricted content using representative users and known records.
How content security in AI Search affects results
There are two points to understand. Records retain their platform security features when AI Search indexes them. Later, when a user submits a query, access determines which records can appear in the returned results. Being present in an index does not itself give a person permission to see a record.
This distinction matters when teams investigate different results for the same phrase. Two people can have different access to the underlying content. Comparing their result lists without first comparing their permitted access can turn an expected security difference into a misleading search defect.
Begin a review with a specific question: should this person be able to discover this record? Establish the expected answer with the content owner before assessing relevance. A result that looks relevant still fails the security review if the person should not have access to it.
The following workflow is a recommended way to test that boundary. Check the behavior on your instance and release before adopting it as an acceptance procedure. Keep changes to security rules separate from experiments intended to improve search quality, so each observation has an identifiable cause.
Prepare records and users with clear expectations
Choose a small set of records whose intended audience is understood. Include content that a test user should find and content that the same user should be unable to access. Use harmless test material where possible, especially when recording screenshots or sharing a defect report.
For each record, write down its identity, intended audience, a distinctive search phrase, and the expected outcome for each test user. Avoid ambiguous examples where nobody can agree who should have access. Those examples require an access decision before they can provide meaningful search evidence.
- Select a permitted record and confirm that the chosen user can access it through the relevant application.
- Select a restricted record and establish why that user should be denied access.
- Choose another user with a different expected access outcome for the restricted record.
- Record the search experience and query that both users will use.
- Agree on the evidence needed to accept or reject each result.
Do not use a broad administrative account as the sole representative of ordinary users. Its access expectations may differ from the audience being tested. Ask the access owner to identify suitable accounts and the authorization needed for any configuration change; a search test is not permission to change record access.
Record source coverage alongside these cases. A record that is outside the intended source cannot serve as evidence of successful discovery. For the separate work of deciding what content enters search, see AI Search indexed sources and reindexing.
Run paired searches and inspect individual records
Start with the user who is expected to access the selected record. Run the prepared query and record whether the target appears. Identify the record itself rather than relying on a similar title. A search result for another item does not establish that the intended record was found.
Repeat the query as the user who should lack access. Keep the search experience, wording, and test content consistent. The restricted record should be absent from that user’s results. Record the observed outcome against the expectation rather than describing the whole result list as simply correct or incorrect.
Where the permitted user finds the record, check that the result leads to the intended item. Where the restricted user sees it, capture enough information to distinguish the affected record without circulating its sensitive contents. Treat the unexpected visibility as a security finding requiring investigation.
A missing permitted record needs a different investigation. Its absence alone does not prove that security filtering caused it. Confirm that the test query and content selection are suitable before changing access. Widening permissions to make a result appear can undermine the boundary the test was meant to verify.
Keep a separate note for relevance questions, such as an accessible record appearing below another accessible result. Work on wording and query interpretation belongs with AI Search profiles, synonyms, and stop words. That work should not redefine who is entitled to see the record.
Investigate mismatches without weakening access
When observed visibility conflicts with the expected result, first confirm the test identity and record identity. Check whether the expectation still reflects the content owner’s decision. A stale test case can resemble a product problem, while an accidentally privileged account can conceal a restriction that ordinary users encounter.
For an unexpected visible record, compare the intended access with the user’s actual ability to access that same record outside search. This helps the investigation distinguish an access-design issue from a difference between direct access and search visibility. Preserve the observation before making changes.
For an unexpectedly missing record, work through the evidence in order: correct record, intended source, suitable query, and expected user access. Keep the investigation narrow enough that another reviewer can repeat it. Changing several settings together makes the result harder to interpret.
If a correction is needed, have the responsible owner approve the access outcome, then repeat the paired searches. Record what changed and which cases were rerun. Do not declare the issue resolved merely because one previously missing item now appears; the restricted-user case still needs its expected result.
Use the security and access design upgrade review to connect the finding to broader access decisions. For help planning this work, see ServiceNow implementation.
Keep a repeatable security acceptance record
A useful acceptance record shows what was expected, what happened, and who accepted the outcome. Keep it specific enough to repeat after a change. A statement that search security was checked provides less assurance than named test cases with identifiable records and explicit permitted and denied outcomes.
Group cases by audience and content boundary. For example, a review could compare a general employee audience with a restricted operational audience using separate test records. Treat these as locally designed cases, not as predefined product categories. The content owner determines the intended audience.
- Record the user context, target record, query, and search experience.
- Write the expected access outcome before running the test.
- Capture whether the target appeared and whether the observation matched.
- Note unresolved discrepancies, their owner, and the next investigation step.
- Retain the acceptance decision with the change that prompted the review.
Repeat relevant cases when your team changes the intended audience or the content being searched. Select cases according to the affected boundary rather than repeating unrelated queries. Keep security acceptance distinct from measures of search engagement: a popular result is not evidence that its audience is correct.
Assign ownership for unresolved findings before closing the review. Someone should be responsible for deciding access, someone for investigating search behavior, and someone for accepting the test evidence. These are recommended responsibilities for the review, not product role names or grants of permission.
Before handing over, ask a reviewer who did not run the original searches to follow one permitted case and one restricted case. If the reviewer cannot identify the record, user context, or expected result from the notes, improve the evidence before accepting it. This checks the quality of the review record without assuming that a screenshot alone explains the security decision.
Questions to settle before accepting the security review
Should test records contain confidential information?
Prefer representative, non-sensitive material that exercises the intended boundary. A test should show whether discovery is permitted without creating another sensitive artifact. If real records are necessary, agree on evidence handling before collecting screenshots or exporting observations.
How should an inconclusive test be recorded?
Mark it as unresolved and explain what prevented a decision, such as uncertain audience ownership or an unsuitable query. Assign a next step. Do not count an inconclusive result as a pass simply because nobody observed an obvious disclosure during the session.
Who should approve the final acceptance decision?
Ask the people accountable for the content and access boundary to agree on acceptance, with the search team providing reproducible observations. Decide this responsibility before testing so a technical investigation does not end without someone authorized to judge the outcome.
What belongs in a handover to another investigation team?
Include the smallest reproducible case, its expected outcome, the observed difference, and relevant change context. Identify the affected record safely. A focused handover lets the receiving team investigate without repeating broad searches or requesting unnecessary copies of restricted content.