- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2024 11:27 PM
We would like to disable the download of case attachments on the navigation page if the following conditions are met
1. the login user has a specific role
2. the logged-in user is not using a specific IP address.
We would like to know if you have any knowledge on how to implement this feature.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2024 10:13 PM
Hello @mochildbel2
The way I would suggest, is to create an read ACL on the sys_attachment table, that uses the GlideSession to define if a user should have access.
If the user login event has a corporate IP address as parm, then grant access.
Look at this useful video by Chuck Tomasi,
https://www.youtube.com/watch?v=RAgOmnru21o
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2024 10:01 PM
Hi @mochildbel2 ,
You can make use of the following code snipped in addition to your other condition checks.
var session = gs.getSession();
var addr = session.getClientIP();
gs.info(addr);
If you find my response helpful, please consider marking it as the 'Accepted Solution' and giving it a 'Helpful' rating. Your feedback not only supports the community but also encourages me to continue providing valuable assistance.
Thanks,
Amitoj Wadhera
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2024 10:13 PM
Hello @mochildbel2
The way I would suggest, is to create an read ACL on the sys_attachment table, that uses the GlideSession to define if a user should have access.
If the user login event has a corporate IP address as parm, then grant access.
Look at this useful video by Chuck Tomasi,
https://www.youtube.com/watch?v=RAgOmnru21o
Thanks