Skip to end of metadata
Go to start of metadata

ThemeBuilder Macro - Add Page Restriction

add-page-restriction

Sets page level restrictions on the current page by user or group name, or by flag macro values.

Categories: admin

Usage

Storage Format

<ac:macro ac:name="add-page-restriction">
	<ac:parameter ac:name="parameter">value</ac:parameter>
</ac:macro>

Wiki Markup

{add-page-restriction:parameter=value}


Parameter

Name

Description

Type

Default

Required

edit

Edit

Comma separated list of users or groups that can edit the page

string

 

(error) 

view

View

Comma separated list of users or groups that can view the page

string

 

(error)

flag

Flag

A list of flags, one of which must be defined for the content to be displayed

string

 

(error)

notflag

Not Flag

A list of flags which must not be defined for the content to be displayed

string

 

(error)

Example

Restrict a page so that only users in the group 'staff' can view or edit that page.

<ac:macro ac:name="add-page-restriction">
	<ac:parameter ac:name="edit">staff</ac:parameter>
	<ac:parameter ac:name="view">staff</ac:parameter>
</ac:macro>
{add-page-restriction:edit=staff|view=staff}

 

When added to a page the red padlock will display next to the page title to show that there are restrictions set on that page.

https://confluence.atlassian.com/display/DOC/Page+Restrictions