Is it possible to have internal and external attachments?

priisholm
Mega Expert

Hi

We need to separate attachments on the incident-form, so that some attachments can be seen (and downloaded) by enduser on the service portal - this are the external attachment and other attachments are completly internal and can only be seen on the back-end by users with the ITIL-role.

OOB every attachments is external.

Is this possible?

BR

Soeren

1 ACCEPTED SOLUTION

Community Alums
Not applicable

Just add the itil role to the list of roles above, and the new ACL will apply to them as well.



If you want to make it so itil can see ALL attachments, then just make another ACL with "itil" as the role, and make that the only condition.


View solution in original post

9 REPLIES 9

anurag92
Kilo Sage

You can do this by applying Read ACL on sys_attachment table and adding a field called: 'Internal'. In ACL, you can add conditions that if internal is true only ITIL users will be able to view the attachment.


Hi Anurag



It seems like the way to do it..



I added "Internal_attachment" to the "sys_attachment" table and added an extra condition to an existing Out-of-the-box ACL read-role on the table.



find_real_file.png



OOB-roles   (ITIL role will contain, snc_internal role)


find_real_file.png



find_real_file.png



Now it will only show attachments if the "Internal_attacment=false"... Admin will still see both types of attachments.



How do I add that also ITIL-user, or users with ITIL-role can see both types og attachments?



BR


Soren


Community Alums
Not applicable

Just add the itil role to the list of roles above, and the new ACL will apply to them as well.



If you want to make it so itil can see ALL attachments, then just make another ACL with "itil" as the role, and make that the only condition.


Hi Andrew



ITIL (role) users should see all the attachments, endusers should only see whose that are "not internal". ITIL (role) users by default enheritant snc_internal.



So I made new read ACL with "ITIL" as the only condition.. and it work just super!!



Thanks Andrew


Soren