Allow list editing for some fields for some group in incident table

User205031
Tera Contributor

Hi All,

I have a requirement. In incident table only certain groups can edit some fields from list view. Any members who are not part of those groups should not have the ability to edit fields from list view.

How to achieve?

Thanks!

9 REPLIES 9

Sagar Pagar
Tera Patron

Hi,

You can give list edit access for some fields/columns using list edit ACL.

For example - to give the access to edit the Assignment group field cells on incident table.

Type: record

Operation: list_edit

Name: Incident.assignment_group  // add your table name & fields here

Script: answer=true;

 

Thanks,

Sagar Pagar

The world works with ServiceNow

Hi Sagar,

How to give access to only few groups so that group members of these group can edit that field from list view.

Thanks!

Hi 

in ACL's script try this

gs.getUser().isMemberOf(name of your groups)

Hi,

I forgot to mentioned about user is part of group or not in script. here is the script-

Updated ACL details -

For example - to give the access to edit the Assignment group field cells on incident table.

Type: record

Operation: list_edit

Name: Incident.assignment_group  // add your table name & fields here

Script:

if (gs.getUser().isMemberOf("group1_sysid") || gs.getUser().isMemberOf("group2_sysid")) // add your group sys_id's {
    answer = true;
    } else {
    answer = false;
}

 

If you want it to be dynamic then you can create system property to store the sys_id of group and use it script.

var group1 = gs.getProperty('my.group1.sysid');
var group2 = gs.getProperty('my.group2.sysid');


if (gs.getUser().isMemberOf(group1) || gs.getUser().isMemberOf(group2)) // add your group sys_id's {
    answer = true;
    } else {
    answer = false;
}

 

Thanks,

Sagar Pagar

The world works with ServiceNow