Limit visibility to sctasks

AnthonyMull
Tera Contributor

Hi community 

I want to limit visibility to Sctasks and ritm records where the item = a specific item

I tried acls on there own but the oob acls are stopping it from working.  What is best approach here. Example would be appreciated 

Thanks in advance

1 ACCEPTED SOLUTION

J Siva
Tera Sage

Hi @AnthonyMull 
PFB the sample for "Deny unless" ACL.
Ex:
1. Catalog item: Limit visibility to sctasks 

2. Custom role: restrict_task_view

3. Two test users: Test 1 -> Without custom role; Test 2 -> With custom role

JSiva_0-1739675624287.png

4. Creating Deny Unless ACL of type read on "sc_req_item" table

JSiva_1-1739675747336.png

5. Output results:

-> User TEST 1:

JSiva_3-1739675911710.png

 

-> User TEST 2:

JSiva_2-1739675837760.png

 

I hope this helps.
Please mark this as a solution if it resolves your query.
Thanks,
Siva

 

View solution in original post

14 REPLIES 14

Ravi Chandra_K
Kilo Patron
Kilo Patron

Hello @AnthonyMull 

Did you try before query business rule for this?

 

Please mark the answer as helpful and correct if helped. 

Kind Regards,

Ravi Chandra  

Hi, @Ravi Chandra_K 

No I did not I was hoping acl would meet my requirement. Can you provide maybe some guidance on how to use business rule for this please

Kind regards 

Dushyant Siroh
Tera Expert

Hello @AnthonyMull 

 

Please Used Scripting In ACL For specific Item 

 

var ritm = new GlideRecord('sc_req_item');
ritm.get(current.request_item); // Get the related RITM record
if (ritm.item.name == 'Mouse') {
    return true; // Allow access
}
return false;

Hi @Dushyant Siroh 

 

this did not work on ACL did you mean put this on Business rule?

 

Thanks