ThemeBuilder for Confluence Server and DC

Add Page Restriction

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

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.

page restrict 01