Restrict attachment For Others groups

nameisnani
Giga Sage

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 .

 

nameisnani_0-1731585156758.png

 

 

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 .

 

5 REPLIES 5

Not applicable

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

Hi @Community Alums 

 

could you please provide me the screenshots of test results 

The community is here to help. Not to do your work for you.

Not applicable

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