How to hide records from List view for few users

shaik_irfan
Tera Guru

Hello,

 

I have a table which contains records like shown below for few users whne they login these should be visible and should be invisible for othres

Name:

Hardware

Software

Network

Network-Security

Network-Advanced

Database

Assets

 

In above list of records Network-Security, Network-Advanced should be visible only for 10 users, How to acheive this

1 ACCEPTED SOLUTION

I would have put all these users in single group and then checked if logged in user is member of that group, then show records..

 

https://community.servicenow.com/community?id=community_question&sys_id=bfa00765db98dbc01dcaf3231f96194d

 

https://www.servicenowguru.com/scripting/user-object-cheat-sheet/

 

Note : Could you please mark reply as correct if it now solves your question?

View solution in original post

3 REPLIES 3

Deepak Ingale1
Mega Sage

There are multiple ways to do that

 

1) You can create ACL on the table and restrict the access to these records only for specific users based on requirement.

ACLs

2) You can write before query business rule to hide and show visibility of records based on your requirement

Before query business rule

Before query business rule example

 

Note: Please mark reply as correct / helpful if it answers your question.

 

I dont have an access to ACL.

 

I started with Query BR stuck with the code 😞

 

It is 1 or 2 users then i would have used IF condition but since i have 10 users i think we need create an array later filter but i am not much expert in using arrys if you can help me out with the samle that would be great.

 

 

I would have put all these users in single group and then checked if logged in user is member of that group, then show records..

 

https://community.servicenow.com/community?id=community_question&sys_id=bfa00765db98dbc01dcaf3231f96194d

 

https://www.servicenowguru.com/scripting/user-object-cheat-sheet/

 

Note : Could you please mark reply as correct if it now solves your question?