How to restrict specific groups or categories of incidents to only its group members

Renu4
Tera Contributor

Hello All,

I want to restrict the HR group from everyone as it will contain confidential data.

I need guidance with it.

i have refered to the knowledge artile here:

 

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0790987

but not sure what wrong i am doing .

 

I have attached the image below for more info.

Thanks in Advance,

Regards,

Renu

 

 

14 REPLIES 14

Aniket Bhanse
Tera Guru

@Renu4 

1) Did you tried to log info message in your BR at the Line 2 to check if your BR is getting triggered?

2) This should be a Before-Query BR

3) Is that because you are trying by your user and you are not a member of the HR Group?

 

Let me know if ay of the question helps you and mark as helpful.

Hello Aniket,

2)Yes i have used it as before-query.

3) i have tried raising the ticket from my colleague also.

Still not working.

1) how do i add the log statement?

gs.addInfoMessage("Affected  ");

 

Should this work?

gs.addInfoMessage("Affected"); Send debugging information to the top of the form

Send debugging information to the system log
gs.log()
gs.error()
gs.info()
gs.warn()

gs.addInfoMessage("Affected "); 

this should work. As soon as you are loading the list view of the Incident table (by impersonating the actual group member), check the system logs from your admin user and check if you are getting errors.