Comala Workflows is now Comala Document Management. Click here for the latest documentation.

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

type

(tick)


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.

user

(info)


One or more users to assign type permission to:

group

(info)


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.

Example

{workflow:Restrictions}
   {state:Test}
   {state}
   {trigger:pagecreated}
      {add-restriction:type=view|user=@user@|group=moderators}
   {trigger}
{workflow}

All examples

See also

External Links:

Workflow Authoring Guide: