Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Attachments

Kyle Drummond February 11, 2020

Hi I created a quiz and I need to allow people to add additional content in the form of pictures to their answers. The answer box doesn't allow this directly so I have tried to add the attachment macro on the answer page. The problem is that when another user takes the quiz, they can see the attachments from the previous user.

Is there a way that I can restrict the access of users to only see their own attachments or even make it so only specific user groups can see attachments on a specific page? 

2 answers

1 accepted

0 votes
Answer accepted
Alex Medved _ConfiForms_
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.
February 12, 2020

As far as I know you cannot set permissions on attachments in Confluence. They inherit the same access as your page has. 

And that means - anyone who can access your page can see the page's attachments.

In our app we have a way to "enable secure storage", what that actually means is we create a separate (sub) page, restricted to current user, for the attachments the user uploads (within our form).

Sounds like an overkill, but we have not found any better solution for this

Kyle Drummond February 12, 2020

I agree, definitely seems like overkill but after hours of research I can't seem to find much better solution either.
So I'm guessing that for the creation of new user macros there is no way to reference "current user" or specify group access? I have seen these parameters available in existing macros but cannot find how to create such parameters in user macros...?

Alex Medved _ConfiForms_
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.
February 12, 2020

You can get the current user in a user macro, https://developer.atlassian.com/server/confluence/confluence-objects-accessible-from-velocity/

 

$action.authenticatedUser 

The currently authenticated user, or null if anonymous user.

Or you mean to have a macro parameter that does a lookup for you in users/security groups? No, this is not something built-in - limited set of parameter types is supported in user macros

Like Kyle Drummond likes this
0 votes
V.Manickam vellaian September 8, 2020

i want to convert word file to PDF personal use only and then to PDF to WORD

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events