- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2018 08:40 PM
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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2018 09:56 PM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2018 09:35 PM
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.
2) You can write before query business rule to hide and show visibility of records based on your requirement
Before query business rule example
Note: Please mark reply as correct / helpful if it answers your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2018 09:50 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2018 09:56 PM
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?