The {add-restriction} macro is used to add View or Edit content-level permissions.

When using the add-restriction macro the specified Confluence permission will be added to the users listed.

If there are other users who have Confluence permissions for the content but are not listed in the macro, these users will have their permissions restricted

Where to use it?


One or more {add-restriction} macros can be put in a {trigger} macro.

If you want to remove these restrictions you can use the {remove-restriction} macro.

You can remove/add or add/remove restrictions using these macros in any order.

If you want to add restrictions immediately after removing restrictions of the same type, you can use the {set-restrictions} macro instead†.

Restrictions don't give users permissions to content, but rather limit the users who have those permissions.

For example, if everyone has edit/view permissions for the space and you add edit restrictions to a page for user A and user B, only user A and user B can edit the page, and everyone else just view the page.








What type of permission to set?

  • view – assign the user/group view permission
  • edit – assign the user/group edit permission

Note: The permissions are set using Confluence's content-level permissions system and can thus be altered via the padlock icon.



One or more users to assign type permission to:



One or more user groups to assign type permission to:

(info) At least one user or group must be specified. Both can also be used at the same time.

† In some cases, due to Confluence permission threads, rather than using {remove-restriction} macro then {add-restriction}, it may be useful to use {set-restrictions} macro.

The {set-restrictions} macro will clear any existing restriction of the type being set (view or edit) before setting that permission for the listed users or groups.



All examples

See also

External Links:

Workflow Authoring Guide: