Not able to download attachments for ITIL role and users in CAB approval group.

Adarsh14
Kilo Contributor

I have a created a UI macro placed next to the risk field in change request form.

The functionality of that UI macro is on clicking the same one excel sheet will get downloaded into your local machine.

The problem what I am facing is only admin users are able download the sheet and users with ITIL role and CAB approvers are not able to download.

On clicking the UI macro it is redirecting to a blank page.

 

Please help me in solving this issue.

 

Regards

Adarsh

4 REPLIES 4

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Adarsh,

Can you share the UI macro code and what does that excel file mean?

What does that excel sheet refer to? Is it some table data being exported?

Something related to ACL could lead to such issue since admin is able to do this.

Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.
Thanks
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

UI macro code:

<?xml version="1.0" encoding="utf-8" ?>
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">


<a href="https://dev52581.service-now.com/sys_attachment.do?sys_id=1112b7f44fa293004ffa4bff9310c7ec" target ="_blank">
<img title="Download Risk Assessment..." height="16" src="images/icons/attachment.gifx" border="0" width="16"/></a>

</j:jelly>

 

I have uploaded one excel document and with the help of sys_id and calling that attachment for sys_attachment table. So on clicking that UI macro the excel sheet will get downloaded.

 

This Ui macro I have placed next to Risk filed in change table.

Attached screenshot for your reference.

 

** I have uploaded one excel document and with the help of sys_id I am calling that attachment from sys_attachment table. So on clicking that UI macro the excel sheet will get downloaded.

Hi Adarsh,

Are you sure that user has access to read/write to that attachment.

If that user doesn't have write access to the table record where this attachment is stored user can't download.

To which table record is this excel file attached i.e. incident, change etc.

Try giving write access to these tables for that roles and check

Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.
Thanks
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader