One particular Role Users can only see assigned to their groups incidents

Servicenow de11
Tera Contributor

Hi,

 

I have one requirement that one particular role users can only see assigned to their groups incident tickets

How can you limit those?

How to write ACl for that requirement

 

Can anyone help to achieve this

 

Thanks in advance

2 REPLIES 2

Priyanka_786
Tera Guru
Tera Guru

Hi,

 Using ACL: Please follow below points:

1. New ACL- read operation- specify table name.

2. Mention role in role section for which you want to restrict.

3. Enable advanced checkbox , script section will be displayed in that you can use this logic 

  • First get logged in user's assignment groups using this function-  gs.getUser().getMyGroups()
  • After that check if current assignment group is same as my group which got from above function.

4. Test it ,you might need to check existing read ACLs if they are not allowing to execute as per your ask.

I hope ,I understood your requirement and it helps you. if yes , please mark this answer as Helpful/Correct.

 

Regards,

Priyanka

Hi Priyanka,

 

I have tried the above function is not working as expected