About record-level display control by ACLs.

Ohki_Yamamoto
Tera Guru

Suppose the following table is created and data is set.

find_real_file.png
In this case, we would like to use ACLs to control whether the data can be displayed or not at the record level.

For example, we would like to control that "columnC = "0" is hidden for users with a certain role".

I thought it would be possible to control it by using ACL's Condition etc., but I could not control it well.

We would appreciate it if you could tell us if there is a way to control it.

 

1 ACCEPTED SOLUTION

Muhammad Khan
Mega Sage
Mega Sage

Hi Ohki,

 

You can achieve this requirement either using Business Rule  or  ACLs.

1. Business Rule approach is as follows;

find_real_file.png

find_real_file.png

Note: Make sure to replace itil role in the Condition with your role, and use this 'columnC_Name', '!=', '0' in query.

 

2. ACLs approach is as follows;

First Read ACL gives the read access of all records of this table to all users with the itil_admin role;

find_real_file.png

find_real_file.png

Second Read ACL gives the read access (to all users with itil role) of only those records of this table where Age != 111.

find_real_file.png

find_real_file.png

 

Hopefully this will resolve your problem.

View solution in original post

9 REPLIES 9

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

you can create field level READ ACL on Column C

Give correct role

This would hide it from list and form as well

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

@Ohki.Yamamoto 

Thank you for marking my response as helpful.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Thank you very much.

I try again the setting ACL.

Muhammad Khan
Mega Sage
Mega Sage

Hi Ohki,

 

You can achieve this requirement either using Business Rule  or  ACLs.

1. Business Rule approach is as follows;

find_real_file.png

find_real_file.png

Note: Make sure to replace itil role in the Condition with your role, and use this 'columnC_Name', '!=', '0' in query.

 

2. ACLs approach is as follows;

First Read ACL gives the read access of all records of this table to all users with the itil_admin role;

find_real_file.png

find_real_file.png

Second Read ACL gives the read access (to all users with itil role) of only those records of this table where Age != 111.

find_real_file.png

find_real_file.png

 

Hopefully this will resolve your problem.