The CreatorCon Call for Content is officially open! Get started here.

Hide the records of a specific class from cmdb_ci_server table list view for all the users

SK41
Giga Guru

Hi All,

 

I have a requirement where i have to hide the records of "network server" class from Server(cmdb_ci_server) table from list view for all the users, so that they cannot see them in the table and access it.

How can i achieve that?

 

Thanks!

1 ACCEPTED SOLUTION

Vishnu Prasad K
Giga Guru

Hi,

 

You have 2 options to do this.

1. ACL - Create a read ACL for network server class table to allow only admin users to see that.

2. Create a before query business rule. Just check if the logged in user has admin role and if yes, then allow and if not, does not show the records. The security constraint restricted message will not be shown in this case

View solution in original post

8 REPLIES 8

Hello ,

You can create the ACL as mentioned in the screenshot. And in role you can put snc_internal,admin so all the users including admin can not see the record in list view.

AlokGupta5_0-1664875637409.png

 

Regards,

Alok Gupta 

SK41
Giga Guru

@Ankur Bawiskar  please suggest?

My previous question posted was somehow lost.

Vishnu Prasad K
Giga Guru

Hi,

 

You have 2 options to do this.

1. ACL - Create a read ACL for network server class table to allow only admin users to see that.

2. Create a before query business rule. Just check if the logged in user has admin role and if yes, then allow and if not, does not show the records. The security constraint restricted message will not be shown in this case

query business rule worked! thanks