Restrict record visibility

Utkarsha
Tera Contributor

Hi All,

I need to hide confidential records from one of the grc tables based on user access and group access this would be similar to GRC confidentiality....need to restrict record access 

I tried with before query business rule but it's not working as it is in scoped application

Any thoughts or ideas anyone can share on this, would really help in achieving the requirement

Thank you,

 

2 REPLIES 2

Community Alums
Not applicable

Hi @Utkarsha  ,

What's the issue in using Confidentiality feature?

Hi @Community Alums , Good day!
Thanks for replying.

I am actually taking reference from the article you've written-

https://www.servicenow.com/community/grc-blog/confidentiality-on-grc-tables-with-tokyo-release/ba-p/2274323
My concern is the requirement says as confidential record should be hidden from not allowed users/groups when they are accessing the list of records, as servicenow is providing
How can I restrict the record visibility for policy table if I have selected some users in allowed users/groups
I tried with before query business rule , it's not working as it is scoped application.
Before Query BR:

if ((gs.getuser().hasRole('sn_grc.confidential_user'))) {
return;
}
current.addEncodedQuery("active=trueORu_confidential=true");
Could you please correct me here?