Allow list editing for some fields for some group in incident table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-16-2022 09:33 PM
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-16-2022 09:46 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-16-2022 10:16 PM
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-16-2022 10:38 PM
Hi
in ACL's script try this
gs.getUser().isMemberOf(name of your groups)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-16-2022 10:47 PM
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