For Incidents assigned to FSEdge-SUP limit view to the Opened By and the Caller and FSEdge - V2

nameisnani
Mega Sage

Hi Team , 

 

Can anyone please help me on this below request? 

 

Incidents assigned to FSEdge-SUP limit view to the Opened By and the Caller and FSEdge-SUP grp members.

 

The purpose of hiding the incidents, and it's not what you achieved in the first instance—we want the tickets hidden irrespective of whether you have an ITIL license or not. ONLY members of SUP group and caller or Opened by is the people who see these tickets

 

So for example, I am not a member of the support group, nor am I the caller or the opened by user in any of these tickets; that being the case, I should not be able to see them. 

 

 

can anyone please provide configuration steps with screenshots for better understanding?

 

 

Thanks , 

1 ACCEPTED SOLUTION

Breaking down the code for you to understand:

1) Create Before Query on Incident table BR

2) Use condition in the if statement like below along with this add or condition of gs.getUserID().isMemberOf('group sys_id')

twinkle4_0-1738211312789.png

3)If the condition satisfies return true, else false

 

If you feel this was helpful, please consider giving thumbs up and if it solved your issue, please mark this correct.
Thanks

View solution in original post

6 REPLIES 6

Twinkle S
Mega Sage
Mega Sage

Hey This looks like a duplicate question , I have answered the same in your previous question thread. You can continue using one thread for this question,

https://www.servicenow.com/community/developer-forum/for-incidents-assigned-to-fsedge-sup-limit-view... 

 

If you feel this was helpful, please consider giving thumbs up and if it solved your issue, please mark this correct.
Thanks

@Twinkle S 

 

Your script is not clear , could you please provide complete scrtpt for me , so that i can test now ?

I have pasted the script in below thread.

 https://www.servicenow.com/community/developer-forum/for-incidents-assigned-to-fsedge-sup-limit-view... 

 

If you feel this was helpful, please consider giving thumbs up and if it solved your issue, please mark this correct.
Thanks

 

@Twinkle S 

 

Your BR is not clear , could you please arrange me properly