Update Page Restrictions
Using the Update Page Restrictions built-in script, you can easily manage the editing restrictions to the pages in your space.
It is quick and easy to select multiple page trees or individual pages to set page restrictions in bulk rather than one-by-one. By selecting a parent page, you'll apply all the restrictions to that page and all of its descendants. Running this script will replace any existing restrictions that the selected content has.
Run the script
Follow these steps to run the built-in script:
Once you run the script, the results of the script appear. Restrictions are applied to the selected page and all ancestors of the page. However, this feature does not override the Confluence permission hierarchy. If you change the restrictions of a page, or set of pages, the restrictions of an ancestor of the page with a higher level of restrictions are observed.
Examples
Restrict editing and viewing restrictions of certain pages to a certain group
Using this built-in script, you can restrict certain pages within a space to certain groups of users. In the following example, we will restrict pages in a Customer Analytics section in the Analytics space to the customers group. Only they will be able to edit and view the pages.
To set up the script, follow these steps:
After running the script, you will see the Result: