Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I restrict one-off page access in a Confluence page

Tags:

confluence

In Confluence, for just one page I would like to restrict access, to just me and my associate, (until the page is ready)

Is there any way to do this from within the page, or do I need to apply formal "Page Restrictions" which requires admin access :(

like image 542
Victor Grazi Avatar asked Dec 06 '25 03:12

Victor Grazi


1 Answers

If you have the {html} macro you could remove the edit command for everyone except you using javascript.

{hide-from:user=myname} 
{html}

<script type="text/javascript"> 
AJS.$(document).ready(function() {    
     AJS.$("#editPageLink").hide();    
});   
</script> 
{html}
{hide-from}

This will not prevent someone editing the page if they know how to get the page id and construct a url but it will prevent casual users from editing the page.

like image 64
Underverse Avatar answered Dec 11 '25 21:12

Underverse