- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2024 12:06 AM
i created one Read only ACL for one table and i written below script but it's not working so please let me know my mistake
answer=true;
var ciLink=current.u_ci_link;
var gr= new GlideRecord("u_cmdb_ci_service_vmware_insta");
gr.addQuery('name',ciLink);
gr.query();
if(gr.next()){
var grd=new GlideRecord('u_alm_service');
if (grd.get(gr.u_itaas_asset_number))
answer =grd.getDisplayValue('assigned_to')==gs.getUserID();
}
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2024 12:38 AM - edited 02-19-2024 02:10 AM
Hi @mani55 ,
Can you try using Access Analyzer to assess your ACL if you are working on Vancouver
Please mark helpful/correct if my response helped you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2024 05:14 AM
Hi @mani55 ,
for ex. following 3 ACLs can be conflicting because Name , operation, type is same on all three and all are active.
if one of the ACLs from above return true i.e. provide access to perform operation on name. the users will have access.
You can apply the same logic for the requirement you are trying to achieve.
Warm Regards ,
Shivambi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2024 09:59 PM
i checked but there is no over ride acl is there and please check below code i modified
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2024 01:24 AM
Hi @mani55 ,
can you explain what are you trying to achieve and involved tables , parent tables.
What is this ACL suppose to do ?
Warm Regards,
Shivambi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2024 12:38 AM - edited 02-19-2024 02:10 AM
Hi @mani55 ,
Can you try using Access Analyzer to assess your ACL if you are working on Vancouver
Please mark helpful/correct if my response helped you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2024 12:58 AM
HI Anubhav,
i used below script but no luck
answer=false;
var ciLink=current.u_ci_link;
var gr= new GlideRecord("u_cmdb_ci_service_vmware_insta");
gr.addQuery('name',ciLink);
gr.query();
if(gr.next()){
var grd=new GlideRecord('u_alm_service');
if (grd.get(gr.u_itaas_asset_number)){
if(grd.assigned_to == gs.getUserID()){
answer = true;
}
}}
gs.addInfoMessage('hello i am value of answer'+answer);