Overview
The {add-restriction}
macro is used to add View or Edit content-level permissions.
Where to use it?
Optional.
One or more {add-restriction}
macros can be put in a {trigger}
macro.
If you want to add restrictions immediately after removing restrictions of the same type, use the {set-restrictions}
macro instead.
Parameters
Parameter | Required | Default | Notes |
---|---|---|---|
| What type of permission to set?
| ||
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
| ||
| One or more user groups to assign
| ||
At least one user or group must be specified. Both can also be used at the same time. |
Example
{workflow:Restrictions} {state:Test} {state} {trigger:pagecreated} {add-restriction:type=view|user=@user@|group=moderators} {trigger} {workflow}
All examples
There is no content with the specified labels
See also
External Links: