Restriction of records based on choice selected
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2024 01:04 AM
Hi all
I have requirment to restrict records which have impact as high for some of the groups the sysids of that groups are defined in properties so please suggest how to create acl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2024 01:15 AM
Hi @Ramu8
Please create a table level read ACL , and in the script use:
var tag = false
var group = gs.getProperty('property_name');
group = group.split(',');
for(var key in group){
if(group[key] == current.assignment_group){
tag = true;
}
if(current.impact = 'high' && tag ) // add the correct value of high
return true;
Regards,
Piyush Sain
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2024 01:22 AM - edited 01-29-2024 01:27 AM
Thanks for quick response @piyushsain @ but I think current.impact will not work in acl and also please confirm table name and none or table* while creating ac
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2024 01:27 AM - edited 01-29-2024 01:28 AM
what is the name of impact field update accordingly with correct value, use == instead of = in the script
Regards,
Piyush Sain
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2024 01:32 AM
@piyushsain could you please confirm table level ACL can be created by selecting table name none or table Name and *