1.Restrict attachment For Others groups

nameisnani
Mega 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-1731635042355.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 .

3 REPLIES 3

Animesh Das2
Mega Sage
Mega Sage

Hi @nameisnani ,

 

You may need to write a before query BR or ACL on 'sys_attachment' or onload client script on incident for this. Please check below community threads that could fulfill your requirement,

 

How to hide attachments on incident form for end user using Query BR 

Hide/Show manage attachment using client script 

Hide Attachments in ServiceNow using ACL 

 

If this address your question, please don't forget to mark this response correct by clicking on Accept as Solution and/or Kudos.

You may mark this helpful as well if it helps you.

Thanks, 

Animesh Das

 

Mark Manders
Mega Patron

Please know that the community is not meant as a free resource pool to have others do your work for you. 

 

Since attachments aren't stored on the record, but in the sys_attachment table, you could create a query BR on the sys_attachment table that others aren't allowed to see the attachment. Do note that you also need to take into account that the user reporting the incident may also need to see the attachment.


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

Mark Manders
Mega Patron

Why are you posting the same question 3 times in the same topic? This doesn't help you in getting a solution faster and it is frustrating for both you as the people helping you that you get information you already have through another question.

https://www.servicenow.com/community/developer-forum/1-restrict-attachment-for-others-groups/td-p/31...

https://www.servicenow.com/community/developer-forum/restrict-attachment-for-others-groups/td-p/3104...

https://www.servicenow.com/community/developer-forum/1-1-restrict-attachment-for-others-groups/td-p/...

 


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark