incident display based on user's group

MK-p
Tera Contributor

i have a requirement to display only those incidents on which logged in user belongs to group.

example, if i belongs to x,y,z group then i should see only incident which has group x,y,z.

2 ACCEPTED SOLUTIONS

Runjay Patel
Giga Sage

Hi @MK-p ,

 

You can create display query business rule and below query.

current.addEncodedQuery('assignment_groupDYNAMICd6435e965f510100a9ad2572f2b47744')

This query help you to display on of your group.

 

RunjayPatel_0-1736404015063.png

 

RunjayPatel_1-1736404038818.png

 

 

 

-------------------------------------------------------------------------

If you found my response helpful, please consider selecting "Accept as Solution" and marking it as "Helpful." This not only supports me but also benefits the community.


Regards
Runjay Patel - ServiceNow Solution Architect
YouTube: https://www.youtube.com/@RunjayP
LinkedIn: https://www.linkedin.com/in/runjay

-------------------------------------------------------------------------

 

View solution in original post

@MK-p 

Thank you for marking my response as helpful.

Are you planning to remove the existing incident query BR and create a new one?

I believe I also provided you the correct approach by modifying existing OOB Query BR on incident table.

As per new community feature you can mark multiple responses as correct.

If my response helped please mark it correct as well so that it benefits future readers.

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

View solution in original post

5 REPLIES 5

Gaurav Shirsat
Mega Sage

Hello @MK-p 

You can use Display Business as solution given in the below thread.

https://www.servicenow.com/community/developer-forum/show-incident-records-based-on-logged-in-user-s...

 

Thanks and Regards

Gaurav Shirsat