The Adaptavist Group LogoDocumentation

Add Page Restriction

This macro sets page-level restrictions on the current page by a 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}
ParameterNameDescriptionTypeDefaultRequired
editEditComma-separated list of users or groups that can edit the pagestring
viewViewComma-separated list of users or groups that can view the pagestring
flagFlagA list of flags, one of which must be defined for the content to be displayedstring
notflagNot FlagA list of flags that must not be defined for the content to be displayedstring

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, a red padlock will display next to the page title to show restrictions set on that page.

Search documentation

Start typing to search the docs.