Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Restrict access to attachments for a viewer of a page?

Jakub Kierszka
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 13, 2014

If a user has viewing permissions on a page, can they be restricted from viewing attachments on that page? I know that they can be prevented from Adding or Deleting attachments, but can they have view permissions for select attachments, or another way, do Attachments have restrictions?

2 answers

1 vote
Mirek
Community Champion
April 14, 2014

Hi Jakub,

Partialy. Directly you cannot say that this and this attachement will not be visible to the user that is having access to the page. Rule is simple: If you have access to the page you will have access to the attachments.

So in that case since you are able to view attachements of a specific page and confluence allows to use attachments from different pages then simply create a page which will not be visible to the user (restricted), attach files you want to restrict and on a public page use attachments macro (or any other preview) this will restrict access only to specific people, groups that are set up in the restrictions.

Overall I recommend to have one single place for attachemts instead of adding them to the pages. If you are using new Confluence then there is a Blueprint for that called - File List.

I hope that will help.

Best Regards,

Mirek

Bruno Kranjčić
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 24, 2014

Hi Mirek. In Jira, restriction can be set on comments. Why can't we use same restrictions with attachments?

Deleted user December 4, 2017

Does not work.

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 4, 2017

Works fine here.

Deleted user December 4, 2017

NO, you can't control attachment access rights by the pages they are displayed on (e.g. by labeling), it is only controlled by the pages they are uploaded in.

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 5, 2017

Yes, that's what I said, it works fine for me, as Mirek describes.

I think you need to explain what you mean by "does not work"

Deleted user December 5, 2017

So Mirek's answer has offered no explanation on the original question how to restrict access to ATTACHMENTS on a page. Do YOU have an answer, Nic?

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 5, 2017

Only what Mirek stated - "Rule is simple: If you have access to the page you will have access to the attachments".  That's working fine for me.

Bill
Contributor
May 9, 2018

That may work for you, but doesn't work in many other use cases.

For example, attaching requirements, we want anyone with visibility to that page to see. Attaching source code, we want to secure and limit who can see the attachment.

Sattesh M
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 20, 2018

Hey @Bill,
If the goal is to limit the visibility of an attachment, may I suggest to first upload the attachment to another page, and limit the page's permission over there.

Then, in the page we want everyone to access, add a link to the restricted page with the attachment.

This way, everyone can see the main page, and any attachments that needs to be "restricted" can still be accessible to the users from that page, albeit not directly.

Cheers,
Sattesh

Dario Braun
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 7, 2019

@Sattesh M 
But if a user has no permission to view a page, he is also unable to access the attachments on that page via links on another (public) page - right?

0 votes
Mark Smith April 3, 2018

I'm wondering if it can be done with using different screens for different users.

You could have a screen for one user type in both the create/view mode that has attachments and other set of screens for stakeholders (or whomever) for create/view modes that don't SEE attachments.

 

M

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events