We have a knowledge base with very strict user access permissions. We want users to be able to see all pages in search results, even the ones that they can't access. We want users to be able to see if the content they are interested exists and ask for permission.

  • It's usually not allowed by design in solutions designed for Drupal, and standard behavior for solutions that originated away from Drupal, like Solr, Google Custom Search et cetera. Could you tell what's your need? Hacking Views or one of search modules, or integrating 3rd party, possibly paid solution?
    – Mołot
    Commented Aug 26, 2013 at 16:15
  • We want to have a default-deny policy, but avoid duplicated content between teams by allowing users to see global search results. That way, they can ask for permission.
    – Penz
    Commented Aug 26, 2013 at 16:19

1 Answer 1


You can build this in views. Build your view as you normally would, use an exposed search, then under advanced > query settings > check off "Disable SQL rewriting". This will disable node_access checks as well as other modules that implement hook_query_alter().

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.