Restrict attachment For Others groups
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2024 03:57 AM
Hi Team ,
can anyone please help me on this requirement?
If incident assigned to ' Service Desk ' Team , and if they attached any attachment in the incident that should not be visible for other teams .
If other opens the incident also , attachment should not visible to them , only it should visible for ' Service Desk ' only .
Please provide configuration steps to achieve this requirement ,
Please attach configuration screenshots for better understanding .
Also , Please provide test results of this requirement .
Please provide steps screenshot
Thanks in advance .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2024 04:27 AM - edited 11-14-2024 04:29 AM
Hello @nameisnani ,
Create ACL on sys_attachment table
Advance : true
Operation : Read
Script :
var user = gs.getUser();
var hasUserExpectedRole = (user.hasRole('<Assigned role to your group>') // user role as 'ITIL'
if(hasUserExpectedRole && current.table_name == 'incident'){
return true;
}
Thanks,
Valmik Patil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2024 04:32 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2024 11:27 PM
The community is here to help. Not to do your work for you.
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2024 04:37 AM
Hello @nameisnani ,
This was the logic I implemented earlier ,
and That instance is expired,
Can you try from your end. It should work.
Please Mark my answer as accepted if it helps in your case.
Thanks,
Valmik Patil