If we submit request for catalog , so only selected members should be able to access ticket.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2024 09:10 PM
Hi ,
If we submit request for particular catalog item. So only selected members form the groups should be able to access the tickets.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2024 01:32 AM
Hi @akash12345,
- Create a Before -Query Business rule on your table
- In the Advanced tab, set the condition as:
!gs.getUser().isMemberOf('<group name to be restricted >’);
Mark it as helpful and solution proposed if it serves your purpose.
Thanks,
Anand
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2024 05:08 AM
Thanks for reply. I am not able to search my catalog item in filter conditon.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2024 07:31 AM
Hi @akash12345 ,
1. First in your instance, elevate role with security admin. Click on your profile icon then select Elevate role option- check- security admin checkbox and click on update.
2. Go to Access control (ACL) module from application navigator.
3. Create new ACL with following attributes.
- Type- record
- Operation- read
- Admin overrides checkbox false- if you don't want the admins to access
- Name- select you ticket table name
- If your instance version in Vancouver then go to Security Attribute Condition section in ACL- select Local- in condition select group with name which you want to provide access. if not then follow below steps using script.
- Check advanced check box
- Go to script section
- Use this script below and save the record.
if(gs.getUser().isMemberOf("Name of group that you want to provide access")){
answer= true;
}
else{
answer= false;
}
|
Mark my answer Helpful & Accepted if it helps.
Regards,
Priyanka Salunke
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2024 08:15 AM
Hi @akash12345
Solution by @Priyanka_786 is perfect and just to add
instead of "Name of group that you want to provide access"))
use sysid of group
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************