The CreatorCon Call for Content is officially open! Get started here.

If we submit request for catalog , so only selected members should be able to access ticket.

akash12345
Tera Contributor

Hi ,

If we submit request for particular catalog item. So only selected members form the groups should be able to access the tickets. 

4 REPLIES 4

Anand Kumar P
Giga Patron

Hi @akash12345,

  1. Create a Before -Query Business rule on your table
  2. 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

Thanks for reply. I am not able to search my catalog item in filter conditon.

 

Priyanka_786
Tera Guru
Tera Guru

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

Dr Atul G- LNG
Tera Patron
Tera Patron

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]

****************************************************************************************************************