add-restrictions trigger action
Add Restrictions trigger action
You can use the Add Restrictions action to add Confluence page-level permissions for the users who you want to view or edit your document.
This Add Restrictions trigger action can be used to ensure that users have view or edit permissions for a document at different steps in your documentation process, such as when an approval decision occurs, or the workflow moves to the next state.
To add both view and edit restrictions, you must include a separate Add Restrictions action in a workflow trigger for each restriction type.
Any existing page-level restrictions remain on the document. The action adds the specified permission to the users and groups included in the action.
Add Restrictions action parameters
Action Parameter | Value | Notes |
---|---|---|
Type MANDATORY | Confluence page-level permissions to be added:
You must add a separate action for each. | Restricts the view or edit permission to the specified users
|
Restrictions MANDATORY | Restrictions must be applied to at least one user. | At least one value must be added for one of the fields:
|
User | One or more Confluence users. | List of Confluence users
|
Confluence Smart Values | One or more Confluence value references. | List of Confluence value references (Smart Values). Only the following are supported:
|
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 Add Restrictions action adds Confluence page-level content view or edit restrictions to the current page.
“add-restrictions” JSON code
An Add Restrictions workflow trigger action added using the visual editor is automatically displayed in the workflow code editor as an “add-restrictions”
trigger action.
You can also use the code editor to add the workflow trigger and the “add-restrictions”
action.
Only 'Confluence Cloud Standard, Premium, and Enterprise Plans enable Atlassian Confluence users to edit permissions, including global, space, and page permissions.