how can we restrict some knowledge articles not to be getting searched from global search option

anshul_jain25
Kilo Guru

Hi all

I have a requirement like this that for one department we are building a service portal, and for that department there are almost 7000 knowledge articles, but they are no useful for other department or client don't want that these knowledge articles to be searched from any global search.

So is there a way that we can restrict those knowledge articles from not getting searched from global search option.

Is this requirement feasible or not.

8 REPLIES 8

joonas5
Kilo Expert

Hi Anshul,



You would need to add the Department field to the KB form and then have an ACL in place that blocked read access to that article if the users department doesn't equal the department on the article.



Thanks,


Joonas


joonas5
Kilo Expert

You could use this for ACL which allows users who are members of that department read the knowledge articles and restrict from those who are not members of that department.



var user = gs.getUser();


if ( user.isMemberOf('u_knowledge_department' )) {


        answer = true;


} else {


        answer = false;


}



Thanks,


Joonas



If this reply assisted you, please consider marking it correct, helpful, or liking it.


This enables other customers to learn from your thread.


lSurya 24
Giga Guru

Hello Anshul,



This may come handy:



Configuring Knowledge Properties - ServiceNow Wiki


johnram
ServiceNow Employee
ServiceNow Employee

The ServiceNow Wiki content is no longer supported. Updated information about this topic is located here: Knowledge Properties



Visit http://docs.servicenow.com for the latest product documentation