Skip to page contentSkip to chat
ServiceNow support
    • Community
      Ask questions, give advice, and connect with fellow ServiceNow professionals.
      Developer
      Build, test, and deploy applications
      Documentation
      Find detailed information about ServiceNow products, apps, features, and releases.
      Impact
      Accelerate ROI and amplify your expertise.
      Learning
      Build skills with instructor-led and online training.
      Partner
      Grow your business with promotions, news, and marketing tools
      ServiceNow
      Learn about ServiceNow products & solutions.
      Store
      Download certified apps and integrations that complement ServiceNow.
      Support
      Manage your instances, access self-help, and get technical support.
Global Text Search is returning inactive and retired KB articles for admin users - Known Error
  • >
  • Knowledge Base
  • >
  • Known Error (Knowledge Base)
  • >
  • Global Text Search is returning inactive and retired KB articles for admin users
KB0657420

Global Text Search is returning inactive and retired KB articles for admin users


3002 Views Last updated : Apr 4, 2023 public Copy Permalink
KB Summary by Now Assist

Description

Global Text Search for Admin users is returning inactive and retired KB Articles.

Steps to Reproduce

  1. Navigate to Knowledge Base > Retired
  2. Copy one of these KB articles number and enter this into the Global Text Search
Notice that it searches the article even though the Conditions defined on the Search Groups mentions Workflow IS Published. The same happens with inactive KB articles.

Workaround

Create a before query business rule against the kb_knowledge table that filters these out if the user is doing a text search. For example:

// It is being used to work around PRB627409 where retired articles are being pulled back by knowledge search
// First we grab the URL and turn it into a string
var action = gs.action.getGlideURI().toString();
// Next we check to see if "textsearch.do" is in the URL and if so we exclude retired kb_knowledge records
if(action.search("textsearch.do") > -1) {
current.addQuery('workflow_state','!=','retired');
}

 

For Jakarta version, instead of "textsearch.do" use "text_search_exact_match.do".

 

Additional Information

This is expected behavior, due to the read privileges set on KB Knowledge.

By default, admins are given access to retired KB articles. Regular users will not be able to access retired KB Articles via Global Text search, unless an admin has granted them read access to retired records.

 


Related Problem: PRB627409

The world works with ServiceNow.

Sign in for more! There's more content available only to authenticated users Sign in for more!
Did this KB article help you?
Did this KB article help you?

How would you rate your Now Support digital experience?

*

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

What can we improve? Please select all that apply.

What are we doing well? Please select all that apply.

Tell us more

*

Do you expect a response from this feedback?

  • Terms and conditions
  • Privacy statement
  • GDPR
  • Cookie policy
  • © 2025 ServiceNow. All rights reserved.