Restrict the other group members to assign tickets (both requests and incidents ) to specific group

Snehal
Tera Expert

Hi Team,

 

I have requirement  to restrict the other group members to assign tickets (both sc tasks and incidents ) to specific group called "Capacity Mgmt "only group members of "Capacity Mgmt" will be able to assign tickets to "Capacity Mgmt".

 

Basically i have tried reference qual on assignment group field of incident table but on assignment group field of sc_task table there is already one reference qualifier set so i am not able to add one more condition . so anyone could suggest some solution or best solution to achieve this requirement .

 

Thank in advance!!

10 REPLIES 10

So for this solution do i need to create two different ACL one on incident table and one on sc_task table ? 

If it is please can you guide me 

Hi @Snehal  ,

 

Yes, that's right.

 

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

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

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

Bharat Tagad
Tera Contributor

Hi @Snehal  ,

 

Is your requirement like if the assignment group is "Capacity Mgmt"  then only users which are part of this group should able to populate/select Assigned to field ? For other users it (Assigned to) should be ready-only. And as usual in Assigned to only the members from assignment group will be available to select. 

only "Capacity mgmt " groups members able to assign tickets to this particlular group but other members do not able to assign tickets to this groups that's it here no need to hide the assigned to field .

 

I have not that much handson  on ACL so suggest me the exact solution or coditions

Bharat Tagad
Tera Contributor

Hi @Snehal  ,

 

You can achieve this requirement by using business rule.

 

- Create a business rule on incident table.

bharat_0-1730199881426.png

 

Check advance option.

 

In the script section paste the below code:

 

 
 
(function executeRule(current, previous /*null when async*/ ) {

    // Add your code here
    if (current.assignment_group.getDisplayValue('Group_Name')) {
 
        if (!gs.getUser().isMemberOf('Group_Name')) {
            gs.addErrorMessage('Sorry..! You are not member of group.');
            current.setAbortAction(true);
        }
    }

})(current, previous);
 

Note: Replace Group_Name with your group name and configure the message as per your requirement.

 

The same you can replicate for sc_task table as well.

 

If you found this as useful please mark as helpful and accept as solution.

 

Regards,

Bharat.