set-restrictions trigger action
Set Restrictions trigger action
You can use the Set Restrictions action in a workflow trigger to remove existing Confluence page-level restrictions before applying new ones. This can be useful when an approval occurs or when a document transitions to a different workflow state.
The Set Restrictions trigger action lets you remove all existing page-level restrictions for a specific Confluence permission type and apply new restrictions in a single action.
A separate Set Restrictions action is required for each of the following:
removing existing view permissions and defining who can view the document
removing existing edit permissions and specifying who can edit the document
To remove and add both view and edit restrictions in a workflow trigger, include a Set Restrictions action for each restriction type.
Set Restrictions action parameters
Action Parameter | Value | Notes |
---|---|---|
Type MANDATORY | Existing type of Confluence page-level permissions to be removed and added:
You must add a separate action for each type of permission. | Removes the existing specified type of permission restrictions and then restricts the permission to the specified users. Only one type of permission can be specified in each action:
|
Restrictions MANDATORY | One or more users added using one or more of the following fields
At least one value must be added to one of these fields. | Restrictions must be applied to at least one user. |
User | One or more Confluence users. | List of Confluence users
|
Confluence Smart Values | One or more of the following:
| List of Confluence Smart values. |
Workflow user type parameters | One or more workflow group type parameters. | List of workflow user type parameters
|
Group | One or more Confluence user groups. | List of Confluence user groups
|
Workflow group type parameters | One or more workflow group type parameters. | List of workflow user type parameters
|
When the workflow trigger Event occurs, the trigger checks that any required Conditions are met, and if met, the Set Restrictions action removes existing Confluence page-level view or edit restrictions and adds page-level content view or edit restrictions specified in the action to the current page.
“set-restrictions” JSON code
A Set Restrictions workflow trigger action added using the visual editor is automatically displayed in the workflow code editor as a “set-restrictions”
trigger action.
You can also use the code editor to add the workflow trigger and the “set-restrictions”
action.
Only 'Confluence Cloud Standard, Premium, and Enterprise Plans enable Atlassian Confluence users to edit permissions, including global, space, and page permissions.