There is a sub-page with some data I would like to have only some team members to have access to, but only that subpage. They have view permissions to the space, but the page tree I manage is very restricted. The problem is that even when they have view permissions to that subpage, they can't access the information, is that because they don't have view permission to the parent page?
Hi Anthony,
That is correct, view restrictions cascade down from parents to children, so if any of the parent/ancestor pages are restricted, then the children/descendants will be restricted too (Edit restrictions do not cascade).
In that case, by allowing view permissions to the parent page, would that cascade to the child pages, or I could then only allow to view one child page of that tree?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Imagine hypothetically if you could restrict the parent and still view a child page. If you restrict the view to the parent page, then how would the child page be displayed in the sidebar? Simply floating with no parent? (restricted pages are not displayed at all, even in the sidebar, because even the title might be confidential)
That's why view restrictions are inherited by the children/descendants. Your only options are:
## @param PageToInclude:title=Page ID of page to include|type=string|required=true
#set ( $allowedPages = ["12345678"] ) // $allowedPages = ["1", "2", "3"]
#if ( $allowedPages.contains($paramPageToInclude) )
#set ( $Long = $generalUtil.getSystemStartupTime() )
#set ( $pageId = $Long.parseLong($paramPageToInclude) )
#set ( $page = $pageManager.getPage($pageId) )
#set ( $pageContent = "<p>Page not Found</p>" )
#set ( $pageContent = $page.getBodyAsString() )
$pageContent
#end
substituting "12345678" with the page ID that you want to show, or for additional pages by following the template (this is necessary because it bypasses Confluence permissions, so if you don't restrict the pages then someone could use it to display any page in Confluence). Then create a page with a slightly different name somewhere in the space that is visible to the team and insert this macro along with the page ID to display the page content there.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.