Restrict users to access incidents based on assignment group using ACL.

Shawn33
Tera Expert

If Logged in user is belong to one of the group "RMA Approvers" or "Network" then that records only need to  be display to that logged in user, not display all available records.

i have created ACL,not working.
find_real_file.png
find_real_file.png

4 REPLIES 4

Filipe Cruz
Kilo Sage

Hello Shawn,

You have an issue in your script code.
Use the following one:

if (current.getDisplayValue("assignment_group") == "RMA Approvers" || current.getDisplayValue("assignment_group") == "Network") {
    if (gs.getUserID().isMemberOf(current.getValue("assignment_group")) answer = true;
        else
            answer = false;
    }
    else {
        answer = false;
    }

 

Let me know if that works for you!

Please, don't forget to mark my answer as correct if it solves your issue or mark it as helpful if it is relevant for you!

Best Regards,

Filipe Cruz

not working!

showing all available 114 records

find_real_file.png

Hello Shawn,

The 114 records are the ones catched by the condition statement. In your case, you were not adding any condition.

The script will be evaluated per each access to the table and the amount of records retrieved will depend on the user.

Please test by impersonating a specific user that belongs to those groups and another one that does not belong to those groups.

Please, don't forget to mark my answer as correct if it solves your issue or mark it as helpful if it is relevant for you!

Best Regards,

Filipe Cruz

sonali panda1
Kilo Sage

What are the other ACL for read on the table? They could be contradicting. Ensure you modify the script at that ACL itself.