How to restrict the visibility of the knowledge articles on the hr service portal based on the field values on the HR profile of the logged in user

Vidya Shree2
Mega Contributor

How to restrict the visibility of the knowledge articles on the hr service portal based on the field values on the HR profile of the logged in user.

For Example : we have a field in HR profile by name "Employee Status".If i have to restrict the visibility of the knowledge article only if the logged user hr profile "Employee status"  is "retired" .How can i achieve this requirement?

i tried HR criteria and user criteria but it is working.

1 ACCEPTED SOLUTION

michaelj_sherid
ServiceNow Employee
ServiceNow Employee

Hi Vidya,


As of the Kingston release we support HR Criteria in User Criteria. In your use case you would create HR Criteria to use the condition of Employee Status = Retired. When you save that HR Criteria, the system will automatically create the corresponding User Criteria that can be used in Knowledge. Remember that Knowledge leverages User Criteria, so this is a viable option to meet your use case.

Regards,

Mike

View solution in original post

14 REPLIES 14

Matching Condition is showing the correct users who satisfy the condition but the knowledge article is working as expected.

Knowledge is not getting displayed based on the user criteria given.

This may be something with your KB configuration. Are you applying the User Criteria at the article level or at the Knowledge base level?

I tried applying at both places.Knowledge base level and at article level also.

Both ways its not working.

Do i have to check anywhere else?Am i missing something here?

You should not have to apply it in both places. If you have applied it at the Knowledge base level and it shows correctly in the returned results in the HR Criteria condition you should be fine.

I created a test to replicate your issue and I could only see the article when I was viewing as a User that met the HR Criteria (User Criteria) condition. This worked as expected.

Hi Mike,

 

 

I am facing one more issue now when i click on "Run User Criteria Diagnostics" related link on the Knowledge base form.I am getting this below error.

 

Error Message

Execute operation on script include 'hr_Criteria' from scope 'Global' was denied. The application 'Global' must declare a cross scope access privilege. Please contact the application admin to update their access requests.
 
 
Can u please help me with this?
 
 
Thanks and Regards,
Vidyashree