How to hide the Attachment link from user/group in Confluence?

I am attaching the word document in my Confluence page.

So I want to hide that download link of the attachment from user/group.

When user click on that link it should not be download. 

Can we do with the Javascript?

1 answer

Hi Siddheshwar,

Confluence does not have specific permissions for downloading files. At a space level, you can only restrict adding and deleting attachments. The general approach to to restricting access to a file is to restrict access to the page it is attached to. Is there a particular reason you want to attach files you don't want viewed to a page that you do want viewed?

You could always create a child-page which contains the attachments and has restricted access.

Hope this helps,
Mark

Hi Mark, Through attachments I will use the office word macro, so we can see the document in my Page. There are multiple attachment that we want to attach in page. Is there any way that we can hide the download attachments?

Thanks for the info - I understand now. You want your users to be able to see the documents in the page, but not download them. There is currently no way to do this, as our assumption is that if you can see the content in the page, then downloading it should not cause any problems. Even if you used javascript, the link would only be invisible, and they could possibly find it by looking at the HTML source, or by using development tools in the browser. I can only suggest that you raise a new feature ticket on https://jira.atlassian.com/browse/CONF Sorry I couldn't be more helpful! Mark

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

2,916 views 27 12
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you