ACL script works on the task, but isn't working on requested item table.

phaug
Tera Contributor

We have yet to implement to the HR tool but our HR department is starting to use the catalog requests. As a workaround until we do, I've created a role to restrict access to the HR requests they're receiving. They have asked that we restrict access to RITMs and Tasks to the HR groups and the requestor of the individual requests. I've been able to restrict the tasks correctly, but for some reason the requestor still can't see the RITMs. This script works for the task ACL but for some reason it's not on the requested item table, any suggestions why this isn't working?

 

 

phaug_1-1710169324340.png

7 REPLIES 7

swathisarang98
Giga Sage
Giga Sage

Hi @phaug ,

 

If you want the logged in user to view RITM and user should be either requested by or requested for then try doing below,

inside if write answer = 'true'; and inside else answer = 'false';

 

Please mark this comment as Correct Answer/Helpful if it helped you.

Regards,

Swathi Sarang

I've made this update, but it's still not working.

 

phaug_0-1710172472399.png

 

James Chun
Kilo Patron

Hi @phaug,

 

Instead of writing an ACL, have you considered using Data Filtration?

The article below provides a good explanation of how to set it up.

https://www.servicenow.com/community/in-other-news/understanding-the-quot-data-filtration-quot-plugi...

 

Cheers